From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kontact/src/aboutdialog.cpp | 54 ++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'kontact/src/aboutdialog.cpp') diff --git a/kontact/src/aboutdialog.cpp b/kontact/src/aboutdialog.cpp index d0a43721..19e9d9ea 100644 --- a/kontact/src/aboutdialog.cpp +++ b/kontact/src/aboutdialog.cpp @@ -33,8 +33,8 @@ #include #include -#include -#include +#include +#include #include @@ -45,12 +45,12 @@ AboutDialog::AboutDialog( Kontact::Core *core, const char *name ) true ), mCore( core ) { - addAboutData( i18n( "Kontact Container" ), QString( "kontact" ), + addAboutData( i18n( "Kontact Container" ), TQString( "kontact" ), KGlobal::instance()->aboutData() ); - QValueList plugins = mCore->pluginList(); - QValueList::ConstIterator end = plugins.end(); - QValueList::ConstIterator it = plugins.begin(); + TQValueList plugins = mCore->pluginList(); + TQValueList::ConstIterator end = plugins.end(); + TQValueList::ConstIterator it = plugins.begin(); for ( ; it != end; ++it ) addAboutPlugin( *it ); @@ -62,22 +62,22 @@ void AboutDialog::addAboutPlugin( Kontact::Plugin *plugin ) addAboutData( plugin->title(), plugin->icon(), plugin->aboutData() ); } -void AboutDialog::addAboutData( const QString &title, const QString &icon, +void AboutDialog::addAboutData( const TQString &title, const TQString &icon, const KAboutData *about ) { - QPixmap pixmap = KGlobal::iconLoader()->loadIcon( icon, + TQPixmap pixmap = KGlobal::iconLoader()->loadIcon( icon, KIcon::Desktop, 48 ); - QFrame *topFrame = addPage( title, QString::null, pixmap ); + TQFrame *topFrame = addPage( title, TQString::null, pixmap ); - QBoxLayout *topLayout = new QVBoxLayout( topFrame ); + TQBoxLayout *topLayout = new TQVBoxLayout( topFrame ); if ( !about ) { - QLabel *label = new QLabel( i18n( "No about information available." ), + TQLabel *label = new TQLabel( i18n( "No about information available." ), topFrame ); topLayout->addWidget( label ); } else { - QString text; + TQString text; text += "

" + about->programName() + "
"; @@ -88,7 +88,7 @@ void AboutDialog::addAboutData( const QString &title, const QString &icon, about->copyrightStatement() + "

"; } - QString home = about->homepage(); + TQString home = about->homepage(); if ( !home.isEmpty() ) { text += "" + home + "
"; } @@ -100,17 +100,17 @@ void AboutDialog::addAboutData( const QString &title, const QString &icon, topLayout->addWidget( label ); - QTextEdit *personView = new QTextEdit( topFrame ); + TQTextEdit *personView = new TQTextEdit( topFrame ); personView->setReadOnly( true ); topLayout->addWidget( personView, 1 ); text = ""; - const QValueList authors = about->authors(); + const TQValueList authors = about->authors(); if ( !authors.isEmpty() ) { text += i18n( "

Authors:

" ); - QValueList::ConstIterator it; + TQValueList::ConstIterator it; for ( it = authors.begin(); it != authors.end(); ++it ) { text += formatPerson( (*it).name(), (*it).emailAddress() ); if ( !(*it).task().isEmpty() ) @@ -118,11 +118,11 @@ void AboutDialog::addAboutData( const QString &title, const QString &icon, } } - const QValueList credits = about->credits(); + const TQValueList credits = about->credits(); if ( !credits.isEmpty() ) { text += i18n( "

Thanks to:

" ); - QValueList::ConstIterator it; + TQValueList::ConstIterator it; for ( it = credits.begin(); it != credits.end(); ++it ) { text += formatPerson( (*it).name(), (*it).emailAddress() ); if ( !(*it).task().isEmpty() ) @@ -130,11 +130,11 @@ void AboutDialog::addAboutData( const QString &title, const QString &icon, } } - const QValueList translators = about->translators(); + const TQValueList translators = about->translators(); if ( !translators.isEmpty() ) { text += i18n("

Translators:

"); - QValueList::ConstIterator it; + TQValueList::ConstIterator it; for ( it = translators.begin(); it != translators.end(); ++it ) { text += formatPerson( (*it).name(), (*it).emailAddress() ); } @@ -144,9 +144,9 @@ void AboutDialog::addAboutData( const QString &title, const QString &icon, } } -QString AboutDialog::formatPerson( const QString &name, const QString &email ) +TQString AboutDialog::formatPerson( const TQString &name, const TQString &email ) { - QString text = name; + TQString text = name; if ( !email.isEmpty() ) { text += " <" + email + ">"; } @@ -160,16 +160,16 @@ void AboutDialog::addLicenseText( const KAboutData *about ) if ( !about || about->license().isEmpty() ) return; - QPixmap pixmap = KGlobal::iconLoader()->loadIcon( "signature", + TQPixmap pixmap = KGlobal::iconLoader()->loadIcon( "signature", KIcon::Desktop, 48 ); - QString title = i18n( "%1 License" ).arg( about->programName() ); + TQString title = i18n( "%1 License" ).arg( about->programName() ); - QFrame *topFrame = addPage( title, QString::null, pixmap ); - QBoxLayout *topLayout = new QVBoxLayout( topFrame ); + TQFrame *topFrame = addPage( title, TQString::null, pixmap ); + TQBoxLayout *topLayout = new TQVBoxLayout( topFrame ); KTextBrowser *textBrowser = new KTextBrowser( topFrame ); - textBrowser->setText( QString( "
%1
" ).arg( about->license() ) ); + textBrowser->setText( TQString( "
%1
" ).arg( about->license() ) ); topLayout->addWidget( textBrowser ); } -- cgit v1.2.3