diff --git a/3rdparty/libmygpo-qt5/src/AddRemoveResult.h b/3rdparty/libmygpo-qt5/src/AddRemoveResult.h index cd3184666..449621695 100644 --- a/3rdparty/libmygpo-qt5/src/AddRemoveResult.h +++ b/3rdparty/libmygpo-qt5/src/AddRemoveResult.h @@ -65,6 +65,6 @@ typedef QSharedPointer AddRemoveResultPtr; } -Q_DECLARE_METATYPE( mygpo::AddRemoveResultPtr ); +Q_DECLARE_METATYPE( mygpo::AddRemoveResultPtr ) #endif // LIBMYGPO_QT_ADDREMOVERESULT_H diff --git a/3rdparty/libmygpo-qt5/src/Device.h b/3rdparty/libmygpo-qt5/src/Device.h index 8519c8d45..daaf36ab2 100644 --- a/3rdparty/libmygpo-qt5/src/Device.h +++ b/3rdparty/libmygpo-qt5/src/Device.h @@ -66,6 +66,6 @@ typedef QSharedPointer DevicePtr; } -Q_DECLARE_METATYPE( mygpo::DevicePtr ); +Q_DECLARE_METATYPE( mygpo::DevicePtr ) #endif //LIBMYGPO_QT_DEVICE_H diff --git a/3rdparty/libmygpo-qt5/src/DeviceList.h b/3rdparty/libmygpo-qt5/src/DeviceList.h index 04109fefe..383419368 100644 --- a/3rdparty/libmygpo-qt5/src/DeviceList.h +++ b/3rdparty/libmygpo-qt5/src/DeviceList.h @@ -63,6 +63,6 @@ typedef QSharedPointer DeviceListPtr; } -Q_DECLARE_METATYPE( mygpo::DeviceListPtr ); +Q_DECLARE_METATYPE( mygpo::DeviceListPtr ) #endif //LIBMYGPO_QT_DEVICELIST_H diff --git a/3rdparty/libmygpo-qt5/src/Episode.h b/3rdparty/libmygpo-qt5/src/Episode.h index 7121f7819..0155b7f26 100644 --- a/3rdparty/libmygpo-qt5/src/Episode.h +++ b/3rdparty/libmygpo-qt5/src/Episode.h @@ -91,6 +91,6 @@ typedef QSharedPointer EpisodePtr; } -Q_DECLARE_METATYPE( mygpo::EpisodePtr ); +Q_DECLARE_METATYPE( mygpo::EpisodePtr ) #endif // LIBMYGPO_QT_EPISODE_H diff --git a/3rdparty/libmygpo-qt5/src/EpisodeAction.h b/3rdparty/libmygpo-qt5/src/EpisodeAction.h index a7cbdc52e..d6785145a 100644 --- a/3rdparty/libmygpo-qt5/src/EpisodeAction.h +++ b/3rdparty/libmygpo-qt5/src/EpisodeAction.h @@ -75,6 +75,6 @@ typedef QSharedPointer EpisodeActionPtr; } -Q_DECLARE_METATYPE( mygpo::EpisodeActionPtr ); +Q_DECLARE_METATYPE( mygpo::EpisodeActionPtr ) #endif // LIBMYGPO_QT_EPISODEACTION_H diff --git a/3rdparty/libmygpo-qt5/src/EpisodeActionList.h b/3rdparty/libmygpo-qt5/src/EpisodeActionList.h index 416b536ef..f27aee826 100644 --- a/3rdparty/libmygpo-qt5/src/EpisodeActionList.h +++ b/3rdparty/libmygpo-qt5/src/EpisodeActionList.h @@ -66,6 +66,6 @@ typedef QSharedPointer EpisodeActionListPtr; } -Q_DECLARE_METATYPE( mygpo::EpisodeActionListPtr ); +Q_DECLARE_METATYPE( mygpo::EpisodeActionListPtr ) #endif // LIBMYGPO_QT_EPISODEACTIONLIST_H diff --git a/3rdparty/libmygpo-qt5/src/EpisodeList_p.h b/3rdparty/libmygpo-qt5/src/EpisodeList_p.h index f8153eefa..da6fbc933 100644 --- a/3rdparty/libmygpo-qt5/src/EpisodeList_p.h +++ b/3rdparty/libmygpo-qt5/src/EpisodeList_p.h @@ -52,6 +52,6 @@ private slots: }; -}; +} #endif // EPISODELIST_PRIVATE_H diff --git a/3rdparty/libmygpo-qt5/src/Episode_p.h b/3rdparty/libmygpo-qt5/src/Episode_p.h index 2b84f7817..27934f871 100644 --- a/3rdparty/libmygpo-qt5/src/Episode_p.h +++ b/3rdparty/libmygpo-qt5/src/Episode_p.h @@ -66,6 +66,6 @@ private slots: }; -}; +} #endif // EPISODE_PRIVATE_H diff --git a/3rdparty/libmygpo-qt5/src/Podcast.h b/3rdparty/libmygpo-qt5/src/Podcast.h index 9905c9a05..87091ab4b 100644 --- a/3rdparty/libmygpo-qt5/src/Podcast.h +++ b/3rdparty/libmygpo-qt5/src/Podcast.h @@ -79,6 +79,6 @@ typedef QSharedPointer PodcastPtr; } -Q_DECLARE_METATYPE( mygpo::PodcastPtr ); +Q_DECLARE_METATYPE( mygpo::PodcastPtr ) #endif // LIBMYGPO_QT_PODCAST_H diff --git a/3rdparty/libmygpo-qt5/src/Podcast_p.h b/3rdparty/libmygpo-qt5/src/Podcast_p.h index 83cbed9c5..3db790bae 100644 --- a/3rdparty/libmygpo-qt5/src/Podcast_p.h +++ b/3rdparty/libmygpo-qt5/src/Podcast_p.h @@ -66,6 +66,6 @@ private slots: void error( QNetworkReply::NetworkError error ); }; -}; +} #endif // PODCAST_PRIVATE_H diff --git a/3rdparty/libmygpo-qt5/src/Tag.h b/3rdparty/libmygpo-qt5/src/Tag.h index c2c35503a..977c1e309 100644 --- a/3rdparty/libmygpo-qt5/src/Tag.h +++ b/3rdparty/libmygpo-qt5/src/Tag.h @@ -54,6 +54,6 @@ typedef QSharedPointer TagPtr; } -Q_DECLARE_METATYPE( mygpo::TagPtr ); +Q_DECLARE_METATYPE( mygpo::TagPtr ) #endif // LIBMYGPO_QT_TAG_H diff --git a/3rdparty/libmygpo-qt5/src/TagList.h b/3rdparty/libmygpo-qt5/src/TagList.h index f641307bb..36d6faa9e 100644 --- a/3rdparty/libmygpo-qt5/src/TagList.h +++ b/3rdparty/libmygpo-qt5/src/TagList.h @@ -61,6 +61,6 @@ typedef QSharedPointer TagListPtr; } -Q_DECLARE_METATYPE( mygpo::TagListPtr ); +Q_DECLARE_METATYPE( mygpo::TagListPtr ) #endif // LIBMYGPO_QT_TAGLIST_H diff --git a/3rdparty/qocoa/qsearchfield.h b/3rdparty/qocoa/qsearchfield.h index f2a0561ed..0b05e7015 100644 --- a/3rdparty/qocoa/qsearchfield.h +++ b/3rdparty/qocoa/qsearchfield.h @@ -35,7 +35,7 @@ private: friend class QSearchFieldPrivate; QPointer pimpl; - Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText); + Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText) }; #endif // QSEARCHFIELD_H diff --git a/src/core/crashreporting.h b/src/core/crashreporting.h index 7e0b11f74..c9df41b14 100644 --- a/src/core/crashreporting.h +++ b/src/core/crashreporting.h @@ -58,7 +58,7 @@ class CrashReporting { void* context, bool succeeded); private: - Q_DISABLE_COPY(CrashReporting); + Q_DISABLE_COPY(CrashReporting) static const char* kSendCrashReportOption; static char* sPath; diff --git a/src/core/mpris2.h b/src/core/mpris2.h index 403351b7a..e2e91a4c8 100644 --- a/src/core/mpris2.h +++ b/src/core/mpris2.h @@ -42,14 +42,14 @@ struct MprisPlaylist { QString icon; // Uri }; typedef QList MprisPlaylistList; -Q_DECLARE_METATYPE(MprisPlaylist); -Q_DECLARE_METATYPE(MprisPlaylistList); +Q_DECLARE_METATYPE(MprisPlaylist) +Q_DECLARE_METATYPE(MprisPlaylistList) struct MaybePlaylist { bool valid; MprisPlaylist playlist; }; -Q_DECLARE_METATYPE(MaybePlaylist); +Q_DECLARE_METATYPE(MaybePlaylist) QDBusArgument& operator<<(QDBusArgument& arg, const MprisPlaylist& playlist); const QDBusArgument& operator>>(const QDBusArgument& arg, diff --git a/src/core/musicstorage.h b/src/core/musicstorage.h index 52aac8ad6..bf47ab1f5 100644 --- a/src/core/musicstorage.h +++ b/src/core/musicstorage.h @@ -85,7 +85,7 @@ class MusicStorage { virtual void Eject() {} }; -Q_DECLARE_METATYPE(MusicStorage*); -Q_DECLARE_METATYPE(std::shared_ptr); +Q_DECLARE_METATYPE(MusicStorage*) +Q_DECLARE_METATYPE(std::shared_ptr) #endif // CORE_MUSICSTORAGE_H_ diff --git a/src/core/song.h b/src/core/song.h index e2fd9e8c2..9d93ae5c2 100644 --- a/src/core/song.h +++ b/src/core/song.h @@ -318,10 +318,10 @@ class Song { struct Private; QSharedDataPointer d; }; -Q_DECLARE_METATYPE(Song); +Q_DECLARE_METATYPE(Song) typedef QList SongList; -Q_DECLARE_METATYPE(QList); +Q_DECLARE_METATYPE(QList) uint qHash(const Song& song); // Hash function using field checked in IsSimilar function diff --git a/src/core/taskmanager.h b/src/core/taskmanager.h index 11fdbdc5d..825ac399d 100644 --- a/src/core/taskmanager.h +++ b/src/core/taskmanager.h @@ -50,7 +50,7 @@ class TaskManager : public QObject { const int task_id_; TaskManager* task_manager_; - Q_DISABLE_COPY(ScopedTask); + Q_DISABLE_COPY(ScopedTask) }; // Everything here is thread safe @@ -74,7 +74,7 @@ class TaskManager : public QObject { QMap tasks_; int next_task_id_; - Q_DISABLE_COPY(TaskManager); + Q_DISABLE_COPY(TaskManager) }; #endif // CORE_TASKMANAGER_H_ diff --git a/src/core/utilities.h b/src/core/utilities.h index 021ded6cf..a1579886c 100644 --- a/src/core/utilities.h +++ b/src/core/utilities.h @@ -172,7 +172,7 @@ class ScopedWCharArray { int bytes() const { return (chars_ + 1) * sizeof(wchar_t); } private: - Q_DISABLE_COPY(ScopedWCharArray); + Q_DISABLE_COPY(ScopedWCharArray) int chars_; std::unique_ptr data_; diff --git a/src/covers/albumcoverfetcher.h b/src/covers/albumcoverfetcher.h index 588c7ea2e..b68f05b83 100644 --- a/src/covers/albumcoverfetcher.h +++ b/src/covers/albumcoverfetcher.h @@ -71,12 +71,12 @@ struct CoverSearchResult { // an URL of a cover image described by this CoverSearchResult QUrl image_url; }; -Q_DECLARE_METATYPE(CoverSearchResult); +Q_DECLARE_METATYPE(CoverSearchResult) // This is a complete result of a single search request (a list of results, each // describing one image, actually). typedef QList CoverSearchResults; -Q_DECLARE_METATYPE(QList); +Q_DECLARE_METATYPE(QList) // This class searches for album covers for a given query or artist/album and // returns URLs. It's NOT thread-safe. diff --git a/src/covers/coverproviders.h b/src/covers/coverproviders.h index 07bd15c5b..64b43d376 100644 --- a/src/covers/coverproviders.h +++ b/src/covers/coverproviders.h @@ -53,7 +53,7 @@ class CoverProviders : public QObject { void ProviderDestroyed(); private: - Q_DISABLE_COPY(CoverProviders); + Q_DISABLE_COPY(CoverProviders) QMap cover_providers_; QMutex mutex_; diff --git a/src/devices/mtpconnection.h b/src/devices/mtpconnection.h index 7ded3165a..5235f9d12 100644 --- a/src/devices/mtpconnection.h +++ b/src/devices/mtpconnection.h @@ -31,7 +31,7 @@ class MtpConnection { LIBMTP_mtpdevice_t* device() const { return device_; } private: - Q_DISABLE_COPY(MtpConnection); + Q_DISABLE_COPY(MtpConnection) LIBMTP_mtpdevice_t* device_; }; diff --git a/src/engines/engine_fwd.h b/src/engines/engine_fwd.h index 2a6eac2c3..92699448b 100644 --- a/src/engines/engine_fwd.h +++ b/src/engines/engine_fwd.h @@ -32,7 +32,7 @@ enum TrackChangeType { // Any of: SameAlbum = 0x10, }; -Q_DECLARE_FLAGS(TrackChangeFlags, TrackChangeType); +Q_DECLARE_FLAGS(TrackChangeFlags, TrackChangeType) } typedef Engine::Base EngineBase; diff --git a/src/engines/enginebase.h b/src/engines/enginebase.h index d64a02419..d8ee0cf5e 100644 --- a/src/engines/enginebase.h +++ b/src/engines/enginebase.h @@ -153,7 +153,7 @@ signals: private: bool about_to_end_emitted_; - Q_DISABLE_COPY(Base); + Q_DISABLE_COPY(Base) }; struct SimpleMetaBundle { diff --git a/src/internet/core/geolocator.h b/src/internet/core/geolocator.h index 43f0a0fc0..5906aa25d 100644 --- a/src/internet/core/geolocator.h +++ b/src/internet/core/geolocator.h @@ -63,6 +63,6 @@ class Geolocator : public QObject { }; QDebug operator<<(QDebug dbg, const Geolocator::LatLng& ll); -Q_DECLARE_METATYPE(Geolocator::LatLng); +Q_DECLARE_METATYPE(Geolocator::LatLng) #endif // INTERNET_CORE_GEOLOCATOR_H_ diff --git a/src/internet/core/internetservice.h b/src/internet/core/internetservice.h index cb1cf44f7..63aeab47a 100644 --- a/src/internet/core/internetservice.h +++ b/src/internet/core/internetservice.h @@ -143,6 +143,6 @@ signals: Lazy separator_; }; -Q_DECLARE_METATYPE(InternetService*); +Q_DECLARE_METATYPE(InternetService*) #endif // INTERNET_CORE_INTERNETSERVICE_H_ diff --git a/src/internet/spotify/spotifyservice.cpp b/src/internet/spotify/spotifyservice.cpp index e05aeb1b7..f4b6ecc5a 100644 --- a/src/internet/spotify/spotifyservice.cpp +++ b/src/internet/spotify/spotifyservice.cpp @@ -58,7 +58,7 @@ #include "spotifyblobdownloader.h" #endif -Q_DECLARE_METATYPE(QStandardItem*); +Q_DECLARE_METATYPE(QStandardItem*) const char* SpotifyService::kServiceName = "Spotify"; const char* SpotifyService::kSettingsGroup = "Spotify"; diff --git a/src/library/librarymodel.h b/src/library/librarymodel.h index 00463624c..fd8f49ea1 100644 --- a/src/library/librarymodel.h +++ b/src/library/librarymodel.h @@ -45,7 +45,7 @@ class QSettings; class LibraryModel : public SimpleTreeModel { Q_OBJECT - Q_ENUMS(GroupBy); + Q_ENUMS(GroupBy) public: LibraryModel(LibraryBackend* backend, Application* app, @@ -304,7 +304,7 @@ signals: QSet pending_cache_keys_; }; -Q_DECLARE_METATYPE(LibraryModel::Grouping); +Q_DECLARE_METATYPE(LibraryModel::Grouping) QDataStream& operator<<(QDataStream& s, const LibraryModel::Grouping& g); QDataStream& operator>>(QDataStream& s, LibraryModel::Grouping& g); diff --git a/src/playlist/playlist.h b/src/playlist/playlist.h index a06b69cc1..2757ea657 100644 --- a/src/playlist/playlist.h +++ b/src/playlist/playlist.h @@ -49,8 +49,8 @@ class ShuffleItems; } typedef QMap ColumnAlignmentMap; -Q_DECLARE_METATYPE(Qt::Alignment); -Q_DECLARE_METATYPE(ColumnAlignmentMap); +Q_DECLARE_METATYPE(Qt::Alignment) +Q_DECLARE_METATYPE(ColumnAlignmentMap) // Objects that may prevent a song being added to the playlist. When there // is something about to be inserted into it, Playlist notifies all of it's diff --git a/src/playlist/playlistitem.h b/src/playlist/playlistitem.h index 2ad6bf9de..fa3da96e6 100644 --- a/src/playlist/playlistitem.h +++ b/src/playlist/playlistitem.h @@ -52,7 +52,7 @@ class PlaylistItem : public std::enable_shared_from_this { // Disables the seek slider. SeekDisabled = 0x04, }; - Q_DECLARE_FLAGS(Options, Option); + Q_DECLARE_FLAGS(Options, Option) virtual QString type() const { return type_; } diff --git a/src/playlist/playlistundocommands.h b/src/playlist/playlistundocommands.h index af83268e1..4b5e70a52 100644 --- a/src/playlist/playlistundocommands.h +++ b/src/playlist/playlistundocommands.h @@ -29,7 +29,7 @@ namespace PlaylistUndoCommands { enum Types { Type_RemoveItems = 0, }; class Base : public QUndoCommand { - Q_DECLARE_TR_FUNCTIONS(PlaylistUndoCommands); + Q_DECLARE_TR_FUNCTIONS(PlaylistUndoCommands) public: Base(Playlist* playlist); diff --git a/src/playlistparsers/xmlparser.h b/src/playlistparsers/xmlparser.h index 193e4d27c..72f419ed0 100644 --- a/src/playlistparsers/xmlparser.h +++ b/src/playlistparsers/xmlparser.h @@ -41,7 +41,7 @@ class XMLParser : public ParserBase { private: QXmlStreamWriter* stream_; - Q_DISABLE_COPY(StreamElement); + Q_DISABLE_COPY(StreamElement) }; }; diff --git a/src/smartplaylists/searchtermwidget.h b/src/smartplaylists/searchtermwidget.h index 7363b838f..8538c660f 100644 --- a/src/smartplaylists/searchtermwidget.h +++ b/src/smartplaylists/searchtermwidget.h @@ -33,7 +33,7 @@ namespace smart_playlists { class SearchTermWidget : public QWidget { Q_OBJECT Q_PROPERTY(float overlay_opacity READ overlay_opacity WRITE - set_overlay_opacity); + set_overlay_opacity) public: SearchTermWidget(LibraryBackend* library, QWidget* parent); diff --git a/src/songinfo/collapsibleinfoheader.h b/src/songinfo/collapsibleinfoheader.h index 65b0bc15a..b317c02c8 100644 --- a/src/songinfo/collapsibleinfoheader.h +++ b/src/songinfo/collapsibleinfoheader.h @@ -25,7 +25,7 @@ class QPropertyAnimation; class CollapsibleInfoHeader : public QWidget { Q_OBJECT - Q_PROPERTY(float opacity READ opacity WRITE set_opacity); + Q_PROPERTY(float opacity READ opacity WRITE set_opacity) public: CollapsibleInfoHeader(QWidget* parent = nullptr); diff --git a/src/songinfo/tagwidget.h b/src/songinfo/tagwidget.h index f1867ac81..3b0c34a7c 100644 --- a/src/songinfo/tagwidget.h +++ b/src/songinfo/tagwidget.h @@ -30,7 +30,7 @@ class QPropertyAnimation; class TagWidgetTag : public QWidget { Q_OBJECT Q_PROPERTY(float background_opacity READ background_opacity WRITE - set_background_opacity); + set_background_opacity) public: TagWidgetTag(const QIcon& icon, const QString& text, QWidget* parent); diff --git a/src/transcoder/transcoder.h b/src/transcoder/transcoder.h index b0787158d..921ac8a1f 100644 --- a/src/transcoder/transcoder.h +++ b/src/transcoder/transcoder.h @@ -41,7 +41,7 @@ struct TranscoderPreset { QString codec_mimetype_; QString muxer_mimetype_; }; -Q_DECLARE_METATYPE(TranscoderPreset); +Q_DECLARE_METATYPE(TranscoderPreset) class Transcoder : public QObject { Q_OBJECT diff --git a/src/ui/equalizer.h b/src/ui/equalizer.h index 1fb7befc2..d0decf1cc 100644 --- a/src/ui/equalizer.h +++ b/src/ui/equalizer.h @@ -89,7 +89,7 @@ signals: QMap presets_; }; -Q_DECLARE_METATYPE(Equalizer::Params); +Q_DECLARE_METATYPE(Equalizer::Params) QDataStream& operator<<(QDataStream& s, const Equalizer::Params& p); QDataStream& operator>>(QDataStream& s, Equalizer::Params& p); diff --git a/src/ui/macsystemtrayicon.h b/src/ui/macsystemtrayicon.h index a3c61502d..701e8b57a 100644 --- a/src/ui/macsystemtrayicon.h +++ b/src/ui/macsystemtrayicon.h @@ -52,7 +52,7 @@ class MacSystemTrayIcon : public SystemTrayIcon { QPixmap orange_icon_; QPixmap grey_icon_; std::unique_ptr p_; - Q_DISABLE_COPY(MacSystemTrayIcon); + Q_DISABLE_COPY(MacSystemTrayIcon) }; #endif // MACSYSTEMTRAYICON_H diff --git a/src/widgets/groupediconview.h b/src/widgets/groupediconview.h index 025e5584d..ad1ae9569 100644 --- a/src/widgets/groupediconview.h +++ b/src/widgets/groupediconview.h @@ -37,7 +37,7 @@ class GroupedIconView : public QListView { Q_PROPERTY(int item_indent READ item_indent WRITE set_item_indent) // The text of each group's header. Must contain "%1". - Q_PROPERTY(QString header_text READ header_text WRITE set_header_text); + Q_PROPERTY(QString header_text READ header_text WRITE set_header_text) public: GroupedIconView(QWidget* parent = nullptr); diff --git a/src/widgets/lineedit.h b/src/widgets/lineedit.h index f9765d628..5ba922987 100644 --- a/src/widgets/lineedit.h +++ b/src/widgets/lineedit.h @@ -92,13 +92,13 @@ class ExtendedEditor : public LineEditInterface { class LineEdit : public QLineEdit, public ExtendedEditor { Q_OBJECT - Q_PROPERTY(QString hint READ hint WRITE set_hint); + Q_PROPERTY(QString hint READ hint WRITE set_hint) Q_PROPERTY(qreal font_point_size READ font_point_size WRITE - set_font_point_size); + set_font_point_size) Q_PROPERTY(bool has_clear_button READ has_clear_button WRITE - set_clear_button); + set_clear_button) Q_PROPERTY(bool has_reset_button READ has_reset_button WRITE - set_reset_button); + set_reset_button) public: LineEdit(QWidget* parent = nullptr); @@ -126,11 +126,11 @@ signals: class TextEdit : public QPlainTextEdit, public ExtendedEditor { Q_OBJECT - Q_PROPERTY(QString hint READ hint WRITE set_hint); + Q_PROPERTY(QString hint READ hint WRITE set_hint) Q_PROPERTY(bool has_clear_button READ has_clear_button WRITE - set_clear_button); + set_clear_button) Q_PROPERTY(bool has_reset_button READ has_reset_button WRITE - set_reset_button); + set_reset_button) public: TextEdit(QWidget* parent = nullptr); @@ -151,11 +151,11 @@ signals: class SpinBox : public QSpinBox, public ExtendedEditor { Q_OBJECT - Q_PROPERTY(QString hint READ hint WRITE set_hint); + Q_PROPERTY(QString hint READ hint WRITE set_hint) Q_PROPERTY(bool has_clear_button READ has_clear_button WRITE - set_clear_button); + set_clear_button) Q_PROPERTY(bool has_reset_button READ has_reset_button WRITE - set_reset_button); + set_reset_button) public: SpinBox(QWidget* parent = nullptr); diff --git a/src/widgets/ratingwidget.h b/src/widgets/ratingwidget.h index 244d09882..90ccd4a69 100644 --- a/src/widgets/ratingwidget.h +++ b/src/widgets/ratingwidget.h @@ -38,7 +38,7 @@ class RatingPainter { class RatingWidget : public QWidget { Q_OBJECT - Q_PROPERTY(float rating READ rating WRITE set_rating); + Q_PROPERTY(float rating READ rating WRITE set_rating) public: RatingWidget(QWidget* parent = nullptr); diff --git a/src/widgets/stickyslider.h b/src/widgets/stickyslider.h index f04f0be4b..6a1e07e1a 100644 --- a/src/widgets/stickyslider.h +++ b/src/widgets/stickyslider.h @@ -22,9 +22,9 @@ class StickySlider : public QSlider { Q_OBJECT - Q_PROPERTY(int sticky_center READ sticky_center WRITE set_sticky_center); + Q_PROPERTY(int sticky_center READ sticky_center WRITE set_sticky_center) Q_PROPERTY(int sticky_threshold READ sticky_threshold WRITE - set_sticky_threshold); + set_sticky_threshold) public: StickySlider(QWidget* parent = nullptr);