diff --git a/common/lc_partselectionwidget.cpp b/common/lc_partselectionwidget.cpp index e8cd2c90..4fde9445 100644 --- a/common/lc_partselectionwidget.cpp +++ b/common/lc_partselectionwidget.cpp @@ -7,6 +7,9 @@ #include "lc_model.h" #include "project.h" #include "pieceinf.h" +#include "view.h" + + Q_DECLARE_METATYPE(QList) static int lcPartSortFunc(PieceInfo* const& a, PieceInfo* const& b) { @@ -282,9 +285,6 @@ Qt::ItemFlags lcPartSelectionListModel::flags(const QModelIndex& Index) const return DefaultFlags; } -#include "lc_mainwindow.h" -#include "view.h" - void lcPartSelectionListModel::RequestPreview(int InfoIndex) { if (!mIconSize || !mParts[InfoIndex].second.isNull()) @@ -576,8 +576,6 @@ lcPartSelectionWidget::lcPartSelectionWidget(QWidget* Parent) mSplitter->setStretchFactor(1, 1); connect(Parent, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)), this, SLOT(DockLocationChanged(Qt::DockWidgetArea))); - - qRegisterMetaTypeStreamOperators >("QList"); } void lcPartSelectionWidget::LoadState(QSettings& Settings) diff --git a/qt/qtmain.cpp b/qt/qtmain.cpp index a66d03c2..05b18bf9 100644 --- a/qt/qtmain.cpp +++ b/qt/qtmain.cpp @@ -144,6 +144,8 @@ int main(int argc, char *argv[]) Translator.load(QString("leocad_") + QLocale::system().name().section('_', 0, 0) + ".qm", ":/resources"); app.installTranslator(&Translator); + qRegisterMetaTypeStreamOperators >("QList"); + g_App = new lcApplication(); #if defined(Q_OS_WIN)