diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/widgets/kcomboview.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/widgets/kcomboview.cpp')
-rw-r--r-- | lib/widgets/kcomboview.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/widgets/kcomboview.cpp b/lib/widgets/kcomboview.cpp index ddb3123c..2576ed0c 100644 --- a/lib/widgets/kcomboview.cpp +++ b/lib/widgets/kcomboview.cpp @@ -19,13 +19,13 @@ #include <klineedit.h> #include <klistview.h> #include <kcompletionbox.h> -#include <qheader.h> -#include <qmap.h> +#include <tqheader.h> +#include <tqmap.h> #include "kcomboview.h" -KComboView::KComboView( bool rw, int defaultWidth, QWidget* parent, const char* name , CustomCompleter* comp) +KComboView::KComboView( bool rw, int defaultWidth, TQWidget* parent, const char* name , CustomCompleter* comp) :QComboView(rw, parent, name), m_comp( comp ), m_defaultWidth(defaultWidth) { if (rw) @@ -33,7 +33,7 @@ KComboView::KComboView( bool rw, int defaultWidth, QWidget* parent, const char* KLineEdit *ed = new KLineEdit(this, "combo edit"); ed->setCompletionMode(KGlobalSettings::CompletionPopup); ed->setCompletionObject(m_comp); - ed->completionBox()->setHScrollBarMode(QListBox::Auto); + ed->completionBox()->setHScrollBarMode(TQListBox::Auto); setLineEdit(ed); } setMinimumWidth(defaultWidth); @@ -43,12 +43,12 @@ KComboView::~KComboView() { delete m_comp; } -void KComboView::addItem(QListViewItem *it) +void KComboView::addItem(TQListViewItem *it) { m_comp->addItem(it->text(0)); } -void KComboView::removeItem(QListViewItem *it) +void KComboView::removeItem(TQListViewItem *it) { if (it == currentItem()) { @@ -59,7 +59,7 @@ void KComboView::removeItem(QListViewItem *it) delete it; } -void KComboView::renameItem(QListViewItem *it, const QString &newName) +void KComboView::renameItem(TQListViewItem *it, const TQString &newName) { m_comp->removeItem(it->text(0)); it->setText(0, newName); @@ -79,7 +79,7 @@ int KComboView::defaultWidth( ) return m_defaultWidth; } -void KComboView::setDefaultText( const QString & text ) +void KComboView::setDefaultText( const TQString & text ) { m_defaultText = text; } @@ -90,7 +90,7 @@ void KComboView::setUpListView() listView->setRootIsDecorated( false ); listView->setAllColumnsShowFocus(true); listView->addColumn(""); - listView->setResizeMode(QListView::LastColumn); + listView->setResizeMode(TQListView::LastColumn); listView->header()->hide(); |