Add Q_OBJECT macro where it's missing

- Transifex tools complain about missing Q_OBJECT (which makes
  some sense -- you end up with a different context for calls
  to tr(), of the base class).
This commit is contained in:
Adriaan de Groot 2021-09-08 13:23:20 +02:00
parent b933485394
commit 8d71e67a75
4 changed files with 10 additions and 0 deletions

View File

@ -30,6 +30,7 @@
*/
class VariantModel : public QAbstractItemModel
{
Q_OBJECT
public:
/** @brief Auxiliary data
*

View File

@ -23,6 +23,7 @@ namespace Calamares
*/
class DLLEXPORT NamedJob : public Job
{
Q_OBJECT
public:
explicit NamedJob( const QString& name, QObject* parent = nullptr )
: Job( parent )
@ -39,6 +40,7 @@ protected:
/// @brief Job does nothing, always succeeds
class DLLEXPORT GoodJob : public NamedJob
{
Q_OBJECT
public:
explicit GoodJob( const QString& name, QObject* parent = nullptr )
: NamedJob( name, parent )
@ -52,6 +54,7 @@ public:
/// @brief Job does nothing, always fails
class DLLEXPORT FailJob : public NamedJob
{
Q_OBJECT
public:
explicit FailJob( const QString& name, QObject* parent = nullptr )
: NamedJob( name, parent )

View File

@ -47,6 +47,7 @@ using WeightedJobList = QList< WeightedJob >;
class JobThread : public QThread
{
Q_OBJECT
public:
JobThread( JobQueue* queue )
: QThread( queue )
@ -288,3 +289,7 @@ JobQueue::globalStorage() const
}
} // namespace Calamares
#include "utils/moc-warnings.h"
#include "JobQueue.moc"

View File

@ -22,6 +22,7 @@ class QPushButton;
class LicenseWidget : public QWidget
{
Q_OBJECT
public:
LicenseWidget( LicenseEntry e, QWidget* parent = nullptr );
~LicenseWidget() override;