diff options
Diffstat (limited to 'kmouth/wordcompletion/klanguagebutton.h')
-rw-r--r-- | kmouth/wordcompletion/klanguagebutton.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kmouth/wordcompletion/klanguagebutton.h b/kmouth/wordcompletion/klanguagebutton.h index ee1d58f..0ebe5c7 100644 --- a/kmouth/wordcompletion/klanguagebutton.h +++ b/kmouth/wordcompletion/klanguagebutton.h @@ -30,9 +30,9 @@ #include "kpushbutton.h" /* - * Extended QPushButton that shows a menu with submenu for language selection. + * Extended TQPushButton that shows a menu with submenu for language selection. * Essentially just a combo box with a 2-D dataset, but using a real - * QComboBox will produce ugly results. + * TQComboBox will produce ugly results. * * Combined version of KTagCombo and KLanguageCombo but using a QPushButton * instead. @@ -42,39 +42,39 @@ class KLanguageButton : public QPushButton Q_OBJECT public: - KLanguageButton(QWidget *parent=0, const char *name=0); + KLanguageButton(TQWidget *parent=0, const char *name=0); ~KLanguageButton(); - void insertItem( const QIconSet& icon, const QString &text, - const QString &tag, const QString &submenu = QString::null, + void insertItem( const TQIconSet& icon, const TQString &text, + const TQString &tag, const TQString &submenu = TQString::null, int index = -1 ); - void insertItem( const QString &text, const QString &tag, - const QString &submenu = QString::null, int index = -1 ); - void insertSeparator( const QString &submenu = QString::null, + void insertItem( const TQString &text, const TQString &tag, + const TQString &submenu = TQString::null, int index = -1 ); + void insertSeparator( const TQString &submenu = TQString::null, int index = -1 ); - void insertSubmenu( const QString &text, const QString &tag, - const QString &submenu = QString::null, int index = -1); + void insertSubmenu( const TQString &text, const TQString &tag, + const TQString &submenu = TQString::null, int index = -1); int count() const; void clear(); - void insertLanguage( const QString& path, const QString& name, - const QString& sub = QString::null, - const QString &submenu = QString::null, int index = -1); + void insertLanguage( const TQString& path, const TQString& name, + const TQString& sub = TQString::null, + const TQString &submenu = TQString::null, int index = -1); /* * Tag of the selected item */ - QString currentTag() const; - QString tag( int i ) const; - bool containsTag( const QString &str ) const; + TQString currentTag() const; + TQString tag( int i ) const; + bool containsTag( const TQString &str ) const; /* * Set the current item */ int currentItem() const; void setCurrentItem( int i ); - void setCurrentItem( const QString &code ); + void setCurrentItem( const TQString &code ); signals: void activated( int index ); @@ -85,8 +85,8 @@ private slots: private: // work space for the new class - QStringList *m_tags; - QPopupMenu *m_popup, *m_oldPopup; + TQStringList *m_tags; + TQPopupMenu *m_popup, *m_oldPopup; int m_current; }; |