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
|
class VariantModel : public QAbstractItemModel
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
/** @brief Auxiliary data
|
/** @brief Auxiliary data
|
||||||
*
|
*
|
||||||
|
@ -23,6 +23,7 @@ namespace Calamares
|
|||||||
*/
|
*/
|
||||||
class DLLEXPORT NamedJob : public Job
|
class DLLEXPORT NamedJob : public Job
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit NamedJob( const QString& name, QObject* parent = nullptr )
|
explicit NamedJob( const QString& name, QObject* parent = nullptr )
|
||||||
: Job( parent )
|
: Job( parent )
|
||||||
@ -39,6 +40,7 @@ protected:
|
|||||||
/// @brief Job does nothing, always succeeds
|
/// @brief Job does nothing, always succeeds
|
||||||
class DLLEXPORT GoodJob : public NamedJob
|
class DLLEXPORT GoodJob : public NamedJob
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit GoodJob( const QString& name, QObject* parent = nullptr )
|
explicit GoodJob( const QString& name, QObject* parent = nullptr )
|
||||||
: NamedJob( name, parent )
|
: NamedJob( name, parent )
|
||||||
@ -52,6 +54,7 @@ public:
|
|||||||
/// @brief Job does nothing, always fails
|
/// @brief Job does nothing, always fails
|
||||||
class DLLEXPORT FailJob : public NamedJob
|
class DLLEXPORT FailJob : public NamedJob
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit FailJob( const QString& name, QObject* parent = nullptr )
|
explicit FailJob( const QString& name, QObject* parent = nullptr )
|
||||||
: NamedJob( name, parent )
|
: NamedJob( name, parent )
|
||||||
|
@ -47,6 +47,7 @@ using WeightedJobList = QList< WeightedJob >;
|
|||||||
|
|
||||||
class JobThread : public QThread
|
class JobThread : public QThread
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
JobThread( JobQueue* queue )
|
JobThread( JobQueue* queue )
|
||||||
: QThread( queue )
|
: QThread( queue )
|
||||||
@ -288,3 +289,7 @@ JobQueue::globalStorage() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Calamares
|
} // namespace Calamares
|
||||||
|
|
||||||
|
#include "utils/moc-warnings.h"
|
||||||
|
|
||||||
|
#include "JobQueue.moc"
|
||||||
|
@ -22,6 +22,7 @@ class QPushButton;
|
|||||||
|
|
||||||
class LicenseWidget : public QWidget
|
class LicenseWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
LicenseWidget( LicenseEntry e, QWidget* parent = nullptr );
|
LicenseWidget( LicenseEntry e, QWidget* parent = nullptr );
|
||||||
~LicenseWidget() override;
|
~LicenseWidget() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user