From 8026a287d32df0fbe1ce00462612b2ae4f137aef Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 29 Oct 2014 13:06:06 +0100 Subject: [PATCH] Shut up Qt lupdate warnings. --- src/libcalamares/JobQueue.cpp | 3 +++ src/libcalamaresui/InstallationViewStep.h | 1 + src/modules/partition/core/BootLoaderModel.h | 1 + src/modules/partition/core/DeviceModel.h | 1 + src/modules/partition/core/PartitionModel.h | 1 + src/modules/partition/jobs/CheckFileSystemJob.h | 1 + src/modules/partition/jobs/MoveFileSystemJob.h | 1 + src/modules/partition/jobs/ResizePartitionJob.cpp | 4 ++++ 8 files changed, 13 insertions(+) diff --git a/src/libcalamares/JobQueue.cpp b/src/libcalamares/JobQueue.cpp index d459965da..d2fd3b98c 100644 --- a/src/libcalamares/JobQueue.cpp +++ b/src/libcalamares/JobQueue.cpp @@ -34,6 +34,7 @@ namespace Calamares class JobThread : public QThread { + Q_OBJECT public: JobThread( JobQueue* queue ) : QThread( queue ) @@ -168,3 +169,5 @@ JobQueue::enqueue( const QList< job_ptr >& jobs ) } } // namespace Calamares + +#include "JobQueue.moc" diff --git a/src/libcalamaresui/InstallationViewStep.h b/src/libcalamaresui/InstallationViewStep.h index 122f6cfd7..c482b5222 100644 --- a/src/libcalamaresui/InstallationViewStep.h +++ b/src/libcalamaresui/InstallationViewStep.h @@ -29,6 +29,7 @@ namespace Calamares class InstallationViewStep : public ViewStep { + Q_OBJECT public: explicit InstallationViewStep( QObject* parent = nullptr ); diff --git a/src/modules/partition/core/BootLoaderModel.h b/src/modules/partition/core/BootLoaderModel.h index 7142c9e5b..f0c3034c6 100644 --- a/src/modules/partition/core/BootLoaderModel.h +++ b/src/modules/partition/core/BootLoaderModel.h @@ -29,6 +29,7 @@ class Device; */ class BootLoaderModel : public QStandardItemModel { + Q_OBJECT public: enum { diff --git a/src/modules/partition/core/DeviceModel.h b/src/modules/partition/core/DeviceModel.h index 43c2914af..77b86b1bf 100644 --- a/src/modules/partition/core/DeviceModel.h +++ b/src/modules/partition/core/DeviceModel.h @@ -30,6 +30,7 @@ class PartitionModel; */ class DeviceModel : public QAbstractListModel { + Q_OBJECT public: DeviceModel( QObject* parent = 0 ); ~DeviceModel(); diff --git a/src/modules/partition/core/PartitionModel.h b/src/modules/partition/core/PartitionModel.h index 9159d2b7e..5e0c11515 100644 --- a/src/modules/partition/core/PartitionModel.h +++ b/src/modules/partition/core/PartitionModel.h @@ -41,6 +41,7 @@ class PartitionNode; */ class PartitionModel : public QAbstractItemModel { + Q_OBJECT public: /** * This helper class must be instantiated on the stack *before* making diff --git a/src/modules/partition/jobs/CheckFileSystemJob.h b/src/modules/partition/jobs/CheckFileSystemJob.h index 1d42cf1dd..3a165da2b 100644 --- a/src/modules/partition/jobs/CheckFileSystemJob.h +++ b/src/modules/partition/jobs/CheckFileSystemJob.h @@ -26,6 +26,7 @@ */ class CheckFileSystemJob : public PartitionJob { + Q_OBJECT public: CheckFileSystemJob( Partition* partition ); diff --git a/src/modules/partition/jobs/MoveFileSystemJob.h b/src/modules/partition/jobs/MoveFileSystemJob.h index 303b2b507..f2ae6d741 100644 --- a/src/modules/partition/jobs/MoveFileSystemJob.h +++ b/src/modules/partition/jobs/MoveFileSystemJob.h @@ -56,6 +56,7 @@ class Report; */ class MoveFileSystemJob : public PartitionJob { + Q_OBJECT public: MoveFileSystemJob( Device* device, Partition* partition, qint64 oldFirstSector, qint64 newFirstSector, qint64 length ); diff --git a/src/modules/partition/jobs/ResizePartitionJob.cpp b/src/modules/partition/jobs/ResizePartitionJob.cpp index 794dc2504..4f9bd2ea2 100644 --- a/src/modules/partition/jobs/ResizePartitionJob.cpp +++ b/src/modules/partition/jobs/ResizePartitionJob.cpp @@ -60,6 +60,7 @@ //- ResizeFileSystemJob -------------------------------------------------------- class ResizeFileSystemJob : public Calamares::Job { + Q_OBJECT public: ResizeFileSystemJob( Device* device, CoreBackendPartitionTable* backendPartitionTable, Partition* partition, qint64 length ) : m_device( device ) @@ -127,6 +128,7 @@ private: //- SetPartGeometryJob --------------------------------------------------------- class SetPartGeometryJob : public Calamares::Job { + Q_OBJECT public: SetPartGeometryJob( CoreBackendPartitionTable* backendPartitionTable, Partition* partition, qint64 firstSector, qint64 length ) : m_backendPartitionTable( backendPartitionTable ) @@ -282,3 +284,5 @@ ResizePartitionJob::execJobList( const QList< Calamares::job_ptr >& jobs ) } return Calamares::JobResult::ok(); } + +#include "ResizePartitionJob.moc"