diff --git a/tabbox/tabbox.cpp b/tabbox/tabbox.cpp index a56e475237..7b659ffc4b 100644 --- a/tabbox/tabbox.cpp +++ b/tabbox/tabbox.cpp @@ -67,7 +67,7 @@ namespace TabBox { TabBoxHandlerImpl::TabBoxHandlerImpl(TabBox* tabBox) - : TabBoxHandler() + : TabBoxHandler(tabBox) , m_tabBox(tabBox) , m_desktopFocusChain(new DesktopChainManager(this)) { diff --git a/tabbox/tabboxhandler.cpp b/tabbox/tabboxhandler.cpp index 614c4ad1a2..7c949af451 100644 --- a/tabbox/tabboxhandler.cpp +++ b/tabbox/tabboxhandler.cpp @@ -334,8 +334,8 @@ void TabBoxHandlerPrivate::show() * TabBoxHandler ***********************************************/ -TabBoxHandler::TabBoxHandler() - : QObject() +TabBoxHandler::TabBoxHandler(QObject *parent) + : QObject(parent) { KWin::TabBox::tabBox = this; d = new TabBoxHandlerPrivate(this); diff --git a/tabbox/tabboxhandler.h b/tabbox/tabboxhandler.h index 7358c48119..7cf2eadee1 100644 --- a/tabbox/tabboxhandler.h +++ b/tabbox/tabboxhandler.h @@ -95,7 +95,7 @@ class TabBoxHandler : public QObject { Q_OBJECT public: - TabBoxHandler(); + TabBoxHandler(QObject *parent); virtual ~TabBoxHandler(); /**