diff --git a/src/macrobrowserui.cpp b/src/macrobrowserui.cpp index 7c3a83cc87..7cf5a0d918 100644 --- a/src/macrobrowserui.cpp +++ b/src/macrobrowserui.cpp @@ -8,6 +8,9 @@ const int MacroBrowserUI::FileRole = Qt::UserRole + 0; const int MacroBrowserUI::UrlRole = Qt::UserRole + 1; const int MacroBrowserUI::PathRole = Qt::UserRole + 2; const int MacroBrowserUI::PopulatedRole = Qt::UserRole + 3; +#if QT_VERSION_MAJOR<6 +Q_DECLARE_METATYPE(QTreeWidgetItem *) +#endif MacroBrowserUI::MacroBrowserUI(QWidget *parent):QDialog (parent) { diff --git a/src/macrobrowserui.h b/src/macrobrowserui.h index 36ed2e532c..1b41f8eab7 100644 --- a/src/macrobrowserui.h +++ b/src/macrobrowserui.h @@ -47,8 +47,4 @@ private slots: QNetworkAccessManager *networkManager; }; -#if QT_VERSION_MAJOR<6 -Q_DECLARE_METATYPE(QTreeWidgetItem *) -#endif - #endif // MACROBROWSERUI_H