Core: Use FilePath for IOptionsPage::setCategoryIconPath

Change-Id: I0e234e0ef37c4fbdc738546fb9e8edc794c40228
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-08-11 08:44:00 +02:00
parent ab98f31a1d
commit d12861ea91
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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);