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:
parent
b933485394
commit
8d71e67a75
@ -30,6 +30,7 @@
|
||||
*/
|
||||
class VariantModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
/** @brief Auxiliary data
|
||||
*
|
||||
|
@ -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 )
|
||||
|
@ -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"
|
||||
|
@ -22,6 +22,7 @@ class QPushButton;
|
||||
|
||||
class LicenseWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
LicenseWidget( LicenseEntry e, QWidget* parent = nullptr );
|
||||
~LicenseWidget() override;
|
||||
|
Loading…
Reference in New Issue
Block a user