summaryrefslogtreecommitdiffstats
path: root/kontact/src/aboutdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kontact/src/aboutdialog.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/src/aboutdialog.cpp')
-rw-r--r--kontact/src/aboutdialog.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kontact/src/aboutdialog.cpp b/kontact/src/aboutdialog.cpp
index d0a43721a..19e9d9ea7 100644
--- a/kontact/src/aboutdialog.cpp
+++ b/kontact/src/aboutdialog.cpp
@@ -33,8 +33,8 @@
#include <kactivelabel.h>
#include <ktextbrowser.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kdebug.h>
@@ -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<Plugin*> plugins = mCore->pluginList();
- QValueList<Plugin*>::ConstIterator end = plugins.end();
- QValueList<Plugin*>::ConstIterator it = plugins.begin();
+ TQValueList<Plugin*> plugins = mCore->pluginList();
+ TQValueList<Plugin*>::ConstIterator end = plugins.end();
+ TQValueList<Plugin*>::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 += "<p><b>" + about->programName() + "</b><br>";
@@ -88,7 +88,7 @@ void AboutDialog::addAboutData( const QString &title, const QString &icon,
about->copyrightStatement() + "</p>";
}
- QString home = about->homepage();
+ TQString home = about->homepage();
if ( !home.isEmpty() ) {
text += "<a href=\"" + home + "\">" + home + "</a><br>";
}
@@ -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<KAboutPerson> authors = about->authors();
+ const TQValueList<KAboutPerson> authors = about->authors();
if ( !authors.isEmpty() ) {
text += i18n( "<p><b>Authors:</b></p>" );
- QValueList<KAboutPerson>::ConstIterator it;
+ TQValueList<KAboutPerson>::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<KAboutPerson> credits = about->credits();
+ const TQValueList<KAboutPerson> credits = about->credits();
if ( !credits.isEmpty() ) {
text += i18n( "<p><b>Thanks to:</b></p>" );
- QValueList<KAboutPerson>::ConstIterator it;
+ TQValueList<KAboutPerson>::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<KAboutTranslator> translators = about->translators();
+ const TQValueList<KAboutTranslator> translators = about->translators();
if ( !translators.isEmpty() ) {
text += i18n("<p><b>Translators:</b></p>");
- QValueList<KAboutTranslator>::ConstIterator it;
+ TQValueList<KAboutTranslator>::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 += " &lt;<a href=\"mailto:" + email + "\">" + email + "</a>&gt;";
}
@@ -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( "<pre>%1</pre>" ).arg( about->license() ) );
+ textBrowser->setText( TQString( "<pre>%1</pre>" ).arg( about->license() ) );
topLayout->addWidget( textBrowser );
}