Fixed Qt4 errors.

This commit is contained in:
leozide 2017-02-06 14:20:09 -08:00
parent 77f4cf8de4
commit 87a8201d2c
2 changed files with 5 additions and 5 deletions

View file

@ -7,6 +7,9 @@
#include "lc_model.h"
#include "project.h"
#include "pieceinf.h"
#include "view.h"
Q_DECLARE_METATYPE(QList<int>)
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<int> >("QList<int>");
}
void lcPartSelectionWidget::LoadState(QSettings& Settings)

View file

@ -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<int> >("QList<int>");
g_App = new lcApplication();
#if defined(Q_OS_WIN)