summaryrefslogtreecommitdiffstats
path: root/keduca/keducabuilder/ktagcombobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keduca/keducabuilder/ktagcombobox.cpp')
-rw-r--r--keduca/keducabuilder/ktagcombobox.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/keduca/keducabuilder/ktagcombobox.cpp b/keduca/keducabuilder/ktagcombobox.cpp
index 5a84574c..f89f14df 100644
--- a/keduca/keducabuilder/ktagcombobox.cpp
+++ b/keduca/keducabuilder/ktagcombobox.cpp
@@ -3,7 +3,7 @@
*
* Copyright (c) 1999-2000 Hans Petter Bieker <bieker@kde.org>
*
- * Requires the Qt widget libraries, available at no cost at
+ * Requires the TQt widget libraries, available at no cost at
* http://www.troll.no/
*
* This program is free software; you can redistribute it and/or modify
@@ -36,8 +36,8 @@ KTagComboBox::~KTagComboBox ()
delete _tags;
}
-KTagComboBox::KTagComboBox (TQWidget * parent, const char *name)
- : TQComboBox(parent, name)
+KTagComboBox::KTagComboBox (TQWidget * tqparent, const char *name)
+ : TQComboBox(tqparent, name)
{
_popup = new TQPopupMenu(this);
_tags = new TQStringList;
@@ -84,7 +84,7 @@ void KTagComboBox::internalActivate( int index )
if (_current == index) return;
_current = index;
emit activated( index );
- repaint();
+ tqrepaint();
}
void KTagComboBox::internalHighlight( int index )
@@ -105,12 +105,12 @@ int KTagComboBox::count() const
static inline TQPopupMenu *checkInsertIndex(TQPopupMenu *popup, const TQStringList *tags, const TQString &submenu, int *index)
{
- int pos = tags->findIndex(submenu);
+ int pos = tags->tqfindIndex(submenu);
TQPopupMenu *pi = 0;
if (pos != -1)
{
- TQMenuItem *p = popup->findItem(popup->idAt(pos));
+ TQMenuItem *p = popup->tqfindItem(popup->idAt(pos));
pi = p?p->popup():0;
}
if (!pi) pi = popup;
@@ -139,7 +139,7 @@ void KTagComboBox::insertSeparator(const TQString &submenu, int index)
{
TQPopupMenu *pi = checkInsertIndex(_popup, _tags, submenu, &index);
pi->insertSeparator(index);
- _tags->append(TQString::null);
+ _tags->append(TQString());
}
void KTagComboBox::insertSubmenu(const TQString &text, const TQString &tag, const TQString &submenu, int index)
@@ -158,7 +158,7 @@ void KTagComboBox::changeItem( const TQString &text, int index )
{
_popup->changeItem( text, index);
if (index == _current)
- repaint();
+ tqrepaint();
}
void KTagComboBox::paintEvent( TQPaintEvent * ev)
@@ -170,7 +170,7 @@ void KTagComboBox::paintEvent( TQPaintEvent * ev)
// Text
TQRect clip(2, 2, width() - 4, height() - 4);
if ( hasFocus())
- p.setPen( colorGroup().highlightedText() );
+ p.setPen( tqcolorGroup().highlightedText() );
p.drawText(clip, AlignCenter | SingleLine, _popup->text( _current ));
// Icon
@@ -183,7 +183,7 @@ void KTagComboBox::paintEvent( TQPaintEvent * ev)
bool KTagComboBox::containsTag( const TQString &str ) const
{
- return _tags->contains(str) > 0;
+ return _tags->tqcontains(str) > 0;
}
TQString KTagComboBox::currentTag() const
@@ -196,7 +196,7 @@ TQString KTagComboBox::tag(int i) const
if (i < 0 || i >= count())
{
kdDebug() << "KTagComboBox::tag(), unknown tag " << i << endl;
- return TQString::null;
+ return TQString();
}
return *_tags->at(i);
}
@@ -210,12 +210,12 @@ void KTagComboBox::setCurrentItem(int i)
{
if (i < 0 || i >= count()) return;
_current = i;
- repaint();
+ tqrepaint();
}
void KTagComboBox::setCurrentItem(const TQString &code)
{
- int i = _tags->findIndex(code);
+ int i = _tags->tqfindIndex(code);
if (code.isNull())
i = 0;
if (i != -1)