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/languages/languagemanager.cpp | |
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/languages/languagemanager.cpp')
-rw-r--r-- | src/languages/languagemanager.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/languages/languagemanager.cpp b/src/languages/languagemanager.cpp index a6dddd8..0a641a9 100644 --- a/src/languages/languagemanager.cpp +++ b/src/languages/languagemanager.cpp @@ -25,7 +25,7 @@ #include <kdockwidget.h> #include <kiconloader.h> #include <klocale.h> -#include <qwhatsthis.h> +#include <tqwhatsthis.h> #include <assert.h> @@ -33,26 +33,26 @@ LanguageManager * LanguageManager::m_pSelf = 0l; -LanguageManager * LanguageManager::self( KateMDI::ToolView * parent, KTechlab * ktl ) +LanguageManager * LanguageManager::self( KateMDI::ToolView * tqparent, KTechlab * ktl ) { if (!m_pSelf) { - assert(parent); + assert(tqparent); assert(ktl); - m_pSelf = new LanguageManager( parent, ktl ); + m_pSelf = new LanguageManager( tqparent, ktl ); } return m_pSelf; } -LanguageManager::LanguageManager( KateMDI::ToolView * parent, KTechlab * ktl ) - : QObject((QObject*)ktl) +LanguageManager::LanguageManager( KateMDI::ToolView * tqparent, KTechlab * ktl ) + : TQObject((TQObject*)ktl) { p_ktechlab = ktl; - m_logView = new LogView( parent, "LanguageManager LogView"); + m_logView = new LogView( tqparent, "LanguageManager LogView"); - QWhatsThis::add( m_logView, i18n("These messages show the output of language-related functionality such as compiling and assembling.<br><br>For error messages, clicking on the line will automatically open up the file at the position of the error.") ); - connect( m_logView, SIGNAL(paraClicked(const QString&, MessageInfo )), this, SLOT(slotParaClicked(const QString&, MessageInfo )) ); + TQWhatsThis::add( m_logView, i18n("These messages show the output of language-related functionality such as compiling and assembling.<br><br>For error messages, clicking on the line will automatically open up the file at the position of the error.") ); + connect( m_logView, TQT_SIGNAL(paraClicked(const TQString&, MessageInfo )), this, TQT_SLOT(slotParaClicked(const TQString&, MessageInfo )) ); reset(); } @@ -86,20 +86,20 @@ ProcessListChain * LanguageManager::compile( ProcessOptionsList pol ) } -void LanguageManager::slotError( const QString &error, MessageInfo messageInfo ) +void LanguageManager::slotError( const TQString &error, MessageInfo messageInfo ) { m_logView->addOutput( error, LogView::ot_error, messageInfo ); } -void LanguageManager::slotWarning( const QString &error, MessageInfo messageInfo ) +void LanguageManager::slotWarning( const TQString &error, MessageInfo messageInfo ) { m_logView->addOutput( error, LogView::ot_warning, messageInfo ); } -void LanguageManager::slotMessage( const QString &error, MessageInfo messageInfo ) +void LanguageManager::slotMessage( const TQString &error, MessageInfo messageInfo ) { m_logView->addOutput( error, LogView::ot_message, messageInfo ); } -void LanguageManager::slotParaClicked( const QString& message, MessageInfo messageInfo ) +void LanguageManager::slotParaClicked( const TQString& message, MessageInfo messageInfo ) { Q_UNUSED(message); DocManager::self()->gotoTextLine( messageInfo.fileURL(), messageInfo.fileLine() ); |