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 /kaddressbook/printing/printstyle.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 'kaddressbook/printing/printstyle.cpp')
-rw-r--r-- | kaddressbook/printing/printstyle.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kaddressbook/printing/printstyle.cpp b/kaddressbook/printing/printstyle.cpp index a3cf537d4..90b196237 100644 --- a/kaddressbook/printing/printstyle.cpp +++ b/kaddressbook/printing/printstyle.cpp @@ -24,7 +24,7 @@ #include <kstandarddirs.h> #include <kdebug.h> -#include <qwidget.h> +#include <tqwidget.h> #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 ); } |