-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.cpp | 10 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index 21a668a..3650493 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp @@ -22,4 +22,5 @@ #include <qpe/config.h> #include <qpe/ir.h> +#include <qpe/applnk.h> #include <qtoolbar.h> @@ -282,2 +283,11 @@ void PMainWindow::raiseIconView() { m_stack->raiseWidget( IconView ); } + +void PMainWindow::setDocument( const QString& showImg ) { + QString file = showImg; + DocLnk lnk(showImg); + if (lnk.isValid() ) + file = lnk.file(); + + slotDisplay( file ); +} diff --git a/noncore/graphics/opie-eye/gui/mainwindow.h b/noncore/graphics/opie-eye/gui/mainwindow.h index 5de2f42..042d568 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.h +++ b/noncore/graphics/opie-eye/gui/mainwindow.h @@ -40,4 +40,5 @@ public slots: void slotRotateToggled(bool); void slotScaleToggled(bool); + void setDocument( const QString& ); protected: |