GUI: Rename main toolbar in code.

This commit is contained in:
Kimmo Varis 2010-07-03 13:11:38 +03:00
parent 5d55bc0581
commit c5a3b306e4
2 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,7 @@
<addaction name="mMenuLanguage"/> <addaction name="mMenuLanguage"/>
<addaction name="mMenuHelp"/> <addaction name="mMenuHelp"/>
</widget> </widget>
<widget class="QToolBar" name="mToolBar"> <widget class="QToolBar" name="mToolBarMain">
<property name="windowTitle"> <property name="windowTitle">
<string>Standard</string> <string>Standard</string>
</property> </property>

View File

@ -162,7 +162,7 @@ void MainWindow::LoadSettings()
mUI.mResults->ShowResults(SHOW_STYLE, mUI.mActionShowStyle->isChecked()); mUI.mResults->ShowResults(SHOW_STYLE, mUI.mActionShowStyle->isChecked());
mUI.mActionToolbar->setChecked(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool()); mUI.mActionToolbar->setChecked(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool());
mUI.mToolBar->setVisible(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool()); mUI.mToolBarMain->setVisible(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool());
mApplications->LoadSettings(mSettings); mApplications->LoadSettings(mSettings);
@ -180,7 +180,7 @@ void MainWindow::SaveSettings()
mSettings->setValue(SETTINGS_SHOW_STYLE, mUI.mActionShowStyle->isChecked()); mSettings->setValue(SETTINGS_SHOW_STYLE, mUI.mActionShowStyle->isChecked());
mSettings->setValue(SETTINGS_SHOW_ERRORS, mUI.mActionShowErrors->isChecked()); mSettings->setValue(SETTINGS_SHOW_ERRORS, mUI.mActionShowErrors->isChecked());
mSettings->setValue(SETTINGS_TOOLBARS_SHOW, mUI.mToolBar->isVisible()); mSettings->setValue(SETTINGS_TOOLBARS_SHOW, mUI.mToolBarMain->isVisible());
mApplications->SaveSettings(mSettings); mApplications->SaveSettings(mSettings);
@ -565,7 +565,7 @@ void MainWindow::ResultsAdded()
void MainWindow::ToggleToolbar() void MainWindow::ToggleToolbar()
{ {
mUI.mToolBar->setVisible(mUI.mActionToolbar->isChecked()); mUI.mToolBarMain->setVisible(mUI.mActionToolbar->isChecked());
} }
void MainWindow::FormatAndSetTitle(const QString &text) void MainWindow::FormatAndSetTitle(const QString &text)
@ -630,7 +630,7 @@ void MainWindow::MapLanguage(QAction *action)
void MainWindow::AboutToShowViewMenu() void MainWindow::AboutToShowViewMenu()
{ {
mUI.mActionToolbar->setChecked(mUI.mToolBar->isVisible()); mUI.mActionToolbar->setChecked(mUI.mToolBarMain->isVisible());
} }
void MainWindow::StopChecking() void MainWindow::StopChecking()