diff options
Diffstat (limited to 'lilo-config/kde-qt-common/EditWidget.h')
-rw-r--r-- | lilo-config/kde-qt-common/EditWidget.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lilo-config/kde-qt-common/EditWidget.h b/lilo-config/kde-qt-common/EditWidget.h index 0a64750..0c0c97d 100644 --- a/lilo-config/kde-qt-common/EditWidget.h +++ b/lilo-config/kde-qt-common/EditWidget.h @@ -32,11 +32,12 @@ #include <tqlabel.h> #include <tqlineedit.h> #include <tqpushbutton.h> -class EditWidget:public QHBox +class EditWidget:public TQHBox { Q_OBJECT + TQ_OBJECT public: - EditWidget(TQString const label="", TQString const text="", bool isFile=false, TQWidget *parent=0, const char *name=0, WFlags f=0, bool allowLines=true); + EditWidget(TQString const label="", TQString const text="", bool isFile=false, TQWidget *tqparent=0, const char *name=0, WFlags f=0, bool allowLines=true); void setLabel(TQString const &label) { lbl->setText(label); }; TQString text() const { return line->text(); }; TQString displayText() const { return line->displayText(); }; @@ -57,8 +58,8 @@ public: void cut() { line->cut(); }; void copy() const { line->copy(); }; void paste() { line->paste(); }; - void setAlignment(int flag) { line->setAlignment(flag); }; - int alignment() const { return line->alignment(); }; + void tqsetAlignment(int flag) { line->tqsetAlignment(flag); }; + int tqalignment() const { return line->tqalignment(); }; void cursorLeft(bool mark, int steps=1) { line->cursorLeft(mark, steps); }; void cursorRight(bool mark, int steps=1) { line->cursorRight(mark, steps); }; void cursorWordForward(bool mark) { line->cursorWordForward(mark); }; @@ -71,8 +72,8 @@ public: bool edited() const { return line->edited(); }; bool hasMarkedText() const { return line->hasMarkedText(); }; TQString markedText() const { return line->markedText(); }; - virtual TQSize sizeHint() const; - virtual TQSize minimumSizeHint() const; + virtual TQSize tqsizeHint() const; + virtual TQSize tqminimumSizeHint() const; public slots: virtual void setText(const TQString &text) { line->setText(text); }; void selectAll() { line->selectAll(); }; @@ -85,8 +86,8 @@ signals: void textChanged(const TQString &); void returnPressed(); private: - QLabel *lbl; - QLineEdit *line; - QPushButton *select; + TQLabel *lbl; + TQLineEdit *line; + TQPushButton *select; }; #endif |