About Application dialog is opened when "info" icon is clicked
authorpavelpa <pavelpa@localhost>
Tue, 26 Jan 2010 08:18:45 +0000 (08:18 +0000)
committerpavelpa <pavelpa@localhost>
Tue, 26 Jan 2010 08:18:45 +0000 (08:18 +0000)
src/gui/mainwindow.cpp
src/icons.qrc
src/icons/info.png [new file with mode: 0644]

index a1e995c..4e35e93 100644 (file)
@@ -139,6 +139,7 @@ MainWindow::MainWindow(int aEventId, QWidget *aParent)
     connect(showMapButton, SIGNAL(clicked()), SLOT(conferenceMapClicked()));
     //
     connect(tabWidget, SIGNAL(currentChanged(int)), SLOT(tabHasChanged(int)));
+    connect(tabWidget, SIGNAL(infoIconClicked()), SLOT(aboutApp()));
 
     if(!Conference::getAll().count()) // no conference(s) in the DB
     {
@@ -379,6 +380,6 @@ void MainWindow::tabHasChanged(int aIndex)
     // TODO: only if it changed to favourities tab
     updateFavouritesView(favouriteDayNavigator->getCurrentDate());
     // TODO: only if it changed to now tab
-    //updateNowView();
+    updateNowView();
 }
 
index 110cf5d..434d3a3 100644 (file)
@@ -10,5 +10,6 @@
         <file>icons/favourite-onBig.png</file>
         <file>icons/exclamation-iconOn.png</file>
         <file>icons/exclamation-iconOff.png</file>
+        <file>icons/info.png</file>
     </qresource>
 </RCC>
diff --git a/src/icons/info.png b/src/icons/info.png
new file mode 100644 (file)
index 0000000..78c891d
Binary files /dev/null and b/src/icons/info.png differ