author | alwin <alwin> | 2004-04-07 11:10:21 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-04-07 11:10:21 (UTC) |
commit | 6095b1f70bcac407208e7473598f2bbf53339810 (patch) (unidiff) | |
tree | e76d8ad85b79de56a7aa7dd95c824da485901c6f /noncore/graphics/opie-eye/gui/mainwindow.cpp | |
parent | 364971c08f3d761102daab01889b9fab394f8f08 (diff) | |
download | opie-6095b1f70bcac407208e7473598f2bbf53339810.zip opie-6095b1f70bcac407208e7473598f2bbf53339810.tar.gz opie-6095b1f70bcac407208e7473598f2bbf53339810.tar.bz2 |
the ImageScrollView wrapped with another class where just the
opie-eye specifics are implemented. So we can move that into the
MM lib and use it in other programs.
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 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index 5e94f93..529bee4 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp | |||
@@ -9,3 +9,3 @@ | |||
9 | #include "imageinfoui.h" | 9 | #include "imageinfoui.h" |
10 | #include "imagescrollview.h" | 10 | #include "imageview.h" |
11 | 11 | ||
@@ -164,2 +164,3 @@ void PMainWindow::slotConfig() { | |||
164 | keyWid->insert( tr("Browser Keyboard Actions"), m_view->manager() ); | 164 | keyWid->insert( tr("Browser Keyboard Actions"), m_view->manager() ); |
165 | |||
165 | if ( !m_info ) { | 166 | if ( !m_info ) { |
@@ -168,2 +169,8 @@ void PMainWindow::slotConfig() { | |||
168 | keyWid->insert( tr("Imageinfo Keyboard Actions"), m_info->manager() ); | 169 | keyWid->insert( tr("Imageinfo Keyboard Actions"), m_info->manager() ); |
170 | |||
171 | if ( !m_disp ) { | ||
172 | initDisp(); | ||
173 | } | ||
174 | keyWid->insert( tr("Imageview Keyboard Actions"), m_disp->manager() ); | ||
175 | |||
169 | keyWid->load(); | 176 | keyWid->load(); |
@@ -217,3 +224,3 @@ void PMainWindow::initInfo() { | |||
217 | void PMainWindow::initDisp() { | 224 | void PMainWindow::initDisp() { |
218 | initT<ImageScrollView>( "Image ScrollView", &m_disp, ImageDisplay ); | 225 | initT<ImageView>( "Image ScrollView", &m_disp, ImageDisplay ); |
219 | if (m_disp) { | 226 | if (m_disp) { |
@@ -221,4 +228,4 @@ void PMainWindow::initDisp() { | |||
221 | m_disp->setAutoRotate(autoRotate); | 228 | m_disp->setAutoRotate(autoRotate); |
229 | connect(m_disp,SIGNAL(dispImageInfo(const QString&)),this,SLOT(slotShowInfo(const QString&))); | ||
222 | } | 230 | } |
223 | |||
224 | } | 231 | } |