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:
@@ -70,6 +70,11 @@ QString CompletionSettingsPage::displayCategory() const
|
||||
return QCoreApplication::translate("Text Editor", TextEditor::Constants::TEXT_EDITOR_SETTINGS_TR_CATEGORY);
|
||||
}
|
||||
|
||||
QIcon CompletionSettingsPage::categoryIcon() const
|
||||
{
|
||||
return QIcon(QLatin1String(TextEditor::Constants::TEXT_EDITOR_SETTINGS_CATEGORY_ICON));
|
||||
}
|
||||
|
||||
QWidget *CompletionSettingsPage::createPage(QWidget *parent)
|
||||
{
|
||||
QWidget *w = new QWidget(parent);
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
QString displayName() const;
|
||||
QString category() const;
|
||||
QString displayCategory() const;
|
||||
QIcon categoryIcon() const;
|
||||
|
||||
QWidget *createPage(QWidget *parent);
|
||||
void apply();
|
||||
|
||||
@@ -319,6 +319,11 @@ QString CppFileSettingsPage::displayCategory() const
|
||||
return QCoreApplication::translate("CppTools", Constants::CPP_SETTINGS_TR_CATEGORY);
|
||||
}
|
||||
|
||||
QIcon CppFileSettingsPage::categoryIcon() const
|
||||
{
|
||||
return QIcon(); // TODO: Icon for C++ or move into category
|
||||
}
|
||||
|
||||
QWidget *CppFileSettingsPage::createPage(QWidget *parent)
|
||||
{
|
||||
|
||||
|
||||
@@ -101,6 +101,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