author | alwin <alwin> | 2004-10-30 19:07:22 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-10-30 19:07:22 (UTC) |
commit | 193bbcdfb160a1a1dbb59078ae262c1a98207808 (patch) (side-by-side diff) | |
tree | 9d2cc5e2501cc94b4e61e1edffa421b4886aaa6c /noncore/graphics/opie-eye/gui/imageview.cpp | |
parent | 0fc9ce0c22bad09470a18eb6d084c6042c914ed8 (diff) | |
download | opie-193bbcdfb160a1a1dbb59078ae262c1a98207808.zip opie-193bbcdfb160a1a1dbb59078ae262c1a98207808.tar.gz opie-193bbcdfb160a1a1dbb59078ae262c1a98207808.tar.bz2 |
most part of menu implemented
all buttons etc. should become a QAction inserted into menu and toolbar
toolbar may be hidden
Diffstat (limited to 'noncore/graphics/opie-eye/gui/imageview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageview.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.cpp b/noncore/graphics/opie-eye/gui/imageview.cpp index b699aa1..a20c879 100644 --- a/noncore/graphics/opie-eye/gui/imageview.cpp +++ b/noncore/graphics/opie-eye/gui/imageview.cpp @@ -158,49 +158,48 @@ void ImageView::contentsMousePressEvent ( QMouseEvent * e) } void ImageView::setFullScreen(bool how) { m_isFullScreen = how; if (how) { m_ignore_next_in = true; setFixedSize(qApp->desktop()->size()); showFullScreen(); } else { setMinimumSize(10,10); } } void ImageView::focusInEvent(QFocusEvent *) { // Always do it here, no matter the size. odebug << "Focus in (view)" << oendl; //if (fullScreen()) parentWidget()->showNormal(); if (m_ignore_next_in){m_ignore_next_in=false;return;} if (fullScreen()) enableFullscreen(); } void ImageView::hide() { if (fullScreen()) { m_ignore_next_in = true; showNormal(); } QWidget::hide(); } void ImageView::enableFullscreen() { if (!fullScreen()) return; if (m_ignore_next_in) {m_ignore_next_in = false;return;} setUpdatesEnabled(false); // This is needed because showNormal() forcefully changes the window // style to WSTyle_TopLevel. reparent(0, WStyle_Customize | WStyle_NoBorder, QPoint(0,0)); // Enable fullscreen. /* this is the trick - I don't now why, but after a showFullScreen QTE toggles the focus * so we must block it here! */ m_ignore_next_in = true; showFullScreen(); setUpdatesEnabled(true); } - |