diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2019-07-17 15:12:32 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2019-07-17 15:12:32 +0200 |
| commit | 3d67be3023bf34eac7f93fa422f5ef569abb92a9 (patch) | |
| tree | f3748d6a113c50d483882b60b732a9d211100cf8 /models | |
| parent | 62c0c627f4f8aec46a082bf098d4f1523a16d297 (diff) | |
New upstream version 2.1.0+repackupstream/2.1.0+repack
Diffstat (limited to 'models')
| -rw-r--r-- | models/Bands.cpp | 2 | ||||
| -rw-r--r-- | models/Bands.hpp | 2 | ||||
| -rw-r--r-- | models/FoxLog.cpp | 4 | ||||
| -rw-r--r-- | models/IARURegions.cpp | 4 | ||||
| -rw-r--r-- | models/IARURegions.hpp | 1 | ||||
| -rw-r--r-- | models/StationList.cpp | 5 | ||||
| -rw-r--r-- | models/StationList.hpp | 2 |
7 files changed, 18 insertions, 2 deletions
diff --git a/models/Bands.cpp b/models/Bands.cpp index a70358fa..e24d4296 100644 --- a/models/Bands.cpp +++ b/models/Bands.cpp @@ -55,6 +55,8 @@ namespace } } +#include "moc_Bands.cpp" + Bands::Bands (QObject * parent) : QAbstractTableModel {parent} { diff --git a/models/Bands.hpp b/models/Bands.hpp index ed625f2f..170d4c75 100644 --- a/models/Bands.hpp +++ b/models/Bands.hpp @@ -29,6 +29,8 @@ class Bands final : public QAbstractTableModel { + Q_OBJECT + public: using Frequency = Radio::Frequency; diff --git a/models/FoxLog.cpp b/models/FoxLog.cpp index debb08af..954090bd 100644 --- a/models/FoxLog.cpp +++ b/models/FoxLog.cpp @@ -18,6 +18,8 @@ class FoxLog::impl final : public QSqlTableModel { + Q_OBJECT + public: impl (Configuration const * configuration); @@ -43,6 +45,8 @@ public: QSqlQuery mutable export_query_; }; +#include "FoxLog.moc" + FoxLog::impl::impl (Configuration const * configuration) : configuration_ {configuration} { diff --git a/models/IARURegions.cpp b/models/IARURegions.cpp index 25450ab4..dcdc94d4 100644 --- a/models/IARURegions.cpp +++ b/models/IARURegions.cpp @@ -7,8 +7,6 @@ #include <QModelIndex> #include <QMetaType> -#include "moc_IARURegions.cpp" - namespace { // human readable strings for each Region enumeration value @@ -22,6 +20,8 @@ namespace std::size_t constexpr region_names_size = sizeof (region_names) / sizeof (region_names[0]); } +#include "moc_IARURegions.cpp" + IARURegions::IARURegions (QObject * parent) : QAbstractListModel {parent} { diff --git a/models/IARURegions.hpp b/models/IARURegions.hpp index d849d97b..498846d3 100644 --- a/models/IARURegions.hpp +++ b/models/IARURegions.hpp @@ -29,6 +29,7 @@ class IARURegions final : public QAbstractListModel { Q_OBJECT + public: // // This enumeration contains the supported regions, to complement diff --git a/models/StationList.cpp b/models/StationList.cpp index eeeb4d60..202cac0e 100644 --- a/models/StationList.cpp +++ b/models/StationList.cpp @@ -52,6 +52,8 @@ QDataStream& operator >> (QDataStream& is, StationList::Station& station) class StationList::impl final : public QAbstractTableModel { + Q_OBJECT + public: impl (Bands const * bands, Stations stations, QObject * parent) : QAbstractTableModel {parent} @@ -97,6 +99,9 @@ public: Stations stations_; }; +#include "StationList.moc" +#include "moc_StationList.cpp" + StationList::StationList (Bands const * bands, QObject * parent) : StationList {bands, {}, parent} { diff --git a/models/StationList.hpp b/models/StationList.hpp index 25bf428f..3b0955c1 100644 --- a/models/StationList.hpp +++ b/models/StationList.hpp @@ -40,6 +40,8 @@ class Bands; class StationList final : public QSortFilterProxyModel { + Q_OBJECT + public: using Frequency = Radio::Frequency; using FrequencyDelta = Radio::FrequencyDelta; |
