diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/infopage.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/infopage.cpp')
-rw-r--r-- | kregexpeditor/infopage.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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( "<qt>" ) + + TQString txt = + TQString::fromLatin1( "<qt>" ) + i18n( "Translators, feel free to add yourself in the text below, asking for a postcard ;-), " "also feel free to add a section saying <h2>Translators</h2>. " "Kind regards, and thanks for your work - Jesper.", @@ -58,20 +58,20 @@ InfoPage::InfoPage( QWidget* parent, const char* name ) "<h2>Author</h2>" "<a href=\"http://www.blackie.dk/\">Jesper K. Pedersen</a> <<a href=\"mailto:blackie@kde.org\">blackie@kde.org</a>>") - + QString::fromLatin1( "</qt>" ); + + TQString::fromLatin1( "</qt>" ); 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 |