diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
commit | bab40890696ec68c337dc290880423a0602b83c7 (patch) | |
tree | 6ba03f720b1fa88235ba339e7aedb4455430357e /kate/part/katecodecompletion.cpp | |
parent | f7e71d47719ab6094cf4a9fafffa5ea351973522 (diff) | |
download | tdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip |
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/part/katecodecompletion.cpp')
-rw-r--r-- | kate/part/katecodecompletion.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kate/part/katecodecompletion.cpp b/kate/part/katecodecompletion.cpp index e7f11b994..4de784289 100644 --- a/kate/part/katecodecompletion.cpp +++ b/kate/part/katecodecompletion.cpp @@ -51,7 +51,7 @@ *@short Listbox showing codecompletion *@author Jonas B. Jacobi <j.jacobi@gmx.de> */ -class KateCCListBox : public QListBox +class KateCCListBox : public TQListBox { public: /** @@ -90,7 +90,7 @@ class KateCCListBox : public QListBox } }; -class KateCompletionItem : public QListBoxText +class KateCompletionItem : public TQListBoxText { public: KateCompletionItem( TQListBox* lb, KTextEditor::CompletionEntry entry ) @@ -113,7 +113,7 @@ KateCodeCompletion::KateCodeCompletion( KateView* view ) , m_view( view ) , m_commentLabel( 0 ) { - m_completionPopup = new TQVBox( 0, 0, WType_Popup ); + m_completionPopup = new TQVBox( 0, 0, (WFlags)WType_Popup ); m_completionPopup->setFrameStyle( TQFrame::Box | TQFrame::Plain ); m_completionPopup->setLineWidth( 1 ); @@ -163,9 +163,9 @@ void KateCodeCompletion::showCompletionBox( bool KateCodeCompletion::eventFilter( TQObject *o, TQEvent *e ) { - if ( o != m_completionPopup && - o != m_completionListBox && - o != m_completionListBox->viewport() ) + if ( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionPopup) && + TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionListBox) && + TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionListBox->viewport()) ) return false; if( e->type() == TQEvent::Hide ) @@ -392,7 +392,7 @@ void KateCodeCompletion::showComment() } KateArgHint::KateArgHint( KateView* parent, const char* name ) - : TQFrame( parent, name, WType_Popup ) + : TQFrame( parent, name, (WFlags)WType_Popup ) { setBackgroundColor( black ); setPaletteForegroundColor( Qt::black ); @@ -404,7 +404,7 @@ KateArgHint::KateArgHint( KateView* parent, const char* name ) m_markCurrentFunction = true; - setFocusPolicy( StrongFocus ); + setFocusPolicy( TQ_StrongFocus ); setFocusProxy( parent ); reset( -1, -1 ); @@ -533,7 +533,7 @@ void KateArgHint::show() bool KateArgHint::eventFilter( TQObject*, TQEvent* e ) { if( isVisible() && e->type() == TQEvent::KeyPress ){ - TQKeyEvent* ke = static_cast<TQKeyEvent*>( e ); + TQKeyEvent* ke = TQT_TQKEYEVENT( e ); if( (ke->state() & ControlButton) && ke->key() == Key_Left ){ setCurrentFunction( currentFunction() - 1 ); ke->accept(); |