From e9b984e3f844bc96fde79b7674956e6ce3116f66 Mon Sep 17 00:00:00 2001 From: Karol Szwed Date: Sat, 16 Mar 2002 09:26:49 +0000 Subject: [PATCH] - Make KApp's "appearanceChanged()" signal properly reconfigure the window decoration's colors by calling the reset() cdecl. - Change the options::reload() slot into a public method, as the slot is no longer required. Reviewed by Matthias Elter svn path=/trunk/kdebase/kwin/; revision=143232 --- options.cpp | 2 -- options.h | 9 ++------- workspace.cpp | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/options.cpp b/options.cpp index 12a4eafdad..c7386ff844 100644 --- a/options.cpp +++ b/options.cpp @@ -45,8 +45,6 @@ Options::Options() for(i=0; i < KWINCOLORS*2; ++i) cg[i] = NULL; reload(); - - connect( kapp, SIGNAL( appearanceChanged() ), this, SLOT(reload() ) ); } Options::~Options(){ diff --git a/options.h b/options.h index 80ef6abe03..a824fc04d5 100644 --- a/options.h +++ b/options.h @@ -320,6 +320,8 @@ public: */ int electricBorderDelay(); + void reload(); + signals: /** * Emitted when KWin is asked to reconfigure itself. @@ -330,17 +332,10 @@ signals: */ void resetClients(); -public slots: - void reload(); - - protected: QFont activeFont, inactiveFont, activeFontSmall, inactiveFontSmall; private: - - - WindowOperation OpTitlebarDblClick; // mouse bindings diff --git a/workspace.cpp b/workspace.cpp index 3951aa807f..dfe1219470 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -417,7 +417,7 @@ void Workspace::init() connect(mgr, SIGNAL(resetAllClients()), this, SLOT(slotResetAllClients())); connect(kapp, SIGNAL(appearanceChanged()), this, - SLOT(slotResetAllClientsDelayed())); + SLOT(slotReconfigure())); connect(kapp, SIGNAL(settingsChanged(int)), this, SLOT(slotSettingsChanged(int)));