summaryrefslogtreecommitdiffstats
path: root/lib/widgets/kcomboview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/kcomboview.cpp')
-rw-r--r--lib/widgets/kcomboview.cpp18
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();