Commit a1154a0f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove deprecated method

parent 4fa81426
......@@ -33,6 +33,7 @@ project(Filelight VERSION ${FILELIGHT_VERSION})
set(PROJECT_VERSION ${KDE_APPLICATIONS_VERSION})
set(KF5_MIN_VERSION "5.46.0")
set(QT_REQUIRED_VERSION "5.11.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
......@@ -49,7 +50,7 @@ include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
find_package(Qt5 5.9 CONFIG REQUIRED Core Widgets)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Widgets)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
XmlGui # For app
KIO # For part
......
......@@ -224,7 +224,7 @@ void RadialMap::Widget::mouseMoveEvent(QMouseEvent *e)
int tooltipHeight = 0;
for (const QString &part : string.split(QLatin1Char('\n'))) {
tooltipHeight += fontMetrics.height();
tooltipWidth = qMax(tooltipWidth, fontMetrics.width(part));
tooltipWidth = qMax(tooltipWidth, fontMetrics.boundingRect(part).width());
}
tooltipWidth += 10;
tooltipHeight += 10;
......
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