Make reconfigure() a Q_SLOT
make reconfigure() a Q_SLOT and connect to the signal configChanged() of class Workspace. REVIEW: 101942
This commit is contained in:
parent
c1c883a8a7
commit
5d2f8356f4
3 changed files with 4 additions and 5 deletions
|
@ -313,6 +313,7 @@ TabBox::TabBox(QObject *parent)
|
|||
|
||||
m_tabBoxMode = TabBoxDesktopMode; // init variables
|
||||
connect(&m_delayedShowTimer, SIGNAL(timeout()), this, SLOT(show()));
|
||||
connect(Workspace::self(), SIGNAL(configChanged()), this, SLOT(reconfigure()));
|
||||
}
|
||||
|
||||
TabBox::~TabBox()
|
||||
|
|
|
@ -146,8 +146,6 @@ public:
|
|||
void handleMouseEvent(XEvent*);
|
||||
void grabbedKeyEvent(QKeyEvent* event);
|
||||
|
||||
void reconfigure();
|
||||
|
||||
bool isGrabbed() const {
|
||||
return m_tabGrab || m_desktopGrab;
|
||||
};
|
||||
|
@ -216,6 +214,9 @@ private:
|
|||
void removeTabBoxGrab();
|
||||
void modalActionsSwitch(bool enabled);
|
||||
|
||||
private Q_SLOTS:
|
||||
void reconfigure();
|
||||
|
||||
private:
|
||||
TabBoxMode m_tabBoxMode;
|
||||
QModelIndex m_index;
|
||||
|
|
|
@ -930,9 +930,6 @@ void Workspace::slotReconfigure()
|
|||
KGlobal::config()->reparseConfiguration();
|
||||
unsigned long changed = options->updateSettings();
|
||||
|
||||
#ifdef KWIN_BUILD_TABBOX
|
||||
tab_box->reconfigure();
|
||||
#endif
|
||||
emit configChanged();
|
||||
initPositioning->reinitCascading(0);
|
||||
discardPopup();
|
||||
|
|
Loading…
Reference in a new issue