From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: 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 --- src/gui/logview.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/gui/logview.h') 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 -#include +#include 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 MessageInfoMap; +typedef TQMap 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; -- cgit v1.2.1