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 --- kitchensync/src/aboutpage.cpp | 48 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kitchensync/src/aboutpage.cpp') 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 -#include +#include +#include #include #include @@ -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( "

Welcome to KitchenSync %1

" + TQString info = i18n( "

Welcome to KitchenSync %1

" "

%1

" "" "" -- cgit v1.2.1