Toolbar can now be hidden.
Treeview's headers will now be translated when language changes.
This commit is contained in:
parent
e5d5573067
commit
4206a9d218
|
@ -70,8 +70,9 @@ MainWindow::MainWindow() :
|
||||||
|
|
||||||
connect(mUI.mActionAbout, SIGNAL(triggered()), this, SLOT(About()));
|
connect(mUI.mActionAbout, SIGNAL(triggered()), this, SLOT(About()));
|
||||||
connect(mUI.mActionLicense, SIGNAL(triggered()), this, SLOT(ShowLicense()));
|
connect(mUI.mActionLicense, SIGNAL(triggered()), this, SLOT(ShowLicense()));
|
||||||
connect(mUI.mActionAuthors, SIGNAL(triggered()), this, SLOT(ShowAuthors()));
|
connect(mUI.mActionToolbar, SIGNAL(toggled(bool)), this, SLOT(ToggleToolbar()));
|
||||||
|
|
||||||
|
connect(mUI.mActionAuthors, SIGNAL(triggered()), this, SLOT(ShowAuthors()));
|
||||||
connect(mThread, SIGNAL(Done()), this, SLOT(CheckDone()));
|
connect(mThread, SIGNAL(Done()), this, SLOT(CheckDone()));
|
||||||
connect(mUI.mResults, SIGNAL(GotResults()), this, SLOT(ResultsAdded()));
|
connect(mUI.mResults, SIGNAL(GotResults()), this, SLOT(ResultsAdded()));
|
||||||
|
|
||||||
|
@ -572,6 +573,7 @@ void MainWindow::SetLanguage(int index)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mUI.retranslateUi(this);
|
mUI.retranslateUi(this);
|
||||||
|
mUI.mResults->Translate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -746,7 +746,7 @@ bool ResultsTree::HasResults() const
|
||||||
return mModel.rowCount() > 0;
|
return mModel.rowCount() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ResultsTree::LanguageChanged()
|
void ResultsTree::Translate()
|
||||||
{
|
{
|
||||||
QStringList labels;
|
QStringList labels;
|
||||||
labels << tr("File") << tr("Severity") << tr("Line") << tr("Message");
|
labels << tr("File") << tr("Severity") << tr("Line") << tr("Message");
|
||||||
|
|
|
@ -119,7 +119,7 @@ public:
|
||||||
* @brief Change all visible texts language
|
* @brief Change all visible texts language
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void LanguageChanged();
|
void Translate();
|
||||||
protected slots:
|
protected slots:
|
||||||
/**
|
/**
|
||||||
* @brief Slot to quickstart an error with default application
|
* @brief Slot to quickstart an error with default application
|
||||||
|
|
|
@ -197,3 +197,8 @@ void ResultsView::SaveSettings()
|
||||||
mUI.mTree->SaveSettings();
|
mUI.mTree->SaveSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ResultsView::Translate()
|
||||||
|
{
|
||||||
|
mUI.mTree->Translate();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -110,6 +110,12 @@ public:
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void SaveSettings();
|
void SaveSettings();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Translate this view
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void Translate();
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue