Commit 2df91ac9 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii Committed by Vlad Zahorodnii

[kstyle] Drop Qt 4 style plugin

Summary:
KWindowSystem cannot be used in the Qt 4 style plugin. On the other hand,
we need to use KWindowSystem to make QWidget-based internal clients in
KWin cast drop-shadows.

Another problem with the Qt 4 style plugin is that some distributions
have already dropped Qt 4, so one has to build it first in order to
verify that his or her change works with Qt 4.

Given maintenance burden and the fact that Qt 6 is around the corner,
this change drops the Qt 4 style plugin.

Reviewers: #kwin, #plasma, davidedmundson

Reviewed By: #kwin, #plasma, davidedmundson

Subscribers: davidedmundson, mart, plasma-devel

Tags: #plasma

Maniphest Tasks: T12496

Differential Revision: https://phabricator.kde.org/D26476
parent 5a447b59
......@@ -4,81 +4,67 @@ set(PROJECT_VERSION_MAJOR 5)
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
option(USE_KDE4 "Build a widget style for KDE4 (and nothing else)")
include(GenerateExportHeader)
include(WriteBasicConfigVersionFile)
include(FeatureSummary)
if(USE_KDE4)
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
include(MacroLibrary)
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(${KDE4_INCLUDES})
find_package(ECM 0.0.9 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
add_subdirectory(libbreezecommon)
add_subdirectory(kstyle)
else()
find_package(ECM 0.0.9 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDEClangFormat)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDEClangFormat)
include(GtkUpdateIconCache)
include(GtkUpdateIconCache)
option(WITH_DECORATIONS "Build Breeze window decorations for KWin" ON)
if(WITH_DECORATIONS)
option(WITH_DECORATIONS "Build Breeze window decorations for KWin" ON)
if(WITH_DECORATIONS)
find_package(KDecoration2 REQUIRED)
add_subdirectory(kdecoration)
endif()
endif()
add_subdirectory(colors)
add_subdirectory(cursors)
add_subdirectory(libbreezecommon)
add_subdirectory(kstyle)
add_subdirectory(misc)
add_subdirectory(colors)
add_subdirectory(cursors)
add_subdirectory(libbreezecommon)
add_subdirectory(kstyle)
add_subdirectory(misc)
option(WITH_WALLPAPERS "Install Breeze default wallpapers" ON)
if (WITH_WALLPAPERS)
option(WITH_WALLPAPERS "Install Breeze default wallpapers" ON)
if (WITH_WALLPAPERS)
add_subdirectory(wallpapers)
endif()
endif()
find_package(KF5Package CONFIG REQUIRED)
kpackage_install_package(lookandfeel.dark org.kde.breezedark.desktop look-and-feel plasma)
if(EXISTS ${CMAKE_SOURCE_DIR}/po AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/po)
find_package(KF5Package CONFIG REQUIRED)
kpackage_install_package(lookandfeel.dark org.kde.breezedark.desktop look-and-feel plasma)
if(EXISTS ${CMAKE_SOURCE_DIR}/po AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/po)
find_package(KF5I18n CONFIG REQUIRED)
ki18n_install(po)
endif()
endif()
include(ECMSetupVersion)
ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX BREEZE
include(ECMSetupVersion)
ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX BREEZE
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/BreezeConfigVersion.cmake"
)
# create a Config.cmake and a ConfigVersion.cmake file and install them
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/Breeze")
# create a Config.cmake and a ConfigVersion.cmake file and install them
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/Breeze")
ecm_configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/BreezeConfig.cmake.in"
ecm_configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/BreezeConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/BreezeConfig.cmake"
PATH_VARS KDE_INSTALL_FULL_DATADIR
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
)
# add clang-format target for all our real source files
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
# add clang-format target for all our real source files
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/BreezeConfig.cmake"
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/BreezeConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/BreezeConfigVersion.cmake"
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
COMPONENT Devel
)
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(BREEZE_USE_KDE4 ${USE_KDE4})
if(BREEZE_USE_KDE4)
############ Language and toolchain features
############ copied from ECM
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" AND NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
endif()
endif()
################# Qt/KDE #################
if(BREEZE_USE_KDE4)
### XCB
if(UNIX AND NOT APPLE)
find_package(PkgConfig REQUIRED)
pkg_check_modules(XCB xcb x11-xcb)
add_feature_info("x11-xcb" XCB_FOUND "Required to pass style properties to native Windows on X11 Platform")
set_feature_info("x11-xcb" "Required to pass style properties to native Windows on X11 Platform" "https://xcb.freedesktop.org")
set(BREEZE_HAVE_X11 ${XCB_FOUND})
else()
set(BREEZE_HAVE_X11 FALSE)
endif()
set(BREEZE_HAVE_QTQUICK FALSE)
set(BREEZE_HAVE_KWAYLAND FALSE)
### KStyle
set(BREEZE_HAVE_KSTYLE FALSE)
else()
find_package(Qt5 REQUIRED CONFIG COMPONENTS Widgets DBus)
find_package(KF5 REQUIRED COMPONENTS
find_package(Qt5 REQUIRED CONFIG COMPONENTS Widgets DBus)
find_package(KF5 REQUIRED COMPONENTS
I18n
Config
GuiAddons
ConfigWidgets
WindowSystem)
find_package(Qt5 COMPONENTS Quick)
set(BREEZE_HAVE_QTQUICK ${Qt5Quick_FOUND})
find_package(Qt5 COMPONENTS Quick)
set(BREEZE_HAVE_QTQUICK ${Qt5Quick_FOUND})
find_package( KF5FrameworkIntegration CONFIG )
set_package_properties(KF5FrameworkIntegration PROPERTIES
find_package( KF5FrameworkIntegration CONFIG )
set_package_properties(KF5FrameworkIntegration PROPERTIES
DESCRIPTION "KF5 Framework Integration"
URL "https://projects.kde.org/projects/frameworks/frameworkintegration"
TYPE OPTIONAL
PURPOSE "Required to use KStyle convenience functionalities in style")
set(BREEZE_HAVE_KSTYLE ${KF5FrameworkIntegration_FOUND})
set(BREEZE_HAVE_KSTYLE ${KF5FrameworkIntegration_FOUND})
find_package(XCB COMPONENTS XCB)
set_package_properties(XCB PROPERTIES
find_package(XCB COMPONENTS XCB)
set_package_properties(XCB PROPERTIES
DESCRIPTION "X protocol C-language Binding"
URL "https://xcb.freedesktop.org"
TYPE OPTIONAL
PURPOSE "Required to pass style properties to native Windows on X11 Platform"
)
find_package(KF5Wayland CONFIG)
set(BREEZE_HAVE_KWAYLAND ${KF5Wayland_FOUND})
)
if(UNIX AND NOT APPLE)
find_package(KF5Wayland CONFIG)
set(BREEZE_HAVE_KWAYLAND ${KF5Wayland_FOUND})
if(UNIX AND NOT APPLE)
set(BREEZE_HAVE_X11 ${XCB_XCB_FOUND})
if (XCB_XCB_FOUND)
find_package(Qt5 REQUIRED CONFIG COMPONENTS X11Extras)
endif()
else()
else()
set(BREEZE_HAVE_X11 FALSE)
endif()
endif()
################# includes #################
include_directories(
animations
......@@ -121,6 +81,7 @@ set(breeze_PART_SRCS
animations/breezewidgetstatedata.cpp
debug/breezewidgetexplorer.cpp
breezeaddeventfilter.cpp
breezeblurhelper.cpp
breezeframeshadow.cpp
breezehelper.cpp
breezemdiwindowshadow.cpp
......@@ -134,62 +95,37 @@ set(breeze_PART_SRCS
breezewindowmanager.cpp
)
if(NOT BREEZE_USE_KDE4)
set(breeze_PART_SRCS
${breeze_PART_SRCS}
breezeblurhelper.cpp
)
endif()
if(BREEZE_USE_KDE4)
kde4_add_kcfg_files(breeze_PART_SRCS breezestyleconfigdata.kcfgc)
kde4_add_plugin(breeze ${breeze_PART_SRCS} kstylekde4compat.cpp)
target_link_libraries(breeze ${KDE4_KDEUI_LIBS})
target_link_libraries(breeze breezecommon4)
if(BREEZE_HAVE_X11)
target_link_libraries(breeze ${X11_XCB_LIBRARIES})
target_link_libraries(breeze ${XCB_LIBRARIES})
endif()
install(TARGETS breeze DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles/)
else()
kconfig_add_kcfg_files(breeze_PART_SRCS breezestyleconfigdata.kcfgc)
add_library(breeze MODULE ${breeze_PART_SRCS})
target_link_libraries(breeze Qt5::Core Qt5::Gui Qt5::Widgets Qt5::DBus)
if( BREEZE_HAVE_QTQUICK )
kconfig_add_kcfg_files(breeze_PART_SRCS breezestyleconfigdata.kcfgc)
add_library(breeze MODULE ${breeze_PART_SRCS})
target_link_libraries(breeze Qt5::Core Qt5::Gui Qt5::Widgets Qt5::DBus)
if( BREEZE_HAVE_QTQUICK )
target_link_libraries(breeze Qt5::Quick)
endif()
target_link_libraries(breeze KF5::ConfigCore KF5::ConfigWidgets KF5::GuiAddons KF5::WindowSystem)
target_link_libraries(breeze breezecommon5)
endif()
target_link_libraries(breeze KF5::ConfigCore KF5::ConfigWidgets KF5::GuiAddons KF5::WindowSystem)
target_link_libraries(breeze breezecommon5)
if( KF5FrameworkIntegration_FOUND )
if(KF5FrameworkIntegration_FOUND)
target_link_libraries(breeze KF5::Style)
endif()
endif()
if (WIN32)
if (WIN32)
# As stated in https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants M_PI only gets defined
# when if _USE_MATH_DEFINES is defined
target_compile_definitions(breeze PRIVATE _USE_MATH_DEFINES _BSD_SOURCE)
endif()
endif()
if(BREEZE_HAVE_X11)
if(BREEZE_HAVE_X11)
target_link_libraries(breeze ${XCB_LIBRARIES})
target_link_libraries(breeze Qt5::X11Extras)
endif()
endif()
if(BREEZE_HAVE_KWAYLAND)
if(BREEZE_HAVE_KWAYLAND)
target_link_libraries(breeze KF5::WaylandClient)
endif()
install(TARGETS breeze DESTINATION ${QT_PLUGIN_INSTALL_DIR}/styles/)
endif()
########### install files ###############
install(TARGETS breeze DESTINATION ${QT_PLUGIN_INSTALL_DIR}/styles/)
install(FILES breeze.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes)
########### subdirectories ###############
......
......@@ -80,11 +80,7 @@ namespace Breeze
rect = rect.translated( widget->mapTo( widget->window(), widget->rect().topLeft() ) );
widget = widget->window();
#if QT_VERSION < 0x050000
out = QPixmap::grabWidget( widget, rect );
#else
out = widget->grab( rect );
#endif
} else {
......
......@@ -31,22 +31,12 @@ namespace Breeze
//*@name convenience typedef
//@{
#if QT_VERSION >= 0x050000
//* scoped pointer convenience typedef
template <typename T> using WeakPointer = QPointer<T>;
#else
//* scoped pointer convenience typedef
template <typename T> using WeakPointer = QWeakPointer<T>;
#endif
//* scoped pointer convenience typedef
template <typename T> using ScopedPointer = QScopedPointer<T, QScopedPointerPodDeleter>;
//* disable QStringLiteral for older Qt version
#if QT_VERSION < 0x050000
using QStringLiteral = QString;
#endif
//@}
//* metrics
......
......@@ -28,10 +28,6 @@
#include <QApplication>
#include <QPainter>
#if BREEZE_HAVE_X11 && QT_VERSION < 0x050000
#include <X11/Xlib-xcb.h>
#endif
#include <algorithm>
namespace Breeze
......@@ -45,14 +41,6 @@ namespace Breeze
_config( std::move( config ) )
{ init(); }
//____________________________________________________________________
#if BREEZE_USE_KDE4
Helper::Helper( const QByteArray& name ):
_componentData( name, nullptr, KComponentData::SkipMainComponentRegistration ),
_config( _componentData.config() )
{ init(); }
#endif
//____________________________________________________________________
KSharedConfig::Ptr Helper::config() const
{ return _config; }
......@@ -1480,12 +1468,8 @@ namespace Breeze
bool Helper::isX11()
{
#if BREEZE_HAVE_X11
#if QT_VERSION >= 0x050000
static const bool s_isX11 = KWindowSystem::isPlatformX11();
return s_isX11;
#else
return true;
#endif
#endif
return false;
......@@ -1495,12 +1479,8 @@ namespace Breeze
//______________________________________________________________________________
bool Helper::isWayland()
{
#if QT_VERSION >= 0x050000
static const bool s_isWayland = KWindowSystem::isPlatformWayland();
return s_isWayland;
#else
return false;
#endif
}
//______________________________________________________________________________
......@@ -1614,25 +1594,16 @@ namespace Breeze
//______________________________________________________________________________________
QPixmap Helper::highDpiPixmap( int width, int height ) const
{
#if QT_VERSION >= 0x050300
const qreal dpiRatio( qApp->devicePixelRatio() );
QPixmap pixmap( width*dpiRatio, height*dpiRatio );
pixmap.setDevicePixelRatio( dpiRatio );
return pixmap;
#else
return QPixmap( width, height );
#endif
}
//______________________________________________________________________________________
qreal Helper::devicePixelRatio( const QPixmap& pixmap ) const
{
#if QT_VERSION >= 0x050300
return pixmap.devicePixelRatio();
#else
Q_UNUSED(pixmap);
return 1;
#endif
}
#if BREEZE_HAVE_X11
......@@ -1641,17 +1612,7 @@ namespace Breeze
xcb_connection_t* Helper::connection()
{
#if QT_VERSION >= 0x050000
return QX11Info::connection();
#else
static xcb_connection_t* connection = nullptr;
if( !connection )
{
Display* display = QX11Info::display();
if( display ) connection = XGetXCBConnection( display );
}
return connection;
#endif
}
//____________________________________________________________________
......
......@@ -28,10 +28,6 @@
#include <KColorScheme>
#include <KSharedConfig>
#if BREEZE_USE_KDE4
#include <KComponentData>
#endif
#include <QPainterPath>
#include <QWidget>
......@@ -52,11 +48,6 @@ namespace Breeze
//* constructor
explicit Helper( KSharedConfig::Ptr );
#if BREEZE_USE_KDE4
//* constructor
explicit Helper( const QByteArray& );
#endif
//* destructor
virtual ~Helper()
{}
......@@ -337,11 +328,6 @@ namespace Breeze
private:
#if BREEZE_USE_KDE4
//* component data
KComponentData _componentData;
#endif
//* configuration
KSharedConfig::Ptr _config;
......
......@@ -70,11 +70,9 @@ namespace Breeze
{ setEnabled( false ); }
break;
#if QT_VERSION >= 0x050000
case QEvent::ApplicationStateChange:
{ setEnabled( false ); }
break;
#endif
default: break;
......
......@@ -284,12 +284,7 @@ namespace Breeze
const QSize boxSize = BoxShadowRenderer::calculateMinimumBoxSize(params.shadow1.radius)
.expandedTo(BoxShadowRenderer::calculateMinimumBoxSize(params.shadow2.radius));
#if QT_VERSION >= 0x050300
const qreal dpr = qApp->devicePixelRatio();
#else
const qreal dpr = 1.0;
#endif
const qreal frameRadius = _helper.frameRadius();
BoxShadowRenderer shadowRenderer;
......@@ -323,11 +318,7 @@ namespace Breeze
painter.setBrush(Qt::black);
painter.setCompositionMode(QPainter::CompositionMode_DestinationOut);
painter.drawRoundedRect(
#if BREEZE_USE_KDE4
outerRect.adjusted(margins.left(), margins.top(), -margins.right(), -margins.bottom()),
#else
outerRect - margins,
#endif
frameRadius,
frameRadius);
......@@ -595,14 +586,7 @@ namespace Breeze
int bottom = widget->contentsMargins().bottom();
// Need to decrement default size further due to extra hard coded round corner.
#if BREEZE_USE_KDE4
margins.setLeft(margins.left() - 1);
margins.setTop(margins.top() - 1);
margins.setRight(margins.right() - 1);
margins.setBottom(margins.bottom() - 1);
#else
margins -= 1;
#endif
// Arrow can be either to the top or the bottom. Adjust margins accordingly.
const int diff = qAbs(top - bottom);
......@@ -613,15 +597,7 @@ namespace Breeze
}
}
#if BREEZE_USE_KDE4
const qreal dpr = _helper.devicePixelRatio(_shadowTiles.pixmap(0));
margins.setLeft(margins.left() * dpr);
margins.setTop(margins.top() * dpr);
margins.setRight(margins.right() * dpr);
margins.setBottom(margins.bottom() * dpr);
#else
margins *= _helper.devicePixelRatio(_shadowTiles.pixmap(0));
#endif
return margins;
}
......
This diff is collapsed.
......@@ -28,13 +28,10 @@
#include <KStyle>
#endif
#if BREEZE_USE_KDE4
#include "kstylekde4compat.h"
#endif
#include <QAbstractItemView>
#include <QAbstractScrollArea>
#include <QCommandLinkButton>
#include <QCommonStyle>
#include <QDockWidget>
#include <QHash>
......@@ -43,10 +40,6 @@
#include <QStyleOption>
#include <QWidget>
#if QT_VERSION >= 0x050000
#include <QCommandLinkButton>
#endif
#include <functional>
namespace BreezePrivate
......@@ -66,14 +59,10 @@ namespace Breeze
class SplitterFactory;
class WidgetExplorer;
class WindowManager;
#if !BREEZE_USE_KDE4
class BlurHelper;
#endif
//* convenience typedef for base class
#if BREEZE_USE_KDE4
using ParentStyleClass = KStyleKDE4Compat;
#elif !BREEZE_HAVE_KSTYLE
#if !BREEZE_HAVE_KSTYLE
using ParentStyleClass = QCommonStyle;
#else
using ParentStyleClass = KStyle;
......@@ -149,10 +138,7 @@ namespace Breeze
bool eventFilterComboBoxContainer( QWidget*, QEvent* );
bool eventFilterDockWidget( QDockWidget*, QEvent* );
bool eventFilterMdiSubWindow( QMdiSubWindow*, QEvent* );
#if QT_VERSION >= 0x050000
bool eventFilterCommandLinkButton( QCommandLinkButton*, QEvent* );
#endif
//* install event filter to object, in a unique way
void addEventFilter( QObject* object )
......@@ -174,13 +160,8 @@ namespace Breeze
protected:
//* standard icons
#if BREEZE_USE_KDE4
QIcon standardIcon( StandardPixmap pixmap, const QStyleOption* option = nullptr, const QWidget* widget = nullptr) const
{ return standardIconImplementation( pixmap, option, widget ); }
#else
QIcon standardIcon( StandardPixmap pixmap, const QStyleOption* option = nullptr, const QWidget* widget = nullptr) const override
{ return standardIconImplementation( pixmap, option, widget ); }
#endif
private:
......@@ -501,10 +482,8 @@ namespace Breeze
//* keyboard accelerators
Mnemonics* _mnemonics = nullptr;
#if !BREEZE_USE_KDE4
//* blur helper
BlurHelper* _blurHelper = nullptr;
#endif
//* window manager
WindowManager* _windowManager = nullptr;
......
......@@ -23,10 +23,6 @@
#include <QApplication>
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2( breeze-qt, Breeze::StylePlugin )
#endif
namespace Breeze
{
......
......@@ -30,9 +30,7 @@ namespace Breeze
Q_OBJECT
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "breeze.json" )
#endif
public:
......
......@@ -31,23 +31,13 @@ namespace Breeze
//______________________________________________________________________________________
inline qreal devicePixelRatio( const QPixmap& pixmap )
{
#if QT_VERSION >= 0x050300
return pixmap.devicePixelRatio();
#else
Q_UNUSED( pixmap );
return 1;
#endif
}
//______________________________________________________________________________________
inline void setDevicePixelRatio( QPixmap& pixmap, qreal value )
{
#if QT_VERSION >= 0x050300
return pixmap.setDevicePixelRatio( value );
#else
Q_UNUSED( pixmap );
Q_UNUSED( value );
#endif
}
//______________________________________________________________
......
......@@ -75,10 +75,8 @@
#include <QTextStream>
#if QT_VERSION >= 0x050300
// needed to deal with device pixel ratio
#include <QWindow>
#endif
#if BREEZE_HAVE_QTQUICK
// needed to enable dragging from QQuickWindows
......@@ -90,11 +88,7 @@
#include <QX11Info>
#include <xcb/xcb.h>
#if BREEZE_USE_KDE4
#include <NETRootInfo>
#else
#include <NETWM>
#endif
#endif
......@@ -111,14 +105,7 @@ namespace Util
template<class T>
inline T makeT( std::initializer_list<typename T::key_type>&& reference )
{
#if QT_VERSION >= 0x050100
return T( std::move( reference ) );
#else
// for old QT versions there is no container constructor from initializer_list
T out;
for( auto&& value:std::move(reference) ) { out.insert( value ); }
return out;
#endif
}
}
......@@ -179,12 +166,7 @@ namespace Breeze
bool appMouseEvent( QObject*, QEvent* event )
{
#if BREEZE_USE_KDE4
// store target window (see later)
QWidget* window( _parent->_target.data()->window() );
#else
Q_UNUSED( event );