author | harlekin <harlekin> | 2002-09-21 21:15:59 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-21 21:15:59 (UTC) |
commit | 2e6dd40a0ba17ccf5503fa02bec810b0eeb82f8c (patch) (side-by-side diff) | |
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 @@ -204,52 +204,52 @@ void Today::loadPlugins() { } } } } /** * Repaint method. Reread all fields. */ void Today::draw() { if ( pluginList.count() == 0 ) { QLabel *noPlugins = new QLabel( this ); noPlugins->setText( tr( "No plugins found" ) ); layout->addWidget( noPlugins ); return; } uint count = 0; TodayPlugin plugin; for ( uint i = 0; i < pluginList.count(); i++ ) { plugin = pluginList[i]; if ( plugin.active ) { - qDebug( plugin.name + " is ACTIVE " ); + // qDebug( plugin.name + " is ACTIVE " ); plugin.guiBox->show(); } else { - qDebug( plugin.name + " is INACTIVE" ); + // qDebug( plugin.name + " is INACTIVE" ); plugin.guiBox->hide(); } count++; } if ( count == 0 ) { QLabel *noPluginsActive = new QLabel( this ); noPluginsActive->setText( tr( "No plugins activated" ) ); layout->addWidget( noPluginsActive ); } layout->addStretch(0); } /** * The method for the configuration dialog. */ void Today::startConfig() { TodayConfig conf( this, "dialog", true ); TodayPlugin plugin; QList<ConfigWidget> configWidgetList; 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 @@ -13,50 +13,48 @@ * (at your option) any later version. * * * ***************************************************************************/ #include "todaybase.h" #include <qframe.h> #include <qlabel.h> #include <qimage.h> #include <qpixmap.h> #include <qapplication.h> #include <qpe/resource.h> TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla QPixmap config = Resource::loadPixmap( "today/config" ); // config icon layout = new QVBoxLayout( this ); - QVBoxLayout *mainLayout = new QVBoxLayout( this ); - QPalette pal = this->palette(); QColor col = pal.color( QPalette::Active, QColorGroup::Background ); pal.setColor( QPalette::Active, QColorGroup::Button, col ); pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); pal.setColor( QPalette::Normal, QColorGroup::Button, col ); pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); this->setPalette( pal ); // --- logo Section --- QPalette pal2; QColorGroup cg; cg.setColor( QColorGroup::Text, white ); cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); pal2.setActive( cg ); // today logo Frame = new QLabel( this, "Frame" ); Frame->setPalette( pal2 ); Frame->setFrameShape( QFrame::StyledPanel ); Frame->setFrameShadow( QFrame::Raised ); Frame->setLineWidth( 0 ); Frame->setMaximumHeight( 50 ); Frame->setMinimumHeight( 50 ); // Today text |