diff options
Diffstat (limited to 'src/libgui/log_view.h')
-rw-r--r-- | src/libgui/log_view.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/libgui/log_view.h b/src/libgui/log_view.h index c84849e..75e2481 100644 --- a/src/libgui/log_view.h +++ b/src/libgui/log_view.h @@ -9,25 +9,26 @@ #ifndef LOG_VIEW_H #define LOG_VIEW_H -#include <qtextedit.h> +#include <tqtextedit.h> #include "common/global/log.h" namespace Log { enum OutputType { GuiOnly = 0, GuiConsole, Nb_OutputTypes }; -class Widget : public QTextEdit, public View +class Widget : public TQTextEdit, public View { Q_OBJECT + TQ_OBJECT public: - Widget(QWidget *parent = 0, const char *name = 0); - virtual void appendToLastLine(const QString &text); + Widget(TQWidget *tqparent = 0, const char *name = 0); + virtual void appendToLastLine(const TQString &text); virtual void clear(); - virtual void sorry(const QString &message, const QString &details); - virtual bool askContinue(const QString &message); + virtual void sorry(const TQString &message, const TQString &details); + virtual bool askContinue(const TQString &message); protected: - QPopupMenu *createPopupMenu(const QPoint &pos); + TQPopupMenu *createPopupMenu(const TQPoint &pos); private slots: void toggleVisible(int i); @@ -36,14 +37,14 @@ private slots: private: int _id[DebugLevel::Nb_Types]; - QPopupMenu *_popup; - QString _text; + TQPopupMenu *_popup; + TQString _text; virtual void updateDebugLevel(); - virtual void doLog(LineType type, const QString &text, Action action = Immediate); - virtual void doLog(DebugLevel level, const QString &text, Action action = Immediate); - void doLog(const QString &text, const QString &color, bool bold, Action action = Immediate); - void logExtra(const QString &text); + virtual void doLog(LineType type, const TQString &text, Action action = Immediate); + virtual void doLog(DebugLevel level, const TQString &text, Action action = Immediate); + void doLog(const TQString &text, const TQString &color, bool bold, Action action = Immediate); + void logExtra(const TQString &text); }; } // namespace |