author | zecke <zecke> | 2004-04-07 23:47:43 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-07 23:47:43 (UTC) |
commit | 10ec13c9068e7e4ca0acf75e5843ebd91e4e8566 (patch) (unidiff) | |
tree | 9889be205ecb8d65aeca3b280d1db7ed0f07791c | |
parent | 61cb9c9ad238e5aec6aaa1384549e0aab99d14bf (diff) | |
download | opie-10ec13c9068e7e4ca0acf75e5843ebd91e4e8566.zip opie-10ec13c9068e7e4ca0acf75e5843ebd91e4e8566.tar.gz opie-10ec13c9068e7e4ca0acf75e5843ebd91e4e8566.tar.bz2 |
Implement setDocument so now we could start replacing showimg
-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 @@ | |||
22 | #include <qpe/config.h> | 22 | #include <qpe/config.h> |
23 | #include <qpe/ir.h> | 23 | #include <qpe/ir.h> |
24 | #include <qpe/applnk.h> | ||
24 | 25 | ||
25 | #include <qtoolbar.h> | 26 | #include <qtoolbar.h> |
@@ -282,2 +283,11 @@ void PMainWindow::raiseIconView() { | |||
282 | m_stack->raiseWidget( IconView ); | 283 | m_stack->raiseWidget( IconView ); |
283 | } | 284 | } |
285 | |||
286 | void PMainWindow::setDocument( const QString& showImg ) { | ||
287 | QString file = showImg; | ||
288 | DocLnk lnk(showImg); | ||
289 | if (lnk.isValid() ) | ||
290 | file = lnk.file(); | ||
291 | |||
292 | slotDisplay( file ); | ||
293 | } | ||
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: | |||
40 | void slotRotateToggled(bool); | 40 | void slotRotateToggled(bool); |
41 | void slotScaleToggled(bool); | 41 | void slotScaleToggled(bool); |
42 | void setDocument( const QString& ); | ||
42 | 43 | ||
43 | protected: | 44 | protected: |