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 | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index 5ba4c8e..4852bf6 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp | |||
@@ -107,3 +107,2 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
107 | connect(prevButton,SIGNAL(clicked()),m_view,SLOT(slotShowPrev())); | 107 | connect(prevButton,SIGNAL(clicked()),m_view,SLOT(slotShowPrev())); |
108 | prevButton->hide(); | ||
109 | 108 | ||
@@ -112,3 +111,2 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
112 | connect(nextButton,SIGNAL(clicked()),m_view,SLOT(slotShowNext())); | 111 | connect(nextButton,SIGNAL(clicked()),m_view,SLOT(slotShowNext())); |
113 | nextButton->hide(); | ||
114 | 112 | ||
@@ -118,3 +116,2 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
118 | 116 | ||
119 | odebug << "Mode = " << m_stack->mode() << oendl; | ||
120 | if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { | 117 | if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { |
@@ -122,2 +119,4 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style) | |||
122 | autoRotate = true; | 119 | autoRotate = true; |
120 | prevButton->hide(); | ||
121 | nextButton->hide(); | ||
123 | } else { | 122 | } else { |
@@ -301,7 +300,9 @@ void PMainWindow::slotShowInfo( const QString& inf ) { | |||
301 | m_info->setPath( inf ); | 300 | m_info->setPath( inf ); |
302 | prevButton->hide(); | 301 | if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { |
303 | nextButton->hide(); | 302 | prevButton->hide(); |
304 | upButton->hide(); | 303 | nextButton->hide(); |
305 | fsButton->hide(); | 304 | upButton->hide(); |
306 | viewModeButton->hide(); | 305 | fsButton->hide(); |
306 | viewModeButton->hide(); | ||
307 | } | ||
307 | m_stack->raiseWidget( ImageInfo ); | 308 | m_stack->raiseWidget( ImageInfo ); |
@@ -314,7 +315,9 @@ void PMainWindow::slotDisplay( const QString& inf ) { | |||
314 | m_disp->setImage( inf ); | 315 | m_disp->setImage( inf ); |
315 | prevButton->show(); | 316 | if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { |
316 | nextButton->show(); | 317 | prevButton->show(); |
317 | upButton->hide(); | 318 | nextButton->show(); |
318 | fsButton->hide(); | 319 | upButton->hide(); |
319 | viewModeButton->hide(); | 320 | fsButton->hide(); |
321 | viewModeButton->hide(); | ||
322 | } | ||
320 | m_stack->raiseWidget( ImageDisplay ); | 323 | m_stack->raiseWidget( ImageDisplay ); |
@@ -343,7 +346,9 @@ void PMainWindow::closeEvent( QCloseEvent* ev ) { | |||
343 | void PMainWindow::raiseIconView() { | 346 | void PMainWindow::raiseIconView() { |
344 | prevButton->hide(); | 347 | if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) { |
345 | nextButton->hide(); | 348 | prevButton->hide(); |
346 | upButton->show(); | 349 | nextButton->hide(); |
347 | fsButton->show(); | 350 | upButton->show(); |
348 | viewModeButton->show(); | 351 | fsButton->show(); |
352 | viewModeButton->show(); | ||
353 | } | ||
349 | m_stack->raiseWidget( IconView ); | 354 | m_stack->raiseWidget( IconView ); |