Ver código fonte

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.
cg2121 5 meses atrás
pai
commit
345fe56b6e

+ 3 - 0
frontend/components/DelButton.hpp

@@ -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 - 0
frontend/components/EditWidget.hpp

@@ -6,6 +6,8 @@
 class QPersistentModelIndex;
 
 class EditWidget : public QLineEdit {
+	Q_OBJECT
+
 public:
 	inline EditWidget(QWidget *parent, QModelIndex index_) : QLineEdit(parent), index(index_) {}
 

+ 1 - 0
frontend/utility/OBSProxyStyle.cpp

@@ -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 - 0
frontend/utility/OBSProxyStyle.hpp

@@ -3,6 +3,8 @@
 #include <QProxyStyle>
 
 class OBSProxyStyle : public QProxyStyle {
+	Q_OBJECT
+
 public:
 	OBSProxyStyle() : QProxyStyle() {}
 

+ 2 - 0
frontend/utility/SettingsEventFilter.hpp

@@ -25,6 +25,8 @@
 #include <QObject>
 
 class SettingsEventFilter : public QObject {
+	Q_OBJECT
+
 	QScopedPointer<OBSEventFilter> shortcutFilter;
 
 public:

+ 2 - 0
frontend/utility/SurfaceEventFilter.hpp

@@ -6,6 +6,8 @@
 #include <QPlatformSurfaceEvent>
 
 class SurfaceEventFilter : public QObject {
+	Q_OBJECT
+
 	OBSQTDisplay *display;
 
 public:

+ 1 - 0
frontend/widgets/ColorSelect.cpp

@@ -18,6 +18,7 @@
 ******************************************************************************/
 
 #include "ColorSelect.hpp"
+#include "moc_ColorSelect.cpp"
 
 ColorSelect::ColorSelect(QWidget *parent) : QWidget(parent), ui(new Ui::ColorSelect)
 {

+ 1 - 0
frontend/widgets/ColorSelect.hpp

@@ -22,6 +22,7 @@
 #include <QWidget>
 
 class ColorSelect : public QWidget {
+	Q_OBJECT
 
 public:
 	explicit ColorSelect(QWidget *parent = 0);