Merge branch 'master' of https://git.maemo.org/projects/qtmeetings
authorZoltan Papp <zoltan.papp@ixonos.com>
Mon, 1 Jun 2009 07:12:18 +0000 (10:12 +0300)
committerZoltan Papp <zoltan.papp@ixonos.com>
Mon, 1 Jun 2009 07:12:18 +0000 (10:12 +0300)
src/BusinessLogic/Engine.cpp
src/BusinessLogic/UIManager.cpp
src/UserInterface/Views/RoomStatusIndicatorWidget.cpp

index da479c2..aac84d4 100644 (file)
@@ -109,7 +109,7 @@ void Engine::checkStatusOfAllRooms()
        for (int i = 0; i < iConfiguration->rooms().count(); i++)
        {
                // and check the status
-               roomStatusInfoNeeded(iConfiguration->rooms().at(i) );
+               roomStatusInfoNeeded( iConfiguration->rooms().at(i) );
        }
 }
 
@@ -369,4 +369,4 @@ void Engine::currentRoomChanged(Room *aRoom)
        qDebug() << "[Engine::currentRoomChanged] <invoked>";
        iCurrentRoom = aRoom;
        roomStatusInfoNeeded( iCurrentRoom );
-}
\ No newline at end of file
+}
index da6b93b..0b94628 100644 (file)
@@ -90,7 +90,7 @@ void UIManager::createSettingsView()
 void UIManager::createRoomStatusIndicator()
 {
        iRoomStatusIndicator = new RoomStatusIndicatorWidget( iEngine->defaultRoom(), Room::FreeStatus, QTime::currentTime(), iEngine->iConfiguration->displaySettings()->timeFormat() );
-       connect( iEngine, SIGNAL( roomStatusChanged( Room::Status, QTime ) ), this, SLOT( statusChanged( Room::Status, QTime ) ) );
+       connect( iEngine, SIGNAL( roomStatusChanged( Room::Status, QTime ) ), iRoomStatusIndicator, SLOT( statusChanged( Room::Status, QTime ) ) );
        connect( iWeeklyView, SIGNAL( currentRoomChanged( Room * ) ), iRoomStatusIndicator, SLOT( currentRoomChanged( Room * ) ) );
 }
 
index 89f65f1..1cf48a7 100644 (file)
@@ -96,28 +96,26 @@ QString RoomStatusIndicatorWidget::statusToText( const Room::Status aStatus )
 \r
 QPalette RoomStatusIndicatorWidget::createPalette( Room::Status aStatus )\r
 {\r
-       // QPixmap pixmap( aStatus == Room::BusyStatus ? ":roomstatus_busy" : ":roomstatus_free" );\r
        QString image = aStatus == Room::BusyStatus ? ":roomstatus_busy" : ":roomstatus_free";\r
+       QPixmap pixmap( image );\r
 \r
        // The image needs to be moved in normal mode so the traffic light not partly outside the screen\r
        const int xoffset( 60 );\r
        const int yoffset( 19 );\r
-//     int cropwidth( pixmap.width() - xoffset );\r
-//     int cropheight( pixmap.height() - yoffset );\r
+       int cropwidth( pixmap.width() - xoffset );\r
+       int cropheight( pixmap.height() - yoffset );\r
        \r
        QBrush brush;\r
        if ( windowState() == Qt::WindowFullScreen )\r
        {\r
                // Use the full image in full screen mode\r
-//             brush.setTexture( pixmap );\r
-               brush.setTexture( QPixmap(image) );\r
+               brush.setTexture( pixmap );\r
        }\r
        else\r
        {\r
                // Take part of the image so the traffic lights are moved xoffset poxels to left \r
                // and yoffset pixels to up\r
-//             brush.setTexture( pixmap.copy( xoffset, yoffset, cropwidth, cropheight ) );\r
-               brush.setTexture( QPixmap(image) );\r
+               brush.setTexture( pixmap.copy( xoffset, yoffset, cropwidth, cropheight ) );\r
        }\r
 \r
        QPalette palette;\r
@@ -132,7 +130,6 @@ void RoomStatusIndicatorWidget::setCurrentTime( QTime aCurrentTime )
 \r
 void RoomStatusIndicatorWidget::statusChanged( const Room::Status aStatus, const QTime aUntil )\r
 {\r
-       qDebug() << "[RoomStatusIndicatorWidget::statusChanged] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>";\r
        iStatusLabel->setText( tr( "is %1" ).arg( statusToText( aStatus ) ) );\r
        if ( aUntil == RoomStatusIndicatorWidget::endOfTheDay )\r
        {\r