summaryrefslogtreecommitdiff
path: root/core/settings/light-and-power/light.cpp
Unidiff
Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp24
1 files changed, 6 insertions, 18 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index 2ea0356..c0ba60b 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -30,6 +30,3 @@
30 30
31#include <qpe/global.h>
32#include <qpe/fontmanager.h>
33#include <qpe/config.h> 31#include <qpe/config.h>
34#include <qpe/applnk.h>
35#include <qpe/qpeapplication.h> 32#include <qpe/qpeapplication.h>
@@ -40,20 +37,7 @@
40 37
41#include <qlabel.h>
42#include <qcheckbox.h> 38#include <qcheckbox.h>
43#include <qradiobutton.h>
44#include <qtabwidget.h> 39#include <qtabwidget.h>
45#include <qslider.h> 40#include <qslider.h>
46#include <qfile.h>
47#include <qtextstream.h>
48#include <qdatastream.h>
49#include <qmessagebox.h>
50#include <qcombobox.h>
51#include <qgroupbox.h>
52#include <qspinbox.h> 41#include <qspinbox.h>
53#include <qpushbutton.h> 42#include <qpushbutton.h>
54#include <qlistbox.h>
55#include <qdir.h>
56#if QT_VERSION >= 300
57#include <qstylefactory.h>
58#endif
59 43
@@ -126,6 +110,10 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
126 110
127 if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) 111 if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) {
128 connect ( brightness, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); 112 connect ( brightness, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int )));
129 else 113 tabs-> setCurrentPage ( 0 );
114 }
115 else {
130 connect ( brightness_ac_3, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); 116 connect ( brightness_ac_3, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int )));
117 tabs-> setCurrentPage ( 1 );
118 }
131} 119}