diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /kghostview/fullscreenfilter.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kghostview/fullscreenfilter.cpp')
-rw-r--r-- | kghostview/fullscreenfilter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kghostview/fullscreenfilter.cpp b/kghostview/fullscreenfilter.cpp index 724031f4..9efe8a6c 100644 --- a/kghostview/fullscreenfilter.cpp +++ b/kghostview/fullscreenfilter.cpp @@ -1,5 +1,5 @@ /** - * Copyright (C) 2003, Luís Pedro Coelho + * Copyright (C) 2003, Lu�s Pedro Coelho * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,26 +22,26 @@ #include "kgv_miniwidget.h" #include "kgvpageview.h" -FullScreenFilter::FullScreenFilter( KGVShell& parent ) - :TQObject( &parent, "full-screen-filter" ), - parent( parent ) +FullScreenFilter::FullScreenFilter( KGVShell& tqparent ) + :TQObject( &tqparent, "full-screen-filter" ), + tqparent( tqparent ) { } bool FullScreenFilter::eventFilter( TQObject* /*object*/, TQEvent* ev) { if ( TQKeyEvent* keyevent = dynamic_cast<TQKeyEvent*>( ev ) ) { if ( keyevent->key() == Key_Escape ) { - parent.setFullScreen( false ); + tqparent.setFullScreen( false ); keyevent->accept(); return true; } } if ( TQMouseEvent* mouseevent = dynamic_cast<TQMouseEvent*>( ev ) ) { - if ( mouseevent->stateAfter() & mouseevent->button() & LeftButton ) { + if ( mouseevent->stateAfter() & mouseevent->button() & Qt::LeftButton ) { // if ( The whole image is visible at once ) - if ( parent.m_gvpart->pageView()->contentsHeight() <= parent.m_gvpart->widget()->height() && - parent.m_gvpart->pageView()->contentsWidth() <= parent.m_gvpart->widget()->width() ) { - parent.m_gvpart->miniWidget()->nextPage(); + if ( tqparent.m_gvpart->pageView()->contentsHeight() <= tqparent.m_gvpart->widget()->height() && + tqparent.m_gvpart->pageView()->contentsWidth() <= tqparent.m_gvpart->widget()->width() ) { + tqparent.m_gvpart->miniWidget()->nextPage(); mouseevent->accept(); return true; } |