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:
parent
5ed5863556
commit
345fe56b6e
8 changed files with 14 additions and 0 deletions
|
|
@ -1,8 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <QPersistentModelIndex>
|
||||
#include <QPushButton>
|
||||
|
||||
class DelButton : public QPushButton {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
inline DelButton(QModelIndex index_) : QPushButton(), index(index_) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
class QPersistentModelIndex;
|
||||
|
||||
class EditWidget : public QLineEdit {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
inline EditWidget(QWidget *parent, QModelIndex index_) : QLineEdit(parent), index(index_) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "OBSProxyStyle.hpp"
|
||||
|
||||
#include <QStyleOption>
|
||||
#include "moc_OBSProxyStyle.cpp"
|
||||
|
||||
static inline uint qt_intensity(uint r, uint g, uint b)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
#include <QProxyStyle>
|
||||
|
||||
class OBSProxyStyle : public QProxyStyle {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
OBSProxyStyle() : QProxyStyle() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@
|
|||
#include <QObject>
|
||||
|
||||
class SettingsEventFilter : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
QScopedPointer<OBSEventFilter> shortcutFilter;
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
#include <QPlatformSurfaceEvent>
|
||||
|
||||
class SurfaceEventFilter : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
OBSQTDisplay *display;
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
******************************************************************************/
|
||||
|
||||
#include "ColorSelect.hpp"
|
||||
#include "moc_ColorSelect.cpp"
|
||||
|
||||
ColorSelect::ColorSelect(QWidget *parent) : QWidget(parent), ui(new Ui::ColorSelect)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include <QWidget>
|
||||
|
||||
class ColorSelect : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ColorSelect(QWidget *parent = 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue