summaryrefslogtreecommitdiffstats
path: root/kaddressbook/printing/printstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/printing/printstyle.cpp')
-rw-r--r--kaddressbook/printing/printstyle.cpp20
1 files changed, 10 insertions, 10 deletions
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 <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 );
}