shell: port away from KIconLoader::SizeMedium

GIT_SILENT
parent 78bf8aad
......@@ -141,7 +141,6 @@ PRIVATE
KDev::Documentation
KF5::GuiAddons
KF5::ConfigWidgets
KF5::IconThemes
KF5::KIOFileWidgets
KF5::KIOWidgets
KF5::Parts
......
......@@ -34,7 +34,6 @@
#else
#include <KAboutApplicationDialog>
#endif
#include <KIconLoader>
#include <KLocalizedString>
#include <KTitleWidget>
#include <KWidgetItemDelegate>
......@@ -145,12 +144,13 @@ public:
int i = 5;
int j = 1;
const int iconSize = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize);
QFont font = titleFont(option.font);
QFontMetrics fmTitle(font);
return QSize(
KIconLoader::SizeMedium + MARGIN * i + pushButton->sizeHint().width() * j,
qMax(KIconLoader::SizeMedium + MARGIN * 2, fmTitle.height() + option.fontMetrics.height() + MARGIN * 2)
iconSize + MARGIN * i + pushButton->sizeHint().width() * j,
qMax(iconSize + MARGIN * 2, fmTitle.height() + option.fontMetrics.height() + MARGIN * 2)
);
}
......
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