forked from qt-creator/qt-creator
Core: Use FilePath for IOptionsPage::setCategoryIconPath
Change-Id: I0e234e0ef37c4fbdc738546fb9e8edc794c40228 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -183,9 +183,9 @@ void IOptionsPage::finish()
|
||||
Sets \a categoryIconPath as the path to the category icon of the options
|
||||
page.
|
||||
*/
|
||||
void IOptionsPage::setCategoryIconPath(const QString &categoryIconPath)
|
||||
void IOptionsPage::setCategoryIconPath(const FilePath &categoryIconPath)
|
||||
{
|
||||
m_categoryIcon = Icon({{FilePath::fromString(categoryIconPath), Theme::PanelTextColorDark}}, Icon::Tint);
|
||||
m_categoryIcon = Icon({{categoryIconPath, Theme::PanelTextColorDark}}, Icon::Tint);
|
||||
}
|
||||
|
||||
void IOptionsPage::setSettings(AspectContainer *settings)
|
||||
|
@@ -79,7 +79,7 @@ protected:
|
||||
void setCategory(Utils::Id category) { m_category = category; }
|
||||
void setDisplayCategory(const QString &displayCategory) { m_displayCategory = displayCategory; }
|
||||
void setCategoryIcon(const Utils::Icon &categoryIcon) { m_categoryIcon = categoryIcon; }
|
||||
void setCategoryIconPath(const QString &categoryIconPath);
|
||||
void setCategoryIconPath(const Utils::FilePath &categoryIconPath);
|
||||
void setSettings(Utils::AspectContainer *settings);
|
||||
void setLayouter(const std::function<void(QWidget *w)> &layouter);
|
||||
|
||||
|
Reference in New Issue
Block a user