From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kregexpeditor/infopage.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kregexpeditor/infopage.cpp') diff --git a/kregexpeditor/infopage.cpp b/kregexpeditor/infopage.cpp index 8f373c5..e467c4b 100644 --- a/kregexpeditor/infopage.cpp +++ b/kregexpeditor/infopage.cpp @@ -24,11 +24,11 @@ #include "infopage.h" -InfoPage::InfoPage( QWidget* parent, const char* name ) +InfoPage::InfoPage( TQWidget* parent, const char* name ) :KTextBrowser( parent, name ) { - QString txt = - QString::fromLatin1( "" ) + + TQString txt = + TQString::fromLatin1( "" ) + i18n( "Translators, feel free to add yourself in the text below, asking for a postcard ;-), " "also feel free to add a section saying

Translators

. " "Kind regards, and thanks for your work - Jesper.", @@ -58,20 +58,20 @@ InfoPage::InfoPage( QWidget* parent, const char* name ) "

Author

" "Jesper K. Pedersen <blackie@kde.org>") - + QString::fromLatin1( "
" ); + + TQString::fromLatin1( "
" ); setText( txt ); } -void InfoPage::setSource ( const QString& name ) +void InfoPage::setSource ( const TQString& name ) { #ifdef QT_ONLY - mimeSourceFactory()->setFilePath( QStringList() << QString::fromLatin1("manual/")); - QString nm = name; + mimeSourceFactory()->setFilePath( TQStringList() << TQString::fromLatin1("manual/")); + TQString nm = name; if ( nm.endsWith("/") ) nm = nm.left( nm.length()-1); if ( nm.startsWith("mailto:") ) { - QMessageBox::information( this, tr("Support mail"), tr("Please send the mail to blackie@kde.org") ); + TQMessageBox::information( this, tr("Support mail"), tr("Please send the mail to blackie@kde.org") ); return; } if ( nm.startsWith( "http:" ) ) @@ -81,14 +81,14 @@ void InfoPage::setSource ( const QString& name ) if ( nm == "doc://" ) nm = "doc://index"; - if ( nm.startsWith( QString::fromLocal8Bit("doc://") ) ) { + if ( nm.startsWith( TQString::fromLocal8Bit("doc://") ) ) { nm = nm.mid(6) + ".html"; } - QTextBrowser::setSource( nm ); + TQTextBrowser::setSource( nm ); #else - if ( name.startsWith( QString::fromLocal8Bit("doc://") ) ) { - kapp->invokeHelp( name.mid(6, name.length()-7), QString::fromLocal8Bit("KRegExpEditor") ); + if ( name.startsWith( TQString::fromLocal8Bit("doc://") ) ) { + kapp->invokeHelp( name.mid(6, name.length()-7), TQString::fromLocal8Bit("KRegExpEditor") ); } else { KTextBrowser::setSource( name ); // handle mailto and other links -- cgit v1.2.1