Fixed build error. Fixed GCC warnings.
--HG-- branch : develop
This commit is contained in:
parent
2bfd22c02c
commit
643b84e159
|
@ -84,12 +84,8 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
currentToolBoxIndex(0), drawMode(true), recentFileActs(),
|
currentToolBoxIndex(0), drawMode(true), recentFileActs(),
|
||||||
separatorAct(nullptr),
|
separatorAct(nullptr),
|
||||||
leftGoToStage(nullptr), rightGoToStage(nullptr), autoSaveTimer(nullptr), guiEnabled(true),
|
leftGoToStage(nullptr), rightGoToStage(nullptr), autoSaveTimer(nullptr), guiEnabled(true),
|
||||||
gradationHeights(nullptr), gradationSizes(nullptr),
|
gradationHeights(nullptr), gradationSizes(nullptr), gradationHeightsLabel(nullptr), gradationSizesLabel(nullptr),
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
|
|
||||||
toolOptions(nullptr), lock(nullptr)
|
toolOptions(nullptr), lock(nullptr)
|
||||||
#else
|
|
||||||
toolOptions(nullptr)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
for (int i = 0; i < MaxRecentFiles; ++i)
|
for (int i = 0; i < MaxRecentFiles; ++i)
|
||||||
{
|
{
|
||||||
|
@ -1214,13 +1210,15 @@ void MainWindow::ToolBarOption()
|
||||||
gradationHeightsLabel = new QLabel(tr("Height: "), this);
|
gradationHeightsLabel = new QLabel(tr("Height: "), this);
|
||||||
gradationHeights = SetGradationList(gradationHeightsLabel, listHeights);
|
gradationHeights = SetGradationList(gradationHeightsLabel, listHeights);
|
||||||
SetDefaultHeight(static_cast<int>(pattern->height()));
|
SetDefaultHeight(static_cast<int>(pattern->height()));
|
||||||
connect(gradationHeights, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged),
|
connect(gradationHeights.data(),
|
||||||
|
static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged),
|
||||||
this, &MainWindow::ChangedHeight);
|
this, &MainWindow::ChangedHeight);
|
||||||
|
|
||||||
gradationSizesLabel = new QLabel(tr("Size: "), this);
|
gradationSizesLabel = new QLabel(tr("Size: "), this);
|
||||||
gradationSizes = SetGradationList(gradationSizesLabel, listSizes);
|
gradationSizes = SetGradationList(gradationSizesLabel, listSizes);
|
||||||
SetDefaultSize(static_cast<int>(pattern->size()));
|
SetDefaultSize(static_cast<int>(pattern->size()));
|
||||||
connect(gradationSizes, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged),
|
connect(gradationSizes.data(),
|
||||||
|
static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged),
|
||||||
this, &MainWindow::ChangedSize);
|
this, &MainWindow::ChangedSize);
|
||||||
|
|
||||||
ui->toolBarOption->addSeparator();
|
ui->toolBarOption->addSeparator();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user