diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/gui/logview.h | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip |
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/logview.h')
-rw-r--r-- | src/gui/logview.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/gui/logview.h b/src/gui/logview.h index c568da8..a2b9487 100644 --- a/src/gui/logview.h +++ b/src/gui/logview.h @@ -14,7 +14,7 @@ class KTechlab; #include <ktextedit.h> -#include <qmap.h> +#include <tqmap.h> namespace KateMDI { class ToolView; } @@ -22,16 +22,16 @@ class MessageInfo { public: MessageInfo(); - MessageInfo( QString fileURL, int fileLine ); + MessageInfo( TQString fileURL, int fileLine ); - QString fileURL() const { return m_fileURL; } + TQString fileURL() const { return m_fileURL; } int fileLine() const { return m_fileLine; } protected: - QString m_fileURL; + TQString m_fileURL; int m_fileLine; }; -typedef QMap<int,MessageInfo> MessageInfoMap; +typedef TQMap<int,MessageInfo> MessageInfoMap; /** @@ -42,8 +42,9 @@ Base class for logviews (eg GpasmInterface) which output information, warnings, class LogView : public KTextEdit { Q_OBJECT + TQ_OBJECT public: - LogView( KateMDI::ToolView * parent, const char *name = 0 ); + LogView( KateMDI::ToolView * tqparent, const char *name = 0 ); ~LogView(); enum OutputType @@ -59,22 +60,22 @@ class LogView : public KTextEdit /** * Emitted when the user clicks on a paragraph in the log view */ - void paraClicked( const QString &text, MessageInfo messageInfo ); + void paraClicked( const TQString &text, MessageInfo messageInfo ); public slots: virtual void clear(); - void addOutput( QString text, OutputType outputType, MessageInfo messageInfo = MessageInfo() ); + void addOutput( TQString text, OutputType outputType, MessageInfo messageInfo = MessageInfo() ); protected: - virtual QPopupMenu * createPopupMenu( const QPoint & pos ); + virtual TQPopupMenu * createPopupMenu( const TQPoint & pos ); /** * Replaces "&" with &, "<" with <, etc */ - void tidyText( QString &t ); + void tidyText( TQString &t ); /** * Replaces "<" with "<", "&" with "&", etc */ - void untidyText( QString &t ); + void untidyText( TQString &t ); MessageInfoMap m_messageInfoMap; |