author | harlekin <harlekin> | 2002-09-21 21:15:59 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-21 21:15:59 (UTC) |
commit | 2e6dd40a0ba17ccf5503fa02bec810b0eeb82f8c (patch) (unidiff) | |
tree | 5f302398099f158e8df188420e817017b1acb160 | |
parent | 023b34ea1584474a0ba625be4b099cb9a2de376c (diff) | |
download | opie-2e6dd40a0ba17ccf5503fa02bec810b0eeb82f8c.zip opie-2e6dd40a0ba17ccf5503fa02bec810b0eeb82f8c.tar.gz opie-2e6dd40a0ba17ccf5503fa02bec810b0eeb82f8c.tar.bz2 |
code cleanups
-rw-r--r-- | core/pim/today/today.cpp | 4 | ||||
-rw-r--r-- | core/pim/today/todaybase.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 901a61a..7673df5 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -216,28 +216,28 @@ void Today::draw() { | |||
216 | QLabel *noPlugins = new QLabel( this ); | 216 | QLabel *noPlugins = new QLabel( this ); |
217 | noPlugins->setText( tr( "No plugins found" ) ); | 217 | noPlugins->setText( tr( "No plugins found" ) ); |
218 | layout->addWidget( noPlugins ); | 218 | layout->addWidget( noPlugins ); |
219 | return; | 219 | return; |
220 | } | 220 | } |
221 | 221 | ||
222 | uint count = 0; | 222 | uint count = 0; |
223 | TodayPlugin plugin; | 223 | TodayPlugin plugin; |
224 | for ( uint i = 0; i < pluginList.count(); i++ ) { | 224 | for ( uint i = 0; i < pluginList.count(); i++ ) { |
225 | plugin = pluginList[i]; | 225 | plugin = pluginList[i]; |
226 | 226 | ||
227 | if ( plugin.active ) { | 227 | if ( plugin.active ) { |
228 | qDebug( plugin.name + " is ACTIVE " ); | 228 | // qDebug( plugin.name + " is ACTIVE " ); |
229 | plugin.guiBox->show(); | 229 | plugin.guiBox->show(); |
230 | } else { | 230 | } else { |
231 | qDebug( plugin.name + " is INACTIVE" ); | 231 | // qDebug( plugin.name + " is INACTIVE" ); |
232 | plugin.guiBox->hide(); | 232 | plugin.guiBox->hide(); |
233 | } | 233 | } |
234 | count++; | 234 | count++; |
235 | } | 235 | } |
236 | 236 | ||
237 | if ( count == 0 ) { | 237 | if ( count == 0 ) { |
238 | QLabel *noPluginsActive = new QLabel( this ); | 238 | QLabel *noPluginsActive = new QLabel( this ); |
239 | noPluginsActive->setText( tr( "No plugins activated" ) ); | 239 | noPluginsActive->setText( tr( "No plugins activated" ) ); |
240 | layout->addWidget( noPluginsActive ); | 240 | layout->addWidget( noPluginsActive ); |
241 | } | 241 | } |
242 | layout->addStretch(0); | 242 | layout->addStretch(0); |
243 | } | 243 | } |
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 800ca5d..1424b95 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -25,26 +25,24 @@ | |||
25 | #include <qpe/resource.h> | 25 | #include <qpe/resource.h> |
26 | 26 | ||
27 | 27 | ||
28 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | 28 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) |
29 | : QWidget( parent, name, fl ) { | 29 | : QWidget( parent, name, fl ) { |
30 | 30 | ||
31 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo | 31 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo |
32 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla | 32 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla |
33 | QPixmap config = Resource::loadPixmap( "today/config" ); // config icon | 33 | QPixmap config = Resource::loadPixmap( "today/config" ); // config icon |
34 | 34 | ||
35 | layout = new QVBoxLayout( this ); | 35 | layout = new QVBoxLayout( this ); |
36 | 36 | ||
37 | QVBoxLayout *mainLayout = new QVBoxLayout( this ); | ||
38 | |||
39 | QPalette pal = this->palette(); | 37 | QPalette pal = this->palette(); |
40 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); | 38 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); |
41 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); | 39 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); |
42 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); | 40 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); |
43 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); | 41 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); |
44 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); | 42 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); |
45 | this->setPalette( pal ); | 43 | this->setPalette( pal ); |
46 | 44 | ||
47 | // --- logo Section --- | 45 | // --- logo Section --- |
48 | QPalette pal2; | 46 | QPalette pal2; |
49 | QColorGroup cg; | 47 | QColorGroup cg; |
50 | cg.setColor( QColorGroup::Text, white ); | 48 | cg.setColor( QColorGroup::Text, white ); |