summaryrefslogtreecommitdiffstats
path: root/kontact/src/aboutdialog.cpp
diff options
context:
space:
mode:
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 );
}