summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/gui/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/graphics/opie-eye/gui/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp
index ec6b051..fa1680c 100644
--- a/noncore/graphics/opie-eye/gui/mainwindow.cpp
+++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp
@@ -322,25 +322,25 @@ void PMainWindow::initDisp() {
322 322
323void PMainWindow::slotToggleFullScreen() 323void PMainWindow::slotToggleFullScreen()
324{ 324{
325 odebug << "Toggle full " << oendl; 325 odebug << "Toggle full " << oendl;
326 if (!m_disp) return; 326 if (!m_disp) return;
327 bool current = !m_disp->fullScreen(); 327 bool current = !m_disp->fullScreen();
328 m_disp->setFullScreen(current); 328 m_disp->setFullScreen(current);
329 odebug << "Current = " << current << oendl; 329 odebug << "Current = " << current << oendl;
330 if (current) { 330 if (current) {
331 odebug << "full" << oendl; 331 odebug << "full" << oendl;
332 m_disp->setBackgroundColor(black); 332 m_disp->setBackgroundColor(black);
333 if (!tFrame) { 333 if (!tFrame) {
334 tFrame = new QWidget(0,0,WStyle_Customize|WStyle_NoBorder); 334 tFrame = new ImageWidget(0,0,WStyle_Customize|WStyle_NoBorder);
335 tFrame->resize(qApp->desktop()->width(), qApp->desktop()->height()); 335 tFrame->resize(qApp->desktop()->width(), qApp->desktop()->height());
336 tFrame->setMinimumSize(qApp->desktop()->width(), qApp->desktop()->height()); 336 tFrame->setMinimumSize(qApp->desktop()->width(), qApp->desktop()->height());
337 } 337 }
338 m_disp->reparent(tFrame,QPoint(0,0)); 338 m_disp->reparent(tFrame,QPoint(0,0));
339 m_disp->setVScrollBarMode(QScrollView::AlwaysOff); 339 m_disp->setVScrollBarMode(QScrollView::AlwaysOff);
340 m_disp->setHScrollBarMode(QScrollView::AlwaysOff); 340 m_disp->setHScrollBarMode(QScrollView::AlwaysOff);
341 m_disp->resize(qApp->desktop()->width(), qApp->desktop()->height()); 341 m_disp->resize(qApp->desktop()->width(), qApp->desktop()->height());
342 tFrame->showFullScreen(); 342 tFrame->showFullScreen();
343 } else { 343 } else {
344 setUpdatesEnabled(false); 344 setUpdatesEnabled(false);
345 odebug << "window" << oendl; 345 odebug << "window" << oendl;
346 m_disp->reparent(0,QPoint(0,0)); 346 m_disp->reparent(0,QPoint(0,0));
@@ -389,26 +389,26 @@ void PMainWindow::slotDisplay( const QString& inf ) {
389 if ( !m_disp ) { 389 if ( !m_disp ) {
390 initDisp(); 390 initDisp();
391 } 391 }
392 m_disp->setImage( inf ); 392 m_disp->setImage( inf );
393 if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { 393 if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) {
394 prevButton->show(); 394 prevButton->show();
395 nextButton->show(); 395 nextButton->show();
396 upButton->hide(); 396 upButton->hide();
397 fsButton->hide(); 397 fsButton->hide();
398 viewModeButton->hide(); 398 viewModeButton->hide();
399 } 399 }
400 if (m_disp->fullScreen()) { 400 if (m_disp->fullScreen()) {
401 tFrame->setActiveWindow(); 401// tFrame->showFullScreen();
402 tFrame->showFullScreen(); 402 m_disp->enableFullscreen();
403 } else { 403 } else {
404 m_stack->raiseWidget( ImageDisplay ); 404 m_stack->raiseWidget( ImageDisplay );
405 } 405 }
406} 406}
407 407
408void PMainWindow::slotReturn() { 408void PMainWindow::slotReturn() {
409 raiseIconView(); 409 raiseIconView();
410} 410}
411 411
412 412
413void PMainWindow::closeEvent( QCloseEvent* ev ) { 413void PMainWindow::closeEvent( QCloseEvent* ev ) {
414 /* 414 /*