Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 75f8415e authored by Dominik Haumann's avatar Dominik Haumann

Make blankIcon() a free function

parent 0d1c47d1
......@@ -67,6 +67,14 @@ namespace {
{
return item ? reinterpret_cast<KateExternalTool*>(item->data(ToolRole).value<quintptr>()) : nullptr;
}
QPixmap blankIcon()
{
QPixmap pm(KIconLoader::SizeSmall, KIconLoader::SizeSmall);
pm.fill();
pm.setMask(pm.createHeuristicMask());
return pm;
}
}
// BEGIN KateExternalToolServiceEditor
......@@ -242,14 +250,6 @@ void KateExternalToolsConfigWidget::reset()
m_changed = false;
}
QPixmap KateExternalToolsConfigWidget::blankIcon()
{
QPixmap pm(KIconLoader::SizeSmall, KIconLoader::SizeSmall);
pm.fill();
pm.setMask(pm.createHeuristicMask());
return pm;
}
void KateExternalToolsConfigWidget::apply()
{
if (!m_changed)
......
......@@ -88,9 +88,6 @@ private Q_SLOTS:
*/
void clearTools();
private:
QPixmap blankIcon();
private:
KConfig *m_config = nullptr;
bool m_changed = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment