Squashed commit of the following:
authorRisto Lintinen <lintiri@lintiri-desktop.(none)>
Thu, 20 Aug 2009 06:34:56 +0000 (09:34 +0300)
committerRisto Lintinen <lintiri@lintiri-desktop.(none)>
Thu, 20 Aug 2009 06:34:56 +0000 (09:34 +0300)
commit 00c18cb215544822964279b5640fcd7fda2a1361
Author: Risto Lintinen <lintiri@lintiri-desktop.(none)>
Date:   Thu Aug 20 09:30:40 2009 +0300

    traffic lights fixed

src/UserInterface/Views/RoomStatusIndicatorWidget.cpp
src/UserInterface/Views/SettingsView.cpp
src/UserInterface/Views/WeeklyViewWidget.cpp

index 0295a40..ebe2a90 100644 (file)
@@ -33,7 +33,6 @@ RoomStatusIndicatorWidget::RoomStatusIndicatorWidget(Room *aDefaultRoom, Room::S
        iDefaultRoomLabel
                        = ToolBox::createLabel(aDefaultRoom->name(), importantTextFont);
        iDefaultRoomLabel->setAlignment(Qt::AlignHCenter);
-       iDefaultRoomLabel->setStyleSheet("background-color: transparent");
        iDefaultRoomLabel->setHidden( true);
 
        // is busy
@@ -82,6 +81,12 @@ RoomStatusIndicatorWidget::RoomStatusIndicatorWidget(Room *aDefaultRoom, Room::S
 
        statusChanged(aStatus, aUntil);
 
+       QPalette palette;
+       palette.setColor( QPalette::Window, Qt::white );
+       palette.setColor( QPalette::WindowText, Qt::darkGray );
+       setPalette( palette );
+
+       setAutoFillBackground( true );
        setFocusPolicy(Qt::StrongFocus);
        setEnabled( true); // enable mouse & key events
 }
@@ -124,7 +129,9 @@ QPalette RoomStatusIndicatorWidget::createPalette(Room::Status aStatus)
        }
 
        QPalette palette;
-       palette.setBrush(QPalette::Window, brush);
+       palette.setColor( QPalette::Window, Qt::white );
+       palette.setColor( QPalette::WindowText, Qt::darkGray );
+       palette.setBrush( QPalette::Window, brush );
        return palette;
 }
 
index 5471b0c..30ab301 100644 (file)
@@ -57,6 +57,8 @@ SettingsView::SettingsView( QWidget *aParent ) :
        setLayout( mainLayout );
        setValues();
 
+       setAutoFillBackground( true );
+
        // Handle component connections
        connect( iOkButton, SIGNAL( clicked() ), this, SLOT( handleOkClicked() ) );
        connect( iCancelButton, SIGNAL( clicked() ), this, SLOT( handleCancelClicked() ) );
index 673d91e..643732e 100644 (file)
@@ -102,9 +102,11 @@ WeeklyViewWidget::WeeklyViewWidget( QDateTime aCurrentDateTime, Configuration *a
 \r
        QPalette palette;\r
        palette.setColor( QPalette::Window, Qt::white );\r
-       palette.setColor( QPalette::Foreground, Qt::darkGray );\r
+       palette.setColor( QPalette::WindowText, Qt::darkGray );\r
        setPalette( palette );\r
 \r
+       setAutoFillBackground( true );\r
+\r
        // ******************************************\r
        //              Handle all the signal connections\r
        // TODO : this solution if interaction monitoring is not elegant enough\r