Commit 6057a3f8 authored by Laurent Montel's avatar Laurent Montel 😁

Use directly KDEFrameworkCompilerSettings

parent debf6d23
......@@ -11,7 +11,7 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_S
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(FeatureSummary)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Widgets)
......@@ -32,10 +32,6 @@ add_feature_info("X11_xf86vmode" X11_xf86vmode_FOUND "Required to build kgamma."
configure_file(config-kgamma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kgamma.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_USE_QSTRINGBUILDER)
add_definitions(-DQT_NO_CAST_FROM_ASCII)
add_definitions(-DQT_NO_CAST_TO_ASCII)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
add_subdirectory(kcmkgamma)
......
......@@ -55,11 +55,11 @@ class GammaCtrl : public QWidget {
double ming;
XVidExtWrap *xv;
public slots:
public Q_SLOTS:
/** Disable textfield */
void suspend();
protected slots:
protected Q_SLOTS:
/** Set slider and textfield */
void setCtrl(int);
/** Set gamma and textfield */
......@@ -67,7 +67,7 @@ class GammaCtrl : public QWidget {
/** Change status of GammaCtrl when pressed */
void pressed();
signals:
Q_SIGNALS:
/** Gamma change signal */
void gammaChanged(int);
};
......
......@@ -52,7 +52,7 @@ class KGamma: public KCModule
/** Validate the loaded gamma values */
bool validateGammaValues();
private slots:
private Q_SLOTS:
/** Called if the user changesd something */
void Changed() { emit changed(true); }
/** Called if the user marked or unmarked the XF86Config checkbox */
......
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