summaryrefslogtreecommitdiffstats
path: root/src/gui/contexthelp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/contexthelp.cpp')
-rw-r--r--src/gui/contexthelp.cpp50
1 files changed, 25 insertions, 25 deletions
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 <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qregexp.h>
-#include <qtextbrowser.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqregexp.h>
+#include <tqtextbrowser.h>
+#include <tqwhatsthis.h>
#include <assert.h>
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("<h2>"+name+"</h2>");
- QString parsed = help;
+ TQString parsed = help;
parseInfo(parsed);
m_info->setText( "<b></b>"+parsed );
}
-void ContextHelp::parseInfo( QString &info )
+void ContextHelp::parseInfo( TQString &info )
{
- info.replace("<example>","<br><br><b>Example:</b><blockquote>");
- info.replace("</example>","</blockquote>");
+ info.tqreplace("<example>","<br><br><b>Example:</b><blockquote>");
+ info.tqreplace("</example>","</blockquote>");
}
#include "contexthelp.moc"