summaryrefslogtreecommitdiffstats
path: root/src/libgui/log_view.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/log_view.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/libgui/log_view.h')
-rw-r--r--src/libgui/log_view.h27
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