change "compiler options" tool button's position in the toolbar

This commit is contained in:
Roy Qu 2022-05-07 07:53:16 +08:00
parent e3d7af019d
commit 03e588d173
2 changed files with 3 additions and 2 deletions

View File

@ -141,7 +141,8 @@ MainWindow::MainWindow(QWidget *parent)
mCompilerSet = new QComboBox();
mCompilerSet->setMinimumWidth(200);
mCompilerSet->setSizeAdjustPolicy(QComboBox::AdjustToContents);
ui->toolbarCompilerSet->addWidget(mCompilerSet);
ui->toolbarCompilerSet->insertWidget(ui->actionCompiler_Options, mCompilerSet);
ui->toolbarCompilerSet->insertSeparator(ui->actionCompiler_Options);
connect(mCompilerSet,QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &MainWindow::onCompilerSetChanged);
//updateCompilerSet();

View File

@ -1835,7 +1835,6 @@
<addaction name="actionRebuild"/>
<addaction name="separator"/>
<addaction name="actionRun_Parameters"/>
<addaction name="actionCompiler_Options"/>
</widget>
<widget class="QToolBar" name="toolbarDebug">
<property name="windowTitle">
@ -1879,6 +1878,7 @@
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionCompiler_Options"/>
</widget>
<action name="actionNew">
<property name="icon">