[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/ksysguard/gui
From: Tobias Koenig <tokoe () kde ! org>
Date: 2004-08-07 16:22:23
Message-ID: 20040807162223.6C2999A7D () office ! kde ! org
[Download RAW message or body]
CVS commit by tokoe:
Save the display settings as soon as they've changed.
CCMAIL:71184-done@bugs.kde.org
M +12 -0 KSysGuardApplet.cc 1.51
M +1 -0 KSysGuardApplet.h 1.16
--- kdebase/ksysguard/gui/KSysGuardApplet.h #1.15:1.16
@@ -62,4 +62,5 @@ class KSysGuardApplet : public KPanelApp
private slots:
void applySettings();
+ void sensorDisplayModified( bool );
private:
--- kdebase/ksysguard/gui/KSysGuardApplet.cc #1.50:1.51
@@ -140,4 +140,10 @@ void KSysGuardApplet::applySettings()
}
+void KSysGuardApplet::sensorDisplayModified( bool modified )
+{
+ if ( modified )
+ save();
+}
+
void KSysGuardApplet::layout()
{
@@ -218,4 +224,7 @@ void KSysGuardApplet::dropEvent( QDropEv
layout();
+ connect( wdg, SIGNAL( modified( bool ) ),
+ SLOT( sensorDisplayModified( bool ) ) );
+
mDockList[ dock ]->show();
}
@@ -388,4 +397,7 @@ bool KSysGuardApplet::load()
delete mDockList[ dock ];
mDockList[ dock ] = newDisplay;
+
+ connect( newDisplay, SIGNAL( modified( bool ) ),
+ SLOT( sensorDisplayModified( bool ) ) );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic