diff options
Diffstat (limited to 'krita/ui/kis_cmb_composite.cc')
-rw-r--r-- | krita/ui/kis_cmb_composite.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/krita/ui/kis_cmb_composite.cc b/krita/ui/kis_cmb_composite.cc index 03c846c1..4ede96ae 100644 --- a/krita/ui/kis_cmb_composite.cc +++ b/krita/ui/kis_cmb_composite.cc @@ -18,18 +18,18 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qcombobox.h> +#include <tqcombobox.h> #include <klocale.h> #include <kdebug.h> #include "kis_cmb_composite.h" -KisCmbComposite::KisCmbComposite(QWidget * parent, const char * name) - : super( false, parent, name ) +KisCmbComposite::KisCmbComposite(TQWidget * tqparent, const char * name) + : super( false, tqparent, name ) { - connect(this, SIGNAL(activated(int)), this, SLOT(slotOpActivated(int))); - connect(this, SIGNAL(highlighted(int)), this, SLOT(slotOpHighlighted(int))); + connect(this, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotOpActivated(int))); + connect(this, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotOpHighlighted(int))); } KisCmbComposite::~KisCmbComposite() @@ -47,7 +47,7 @@ void KisCmbComposite::setCompositeOpList(const KisCompositeOpList & list) KisCompositeOp KisCmbComposite::currentItem() const { - Q_UINT32 i = super::currentItem(); + TQ_UINT32 i = super::currentItem(); if (i > m_list.count()) return KisCompositeOp(); return m_list[i]; @@ -55,12 +55,12 @@ KisCompositeOp KisCmbComposite::currentItem() const void KisCmbComposite::setCurrentItem(const KisCompositeOp& op) { - if (m_list.find(op) != m_list.end()) { + if (m_list.tqfind(op) != m_list.end()) { super::setCurrentText(op.id().name()); } } -void KisCmbComposite::setCurrentText(const QString & s) +void KisCmbComposite::setCurrentText(const TQString & s) { KisCompositeOpList::iterator it; for( it = m_list.begin(); it != m_list.end(); ++it ) @@ -71,14 +71,14 @@ void KisCmbComposite::setCurrentText(const QString & s) void KisCmbComposite::slotOpActivated(int i) { - if ((Q_UINT32)i > m_list.count()) return; + if ((TQ_UINT32)i > m_list.count()) return; emit activated(m_list[i]); } void KisCmbComposite::slotOpHighlighted(int i) { - if ((Q_UINT32)i > m_list.count()) return; + if ((TQ_UINT32)i > m_list.count()) return; emit highlighted(m_list[i]); } |