diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kitchensync/src/aboutpage.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'kitchensync/src/aboutpage.cpp')
-rw-r--r-- | kitchensync/src/aboutpage.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kitchensync/src/aboutpage.cpp b/kitchensync/src/aboutpage.cpp index f8110c4d0..0909fa0fc 100644 --- a/kitchensync/src/aboutpage.cpp +++ b/kitchensync/src/aboutpage.cpp @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qfile.h> -#include <qlayout.h> +#include <tqfile.h> +#include <tqlayout.h> #include <kaboutdata.h> #include <kapplication.h> @@ -33,28 +33,28 @@ #include "aboutpage.h" -static QString readFile( const QString &fileName ) +static TQString readFile( const TQString &fileName ) { - QFile file( fileName ); + TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { kdDebug() << "Unable to open file '" << fileName << "'" << endl; - return QCString(); + return TQCString(); } - QString content = QString::fromUtf8( file.readAll() ); + TQString content = TQString::fromUtf8( file.readAll() ); file.close(); return content; } -AboutPage::AboutPage( QWidget *parent ) - : QWidget( parent, "AboutPage" ) +AboutPage::AboutPage( TQWidget *parent ) + : TQWidget( parent, "AboutPage" ) { - QVBoxLayout *layout = new QVBoxLayout( this ); + TQVBoxLayout *layout = new TQVBoxLayout( this ); - QString location = locate( "data", "kitchensync/about/main.html" ); - QString content = readFile( location ); + TQString location = locate( "data", "kitchensync/about/main.html" ); + TQString content = readFile( location ); content = content.arg( locate( "data", "libkdepim/about/kde_infopage.css" ) ); if ( kapp->reverseLayout() ) content = content.arg( "@import \"%1\";" ).arg( locate( "data", "libkdepim/about/kde_infopage_rtl.css" ) ); @@ -66,21 +66,21 @@ AboutPage::AboutPage( QWidget *parent ) part->begin( KURL( location ) ); - QString appName( i18n( "KDE KitchenSync" ) ); - QString catchPhrase( i18n( "Get Synchronized!" ) ); - QString quickDescription( i18n( "The KDE Synchronization Tool" ) ); + TQString appName( i18n( "KDE KitchenSync" ) ); + TQString catchPhrase( i18n( "Get Synchronized!" ) ); + TQString quickDescription( i18n( "The KDE Synchronization Tool" ) ); - part->write( content.arg( QFont().pointSize() + 2 ).arg( appName ) + part->write( content.arg( TQFont().pointSize() + 2 ).arg( appName ) .arg( catchPhrase ).arg( quickDescription ).arg( htmlText() ) ); part->end(); connect( part->browserExtension(), - SIGNAL( openURLRequest( const KURL&, const KParts::URLArgs& ) ), - SLOT( handleUrl( const KURL& ) ) ); + TQT_SIGNAL( openURLRequest( const KURL&, const KParts::URLArgs& ) ), + TQT_SLOT( handleUrl( const KURL& ) ) ); connect( part->browserExtension(), - SIGNAL( createNewWindow( const KURL&, const KParts::URLArgs& ) ), - SLOT( handleUrl( const KURL& ) ) ); + TQT_SIGNAL( createNewWindow( const KURL&, const KParts::URLArgs& ) ), + TQT_SLOT( handleUrl( const KURL& ) ) ); } void AboutPage::handleUrl( const KURL &url ) @@ -92,16 +92,16 @@ void AboutPage::handleUrl( const KURL &url ) new KRun( url, this ); } -QString AboutPage::htmlText() const +TQString AboutPage::htmlText() const { KIconLoader *iconloader = KGlobal::iconLoader(); int iconSize = iconloader->currentSize( KIcon::Desktop ); - QString handbook_icon_path = iconloader->iconPath( "contents2", KIcon::Desktop ); - QString html_icon_path = iconloader->iconPath( "html", KIcon::Desktop ); - QString wizard_icon_path = iconloader->iconPath( "wizard", KIcon::Desktop ); + TQString handbook_icon_path = iconloader->iconPath( "contents2", KIcon::Desktop ); + TQString html_icon_path = iconloader->iconPath( "html", KIcon::Desktop ); + TQString wizard_icon_path = iconloader->iconPath( "wizard", KIcon::Desktop ); - QString info = i18n( "<h2 style='text-align:center; margin-top: 0px;'>Welcome to KitchenSync %1</h2>" + TQString info = i18n( "<h2 style='text-align:center; margin-top: 0px;'>Welcome to KitchenSync %1</h2>" "<p>%1</p>" "<table align=\"center\">" "<tr><td><a href=\"%1\"><img width=\"%1\" height=\"%1\" src=\"%1\" /></a></td>" |