Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 24 |
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 | |||
@@ -28,34 +28,18 @@ | |||
28 | 28 | ||
29 | #include "settings.h" | 29 | #include "settings.h" |
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> |
36 | #include <qpe/power.h> | 33 | #include <qpe/power.h> |
37 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 34 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
38 | #include <qpe/qcopenvelope_qws.h> | 35 | #include <qpe/qcopenvelope_qws.h> |
39 | #endif | 36 | #endif |
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 | ||
60 | #include <opie/odevice.h> | 44 | #include <opie/odevice.h> |
61 | 45 | ||
@@ -124,10 +108,14 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
124 | lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); | 108 | lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); |
125 | criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); | 109 | criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); |
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 | } |
132 | 120 | ||
133 | LightSettings::~LightSettings ( ) | 121 | LightSettings::~LightSettings ( ) |