mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Fixed Qt4 errors.
This commit is contained in:
parent
77f4cf8de4
commit
87a8201d2c
2 changed files with 5 additions and 5 deletions
|
@ -7,6 +7,9 @@
|
||||||
#include "lc_model.h"
|
#include "lc_model.h"
|
||||||
#include "project.h"
|
#include "project.h"
|
||||||
#include "pieceinf.h"
|
#include "pieceinf.h"
|
||||||
|
#include "view.h"
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(QList<int>)
|
||||||
|
|
||||||
static int lcPartSortFunc(PieceInfo* const& a, PieceInfo* const& b)
|
static int lcPartSortFunc(PieceInfo* const& a, PieceInfo* const& b)
|
||||||
{
|
{
|
||||||
|
@ -282,9 +285,6 @@ Qt::ItemFlags lcPartSelectionListModel::flags(const QModelIndex& Index) const
|
||||||
return DefaultFlags;
|
return DefaultFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "lc_mainwindow.h"
|
|
||||||
#include "view.h"
|
|
||||||
|
|
||||||
void lcPartSelectionListModel::RequestPreview(int InfoIndex)
|
void lcPartSelectionListModel::RequestPreview(int InfoIndex)
|
||||||
{
|
{
|
||||||
if (!mIconSize || !mParts[InfoIndex].second.isNull())
|
if (!mIconSize || !mParts[InfoIndex].second.isNull())
|
||||||
|
@ -576,8 +576,6 @@ lcPartSelectionWidget::lcPartSelectionWidget(QWidget* Parent)
|
||||||
mSplitter->setStretchFactor(1, 1);
|
mSplitter->setStretchFactor(1, 1);
|
||||||
|
|
||||||
connect(Parent, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)), this, SLOT(DockLocationChanged(Qt::DockWidgetArea)));
|
connect(Parent, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)), this, SLOT(DockLocationChanged(Qt::DockWidgetArea)));
|
||||||
|
|
||||||
qRegisterMetaTypeStreamOperators<QList<int> >("QList<int>");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcPartSelectionWidget::LoadState(QSettings& Settings)
|
void lcPartSelectionWidget::LoadState(QSettings& Settings)
|
||||||
|
|
|
@ -144,6 +144,8 @@ int main(int argc, char *argv[])
|
||||||
Translator.load(QString("leocad_") + QLocale::system().name().section('_', 0, 0) + ".qm", ":/resources");
|
Translator.load(QString("leocad_") + QLocale::system().name().section('_', 0, 0) + ".qm", ":/resources");
|
||||||
app.installTranslator(&Translator);
|
app.installTranslator(&Translator);
|
||||||
|
|
||||||
|
qRegisterMetaTypeStreamOperators<QList<int> >("QList<int>");
|
||||||
|
|
||||||
g_App = new lcApplication();
|
g_App = new lcApplication();
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
|
|
Loading…
Add table
Reference in a new issue