From 03e588d173681c4641509ef78c10deab8cb97b0a Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 7 May 2022 07:53:16 +0800 Subject: [PATCH] change "compiler options" tool button's position in the toolbar --- RedPandaIDE/mainwindow.cpp | 3 ++- RedPandaIDE/mainwindow.ui | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index bf46273c..08e30656 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -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::of(&QComboBox::currentIndexChanged), this, &MainWindow::onCompilerSetChanged); //updateCompilerSet(); diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui index 38766b39..65ac76c6 100644 --- a/RedPandaIDE/mainwindow.ui +++ b/RedPandaIDE/mainwindow.ui @@ -1835,7 +1835,6 @@ - @@ -1879,6 +1878,7 @@ false +