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 | |||
@@ -182,25 +182,24 @@ void ImageView::hide() | |||
182 | { | 182 | { |
183 | if (fullScreen()) { | 183 | if (fullScreen()) { |
184 | m_ignore_next_in = true; | 184 | m_ignore_next_in = true; |
185 | showNormal(); | 185 | showNormal(); |
186 | } | 186 | } |
187 | QWidget::hide(); | 187 | QWidget::hide(); |
188 | } | 188 | } |
189 | void ImageView::enableFullscreen() | 189 | void ImageView::enableFullscreen() |
190 | { | 190 | { |
191 | if (!fullScreen()) return; | 191 | if (!fullScreen()) return; |
192 | if (m_ignore_next_in) {m_ignore_next_in = false;return;} | 192 | if (m_ignore_next_in) {m_ignore_next_in = false;return;} |
193 | 193 | ||
194 | setUpdatesEnabled(false); | 194 | setUpdatesEnabled(false); |
195 | // This is needed because showNormal() forcefully changes the window | 195 | // This is needed because showNormal() forcefully changes the window |
196 | // style to WSTyle_TopLevel. | 196 | // style to WSTyle_TopLevel. |
197 | reparent(0, WStyle_Customize | WStyle_NoBorder, QPoint(0,0)); | 197 | reparent(0, WStyle_Customize | WStyle_NoBorder, QPoint(0,0)); |
198 | // Enable fullscreen. | 198 | // Enable fullscreen. |
199 | /* this is the trick - I don't now why, but after a showFullScreen QTE toggles the focus | 199 | /* this is the trick - I don't now why, but after a showFullScreen QTE toggles the focus |
200 | * so we must block it here! */ | 200 | * so we must block it here! */ |
201 | m_ignore_next_in = true; | 201 | m_ignore_next_in = true; |
202 | showFullScreen(); | 202 | showFullScreen(); |
203 | setUpdatesEnabled(true); | 203 | setUpdatesEnabled(true); |
204 | 204 | ||
205 | } | 205 | } |
206 | |||