diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kitchensync/src/kwidgetlist.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kitchensync/src/kwidgetlist.cpp')
-rw-r--r-- | kitchensync/src/kwidgetlist.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kitchensync/src/kwidgetlist.cpp b/kitchensync/src/kwidgetlist.cpp index e8c1b791a..3869bc1dd 100644 --- a/kitchensync/src/kwidgetlist.cpp +++ b/kitchensync/src/kwidgetlist.cpp @@ -38,8 +38,8 @@ class KWidgetList::Private TQVBox *mBox; }; -KWidgetList::KWidgetList( TQWidget *parent, const char *name ) - : TQScrollView( parent, name ), +KWidgetList::KWidgetList( TQWidget *tqparent, const char *name ) + : TQScrollView( tqparent, name ), d( new Private ) { d->mBox = new TQVBox( viewport() ); @@ -217,7 +217,7 @@ bool KWidgetList::eventFilter( TQObject *object, TQEvent *event ) } } else if ( event->type() == TQEvent::KeyPress ) { TQKeyEvent *keyEvent = static_cast<TQKeyEvent*>( event ); - if ( keyEvent->key() == Qt::Key_Up ) { + if ( keyEvent->key() == TQt::Key_Up ) { if ( d->mSelectedItem == 0 ) { if ( !d->mItems.isEmpty() ) { setSelected( d->mItems.first() ); @@ -234,7 +234,7 @@ bool KWidgetList::eventFilter( TQObject *object, TQEvent *event ) } } return true; - } else if ( keyEvent->key() == Qt::Key_Down ) { + } else if ( keyEvent->key() == TQt::Key_Down ) { if ( d->mSelectedItem == 0 ) { if ( !d->mItems.isEmpty() ) { setSelected( d->mItems.last() ); @@ -256,8 +256,8 @@ bool KWidgetList::eventFilter( TQObject *object, TQEvent *event ) return TQScrollView::eventFilter( object, event ); } -KWidgetListItem::KWidgetListItem( KWidgetList *parent, const char *name ) - : TQWidget( parent, name ) +KWidgetListItem::KWidgetListItem( KWidgetList *tqparent, const char *name ) + : TQWidget( tqparent, name ) { mForegroundColor = KGlobalSettings::textColor(); mBackgroundColor = KGlobalSettings::baseColor(); |