ui: added individual help window titles
This commit is contained in:
@@ -4,11 +4,12 @@
|
||||
|
||||
#include "utility/ResourcePaths.h"
|
||||
|
||||
QtHelpButton::QtHelpButton(const QString& helpText, QWidget* parent)
|
||||
QtHelpButton::QtHelpButton(const QString& helpTitle, const QString& helpText, QWidget* parent)
|
||||
: QtIconButton(
|
||||
(ResourcePaths::getGuiPath().str() + "window/help.png").c_str(),
|
||||
(ResourcePaths::getGuiPath().str() + "window/help_hover.png").c_str(),
|
||||
parent)
|
||||
, m_helpTitle(helpTitle)
|
||||
, m_helpText(helpText)
|
||||
{
|
||||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
@@ -27,7 +28,7 @@ void QtHelpButton::handleHelpPress()
|
||||
QMessageBox msgBox;
|
||||
msgBox.setWindowTitle("Sourcetrail");
|
||||
msgBox.setIcon(QMessageBox::Information);
|
||||
msgBox.setText("Sourcetrail Help");
|
||||
msgBox.setText("<b>" + m_helpTitle + "</b>");
|
||||
msgBox.setInformativeText(m_helpText);
|
||||
msgBox.setStandardButtons(QMessageBox::Ok);
|
||||
msgBox.setDefaultButton(QMessageBox::Ok);
|
||||
|
||||
Reference in New Issue
Block a user