summaryrefslogtreecommitdiffstats
path: root/src/gui/lineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/lineedit.h')
-rw-r--r--src/gui/lineedit.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/gui/lineedit.h b/src/gui/lineedit.h
index af7d81b..1c42cbe 100644
--- a/src/gui/lineedit.h
+++ b/src/gui/lineedit.h
@@ -16,7 +16,7 @@
#include <klineedit.h>
-#include <qstring.h>
+#include <tqstring.h>
class KAction;
class KSpell;
@@ -29,12 +29,13 @@ namespace Tellico {
*/
class LineEdit : public KLineEdit {
Q_OBJECT
+ TQ_OBJECT
public:
- LineEdit(QWidget* parent = 0, const char* name = 0);
+ LineEdit(TQWidget* tqparent = 0, const char* name = 0);
- virtual void setText(const QString& text);
- void setHint(const QString& hint);
+ virtual void setText(const TQString& text);
+ void setHint(const TQString& hint);
// by default, spell check is not allowed, and no popupmenu item is created
void setAllowSpellCheck(bool b) { m_allowSpellCheck = b; }
@@ -45,21 +46,21 @@ public slots:
void clear();
protected:
- virtual void focusInEvent(QFocusEvent* event);
- virtual void focusOutEvent(QFocusEvent* event);
- virtual void drawContents(QPainter* painter);
- virtual QPopupMenu* createPopupMenu();
+ virtual void focusInEvent(TQFocusEvent* event);
+ virtual void focusOutEvent(TQFocusEvent* event);
+ virtual void drawContents(TQPainter* painter);
+ virtual TQPopupMenu* createPopupMenu();
private slots:
void slotCheckSpelling();
void slotSpellCheckReady(KSpell* spell);
- void slotSpellCheckDone(const QString& text);
- void spellCheckerMisspelling(const QString& text, const QStringList&, unsigned int pos);
- void spellCheckerCorrected(const QString& oldText, const QString& newText, unsigned int pos);
+ void slotSpellCheckDone(const TQString& text);
+ void spellCheckerMisspelling(const TQString& text, const TQStringList&, unsigned int pos);
+ void spellCheckerCorrected(const TQString& oldText, const TQString& newText, unsigned int pos);
void spellCheckerFinished();
private:
- QString m_hint;
+ TQString m_hint;
bool m_drawHint;
KAction* m_spellAction;
bool m_allowSpellCheck;