Diffstat (limited to 'noncore/graphics/opie-eye/gui/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index 4852bf6..9b929a1 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp | |||
@@ -281,2 +281,3 @@ void PMainWindow::initDisp() { | |||
281 | m_disp->setShowZoomer(zoomerOn); | 281 | m_disp->setShowZoomer(zoomerOn); |
282 | m_disp->setBackgroundColor(white); | ||
282 | connect(m_disp,SIGNAL(dispImageInfo(const QString&)),this,SLOT(slotShowInfo(const QString&))); | 283 | connect(m_disp,SIGNAL(dispImageInfo(const QString&)),this,SLOT(slotShowInfo(const QString&))); |
@@ -284,2 +285,27 @@ void PMainWindow::initDisp() { | |||
284 | connect(m_disp,SIGNAL(dispPrev()),m_view,SLOT(slotShowPrev())); | 285 | connect(m_disp,SIGNAL(dispPrev()),m_view,SLOT(slotShowPrev())); |
286 | connect(m_disp,SIGNAL(toggleFullScreen()),this,SLOT(slotToggleFullScreen())); | ||
287 | } | ||
288 | } | ||
289 | |||
290 | void PMainWindow::slotToggleFullScreen() | ||
291 | { | ||
292 | odebug << "Toggle full " << oendl; | ||
293 | if (!m_disp) return; | ||
294 | bool current = !m_disp->fullScreen(); | ||
295 | m_disp->setFullScreen(current); | ||
296 | odebug << "Current = " << current << oendl; | ||
297 | if (current) { | ||
298 | odebug << "full" << oendl; | ||
299 | m_disp->setBackgroundColor(black); | ||
300 | m_disp->reparent(0,QPoint(0,0)); | ||
301 | m_disp->resize(qApp->desktop()->width(), qApp->desktop()->height()); | ||
302 | m_disp->showFullScreen(); | ||
303 | } else { | ||
304 | odebug << "window" << oendl; | ||
305 | m_disp->setBackgroundColor(white); | ||
306 | m_stack->addWidget(m_disp,ImageDisplay); | ||
307 | m_stack->raiseWidget(m_disp); | ||
308 | if (m_stack->mode() != Opie::Ui::OWidgetStack::SmallScreen) { | ||
309 | m_disp->resize(m_disp->minimumSize()); | ||
310 | } | ||
285 | } | 311 | } |