X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fui%2Fmainwindow.cpp;h=570dc67131407ec55b6edf1a78853ded8b7dea36;hb=5d2febf6aa8eb2302ba5ea33c208d0b26017404d;hp=327c643514e1117b541149f12de0c4b433c735b5;hpb=737754780392f5b6b992f613fd088b41c0af5b99;p=situare diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 327c643..570dc67 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -145,10 +145,17 @@ void MainWindow::automaticUpdateDialogFinished(int result) void MainWindow::buildFullScreenButton() { qDebug() << __PRETTY_FUNCTION__; + #ifdef Q_WS_MAEMO_5 m_fullScreenButton = new FullScreenButton(this); - connect(m_fullScreenButton, SIGNAL(clicked()), - this, SLOT(toggleFullScreen())); + + if (m_fullScreenButton) { + connect(m_fullScreenButton, SIGNAL(clicked()), + this, SLOT(toggleFullScreen())); + + connect(qApp, SIGNAL(showFullScreenButton()), + m_fullScreenButton, SLOT(invoke())); + } #endif // Q_WS_MAEMO_5 } @@ -314,7 +321,7 @@ void MainWindow::buildPanels() m_tabbedPanel->addTab(m_friendsListPanel, QIcon(":/res/images/friend_list.png")); m_tabbedPanel->addTab(m_routingPanel, QIcon(":/res/images/routing.png")); - connect(m_tabbedPanel, SIGNAL(panelOpened()), + connect(m_tabbedPanel, SIGNAL(tabChanged()), m_friendsListPanel, SLOT(clearFriendListFilter())); connect(m_mapView, SIGNAL(viewResized(QSize)),