Skip to content

Commit

Permalink
Switched position of settings and direct infusion dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMSeitzer committed Oct 7, 2019
1 parent e7886e7 commit 8cb8f8f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/maven/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -917,27 +917,27 @@ void MainWindow::createToolBars() {
btnSpectraMatching->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
btnSpectraMatching->setToolTip(tr("Seach Spectra for Fragmentation Patterns"));

QToolButton *btnSettings = new QToolButton(toolBar);
btnSettings->setText("Options");
btnSettings->setIcon(QIcon(rsrcPath + "/settings.png"));
btnSettings->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
btnSettings->setToolTip(tr("Change Global Options"));

QToolButton *btnDirectInfusion = new QToolButton(toolBar);
btnDirectInfusion->setText("Direct Infusion");
btnDirectInfusion->setIcon(QIcon(rsrcPath +"/averageSpectra.png"));
btnDirectInfusion->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
btnDirectInfusion->setToolTip(tr("Process Direct Infusion Samples"));

QToolButton *btnSettings = new QToolButton(toolBar);
btnSettings->setText("Options");
btnSettings->setIcon(QIcon(rsrcPath + "/settings.png"));
btnSettings->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
btnSettings->setToolTip(tr("Change Global Options"));

connect(btnOpen, SIGNAL(clicked()), SLOT(open()));
connect(btnLibrary, SIGNAL(clicked()), libraryDialog, SLOT(show()));
connect(btnAlign,SIGNAL(clicked()), alignmentDialog, SLOT(show()));
connect(btnCalibrate,SIGNAL(clicked()), calibrateDialog, SLOT(show()));
connect(btnDbSearch,SIGNAL(clicked()), SLOT(compoundDatabaseSearch()));
connect(btnFeatureDetect,SIGNAL(clicked()), SLOT(showMassSlices()));
connect(btnSettings,SIGNAL(clicked()),settingsForm,SLOT(show()));
connect(btnSpectraMatching,SIGNAL(clicked()),spectraMatchingForm,SLOT(show()));
connect(btnDirectInfusion, SIGNAL(clicked()), SLOT(showDirectInfusionDialog()));
connect(btnSettings,SIGNAL(clicked()),settingsForm,SLOT(show()));

toolBar->addWidget(btnOpen);
toolBar->addWidget(btnLibrary);
Expand All @@ -946,9 +946,8 @@ void MainWindow::createToolBars() {
toolBar->addWidget(btnDbSearch);
toolBar->addWidget(btnFeatureDetect);
toolBar->addWidget(btnSpectraMatching);
toolBar->addWidget(btnSettings);
toolBar->addWidget(btnDirectInfusion);

toolBar->addWidget(btnSettings);

QWidget *hBox = new QWidget(toolBar);
(void)toolBar->addWidget(hBox);
Expand Down

0 comments on commit 8cb8f8f

Please sign in to comment.