Commit 20d248d4 authored by Laurent Montel's avatar Laurent Montel 😁

It compiles fine without deprecated method

parent 1851c66e
......@@ -47,11 +47,12 @@ configure_file(
"${PROJECT_BINARY_DIR}/focustrackconfig.h")
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
endif()
add_definitions(
-DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050900
-DQT_STRICT_ITERATORS
)
add_subdirectory( doc )
......
......@@ -210,7 +210,7 @@ KMagSelWin::KMagSelWin ( QWidget * parent ) :
titleBar = new KMagSelWinCorner (this);
titleBar->setObjectName( QStringLiteral("titlebar" ));
setPaletteColor(titleBar, QPalette::Window, getTitleColor());
setPaletteColor(titleBar, QPalette::Foreground, getTextColor());
setPaletteColor(titleBar, QPalette::WindowText, getTextColor());
titleBar->setText(i18n("Selection Window")+QLatin1String( " - " )+i18n("KMagnifier"));
connect (titleBar, &KMagSelWinCorner::startResizing, this, &KMagSelWin::startResizing);
connect (titleBar, &KMagSelWinCorner::resized, this, &KMagSelWin::titleMoved);
......
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