frontend: Make sure all QObject subclasses have Q_OBJECT macro

Went through and found all QObject subclasses that didn't have
a Q_OBJECT macro.
This commit is contained in:
cg2121
2025-05-02 02:08:47 -05:00
committed by Ryan Foster
parent 5ed5863556
commit 345fe56b6e
8 changed files with 14 additions and 0 deletions
+3
View File
@@ -1,8 +1,11 @@
#pragma once
#include <QPersistentModelIndex>
#include <QPushButton>
class DelButton : public QPushButton {
Q_OBJECT
public:
inline DelButton(QModelIndex index_) : QPushButton(), index(index_) {}
+2
View File
@@ -6,6 +6,8 @@
class QPersistentModelIndex;
class EditWidget : public QLineEdit {
Q_OBJECT
public:
inline EditWidget(QWidget *parent, QModelIndex index_) : QLineEdit(parent), index(index_) {}
+1
View File
@@ -1,6 +1,7 @@
#include "OBSProxyStyle.hpp"
#include <QStyleOption>
#include "moc_OBSProxyStyle.cpp"
static inline uint qt_intensity(uint r, uint g, uint b)
{
+2
View File
@@ -3,6 +3,8 @@
#include <QProxyStyle>
class OBSProxyStyle : public QProxyStyle {
Q_OBJECT
public:
OBSProxyStyle() : QProxyStyle() {}
+2
View File
@@ -25,6 +25,8 @@
#include <QObject>
class SettingsEventFilter : public QObject {
Q_OBJECT
QScopedPointer<OBSEventFilter> shortcutFilter;
public:
+2
View File
@@ -6,6 +6,8 @@
#include <QPlatformSurfaceEvent>
class SurfaceEventFilter : public QObject {
Q_OBJECT
OBSQTDisplay *display;
public:
+1
View File
@@ -18,6 +18,7 @@
******************************************************************************/
#include "ColorSelect.hpp"
#include "moc_ColorSelect.cpp"
ColorSelect::ColorSelect(QWidget *parent) : QWidget(parent), ui(new Ui::ColorSelect)
{
+1
View File
@@ -22,6 +22,7 @@
#include <QWidget>
class ColorSelect : public QWidget {
Q_OBJECT
public:
explicit ColorSelect(QWidget *parent = 0);