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/contexthelp.cpp | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src/gui/contexthelp.cpp') diff --git a/src/gui/contexthelp.cpp b/src/gui/contexthelp.cpp index 3444737..dacd1b9 100644 --- a/src/gui/contexthelp.cpp +++ b/src/gui/contexthelp.cpp @@ -16,44 +16,44 @@ #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include ContextHelp * ContextHelp::m_pSelf = 0l; -ContextHelp * ContextHelp::self( KateMDI::ToolView * parent ) +ContextHelp * ContextHelp::self( KateMDI::ToolView * tqparent ) { if (!m_pSelf) { - assert(parent); - m_pSelf = new ContextHelp(parent); + assert(tqparent); + m_pSelf = new ContextHelp(tqparent); } return m_pSelf; } -ContextHelp::ContextHelp( KateMDI::ToolView * parent ) - : QWidget( parent, "Context Help" ) +ContextHelp::ContextHelp( KateMDI::ToolView * tqparent ) + : TQWidget( tqparent, "Context Help" ) { - QWhatsThis::add( this, i18n("Provides context-sensitive help relevant to the current editing being performed.") ); + TQWhatsThis::add( this, i18n("Provides context-sensitive help relevant to the current editing being performed.") ); - QVBoxLayout *vlayout = new QVBoxLayout( this, 0, 6 ); + TQVBoxLayout *vtqlayout = new TQVBoxLayout( this, 0, 6 ); - m_nameLbl = new QLabel( this, "" ); - vlayout->addWidget(m_nameLbl); - vlayout->addSpacing(8); + m_nameLbl = new TQLabel( this, "" ); + vtqlayout->addWidget(m_nameLbl); + vtqlayout->addSpacing(8); - m_info = new QTextBrowser( this, "" ); - vlayout->addWidget(m_info); - m_info->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding ); + m_info = new TQTextBrowser( this, "" ); + vtqlayout->addWidget(m_info); + m_info->tqsetSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding ); - QSpacerItem *spacer3 = new QSpacerItem( 1, 1, QSizePolicy::Preferred, QSizePolicy::Preferred ); - vlayout->addItem(spacer3); + TQSpacerItem *spacer3 = new TQSpacerItem( 1, 1, TQSizePolicy::Preferred, TQSizePolicy::Preferred ); + vtqlayout->addItem(spacer3); slotClear(); } @@ -90,18 +90,18 @@ void ContextHelp::slotMultipleSelected() } -void ContextHelp::setContextHelp(const QString& name, const QString& help) +void ContextHelp::setContextHelp(const TQString& name, const TQString& help) { m_nameLbl->setText("

"+name+"

"); - QString parsed = help; + TQString parsed = help; parseInfo(parsed); m_info->setText( ""+parsed ); } -void ContextHelp::parseInfo( QString &info ) +void ContextHelp::parseInfo( TQString &info ) { - info.replace("","

Example:
"); - info.replace("","
"); + info.tqreplace("","

Example:
"); + info.tqreplace("","
"); } #include "contexthelp.moc" -- cgit v1.2.3