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 --- kaddressbook/printing/printstyle.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kaddressbook/printing/printstyle.cpp') diff --git a/kaddressbook/printing/printstyle.cpp b/kaddressbook/printing/printstyle.cpp index a3cf537d..90b19623 100644 --- a/kaddressbook/printing/printstyle.cpp +++ b/kaddressbook/printing/printstyle.cpp @@ -24,7 +24,7 @@ #include #include -#include +#include #include "printstyle.h" #include "printingwizard.h" @@ -33,7 +33,7 @@ using namespace KABPrinting; PrintStyle::PrintStyle( PrintingWizard* parent, const char* name ) - : QObject( parent, name ), mWizard( parent ), mSortField( 0 ) + : TQObject( parent, name ), mWizard( parent ), mSortField( 0 ) { } @@ -41,20 +41,20 @@ PrintStyle::~PrintStyle() { } -const QPixmap& PrintStyle::preview() +const TQPixmap& PrintStyle::preview() { return mPreview; } -void PrintStyle::setPreview( const QPixmap& image ) +void PrintStyle::setPreview( const TQPixmap& image ) { mPreview = image; } -bool PrintStyle::setPreview( const QString& fileName ) +bool PrintStyle::setPreview( const TQString& fileName ) { - QPixmap preview; - QString path = locate( "appdata", "printing/" + fileName ); + TQPixmap preview; + TQString path = locate( "appdata", "printing/" + fileName ); if ( path.isEmpty() ) { kdDebug(5720) << "PrintStyle::setPreview: preview not locatable." << endl; return false; @@ -74,7 +74,7 @@ PrintingWizard *PrintStyle::wizard() return mWizard; } -void PrintStyle::addPage( QWidget *page, const QString &title ) +void PrintStyle::addPage( TQWidget *page, const TQString &title ) { if ( mPageList.find( page ) == -1 ) { // not yet in the list mPageList.append( page ); @@ -84,7 +84,7 @@ void PrintStyle::addPage( QWidget *page, const QString &title ) void PrintStyle::showPages() { - QWidget *wdg = 0; + TQWidget *wdg = 0; int i = 0; for ( wdg = mPageList.first(); wdg; wdg = mPageList.next(), ++i ) { mWizard->addPage( wdg, mPageTitles[ i ] ); @@ -98,7 +98,7 @@ void PrintStyle::showPages() void PrintStyle::hidePages() { - for ( QWidget *wdg = mPageList.first(); wdg; wdg = mPageList.next() ) + for ( TQWidget *wdg = mPageList.first(); wdg; wdg = mPageList.next() ) mWizard->removePage( wdg ); } -- cgit v1.2.3