summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/gui/mainwindow.cpp
Side-by-side diff
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.cpp41
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)
connect(prevButton,SIGNAL(clicked()),m_view,SLOT(slotShowPrev()));
- prevButton->hide();
@@ -112,3 +111,2 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
connect(nextButton,SIGNAL(clicked()),m_view,SLOT(slotShowNext()));
- nextButton->hide();
@@ -118,3 +116,2 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
- odebug << "Mode = " << m_stack->mode() << oendl;
if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) {
@@ -122,2 +119,4 @@ PMainWindow::PMainWindow(QWidget* wid, const char* name, WFlags style)
autoRotate = true;
+ prevButton->hide();
+ nextButton->hide();
} else {
@@ -301,7 +300,9 @@ void PMainWindow::slotShowInfo( const QString& inf ) {
m_info->setPath( inf );
- prevButton->hide();
- nextButton->hide();
- upButton->hide();
- fsButton->hide();
- viewModeButton->hide();
+ if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) {
+ prevButton->hide();
+ nextButton->hide();
+ upButton->hide();
+ fsButton->hide();
+ viewModeButton->hide();
+ }
m_stack->raiseWidget( ImageInfo );
@@ -314,7 +315,9 @@ void PMainWindow::slotDisplay( const QString& inf ) {
m_disp->setImage( inf );
- prevButton->show();
- nextButton->show();
- upButton->hide();
- fsButton->hide();
- viewModeButton->hide();
+ if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) {
+ prevButton->show();
+ nextButton->show();
+ upButton->hide();
+ fsButton->hide();
+ viewModeButton->hide();
+ }
m_stack->raiseWidget( ImageDisplay );
@@ -343,7 +346,9 @@ void PMainWindow::closeEvent( QCloseEvent* ev ) {
void PMainWindow::raiseIconView() {
- prevButton->hide();
- nextButton->hide();
- upButton->show();
- fsButton->show();
- viewModeButton->show();
+ if (m_stack->mode() == Opie::Ui::OWidgetStack::SmallScreen) {
+ prevButton->hide();
+ nextButton->hide();
+ upButton->show();
+ fsButton->show();
+ viewModeButton->show();
+ }
m_stack->raiseWidget( IconView );