forked from qt-creator/qt-creator
Added icons to options dialog categories
Some categories do not have icons yet, unfortunately.
This commit is contained in:
@@ -62,6 +62,11 @@ QString GdbOptionsPage::displayCategory() const
|
||||
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_TR_CATEGORY);
|
||||
}
|
||||
|
||||
QIcon GdbOptionsPage::categoryIcon() const
|
||||
{
|
||||
return QIcon(QLatin1String(Debugger::Constants::DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON));
|
||||
}
|
||||
|
||||
QWidget *GdbOptionsPage::createPage(QWidget *parent)
|
||||
{
|
||||
QWidget *w = new QWidget(parent);
|
||||
|
||||
@@ -48,6 +48,7 @@ public:
|
||||
virtual QString displayName() const;
|
||||
virtual QString category() const;
|
||||
virtual QString displayCategory() const;
|
||||
virtual QIcon categoryIcon() const;
|
||||
|
||||
virtual QWidget *createPage(QWidget *parent);
|
||||
virtual void apply();
|
||||
|
||||
@@ -69,6 +69,11 @@ QString TrkOptionsPage::displayCategory() const
|
||||
return QCoreApplication::translate("Debugger", Debugger::Constants::DEBUGGER_SETTINGS_TR_CATEGORY);
|
||||
}
|
||||
|
||||
QIcon TrkOptionsPage::categoryIcon() const
|
||||
{
|
||||
return QIcon(QLatin1String(Debugger::Constants::DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON));
|
||||
}
|
||||
|
||||
QWidget *TrkOptionsPage::createPage(QWidget *parent)
|
||||
{
|
||||
if (!m_widget)
|
||||
|
||||
@@ -56,6 +56,7 @@ public:
|
||||
virtual QString displayName() const;
|
||||
virtual QString category() const;
|
||||
virtual QString displayCategory() const;
|
||||
virtual QIcon categoryIcon() const;
|
||||
|
||||
virtual QWidget *createPage(QWidget *parent);
|
||||
virtual void apply();
|
||||
|
||||
Reference in New Issue
Block a user