summaryrefslogtreecommitdiffstats
path: root/kaddressbook/printing/detailledstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/printing/detailledstyle.cpp')
-rw-r--r--kaddressbook/printing/detailledstyle.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kaddressbook/printing/detailledstyle.cpp b/kaddressbook/printing/detailledstyle.cpp
index 78283a080..39046481c 100644
--- a/kaddressbook/printing/detailledstyle.cpp
+++ b/kaddressbook/printing/detailledstyle.cpp
@@ -22,18 +22,18 @@
*/
#include <kapplication.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <kcolorbutton.h>
#include <kconfig.h>
#include <kdebug.h>
#include <kdialog.h>
#include <kfontcombo.h>
#include <kglobalsettings.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <knuminput.h>
-#include <qpaintdevicemetrics.h>
-#include <qpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqpainter.h>
#include <kprinter.h>
#include <kstandarddirs.h>
@@ -70,10 +70,10 @@ DetailledPrintStyle::DetailledPrintStyle( PrintingWizard *parent, const char *na
mPrintProgress( 0 )
{
KConfig *config;
- QFont font;
+ TQFont font;
bool kdeFonts;
- QFont standard = KGlobalSettings::generalFont();
- QFont fixed = KGlobalSettings::fixedFont();
+ TQFont standard = KGlobalSettings::generalFont();
+ TQFont fixed = KGlobalSettings::fixedFont();
setPreview( "detailed-style.png" );
@@ -130,19 +130,19 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
progress->setProgress( 0 );
bool useKDEFonts;
- QFont font;
- QColor foreColor = Qt::black;
- QColor headerColor = Qt::white;
+ TQFont font;
+ TQColor foreColor = Qt::black;
+ TQColor headerColor = Qt::white;
bool useHeaderColor = true;
- QColor backColor = Qt::black;
+ TQColor backColor = Qt::black;
bool useBGColor;
// save, always available defaults:
- QFont header = QFont("Helvetica", 12, QFont::Normal);
- QFont headlines = QFont("Helvetica", 12, QFont::Normal, true);
- QFont body = QFont("Helvetica", 12, QFont::Normal);
- QFont fixed = QFont("Courier", 12, QFont::Normal);
- QFont comment = QFont("Helvetica", 10, QFont::Normal);
+ TQFont header = TQFont("Helvetica", 12, TQFont::Normal);
+ TQFont headlines = TQFont("Helvetica", 12, TQFont::Normal, true);
+ TQFont body = TQFont("Helvetica", 12, TQFont::Normal);
+ TQFont fixed = TQFont("Courier", 12, TQFont::Normal);
+ TQFont comment = TQFont("Helvetica", 10, TQFont::Normal);
// store the configuration settings:
KConfig *config = kapp->config();
@@ -163,7 +163,7 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
}
if ( mPageAppearance->cbStandardFonts->isChecked() ) {
- QFont standard = KGlobalSettings::generalFont();
+ TQFont standard = KGlobalSettings::generalFont();
header = standard;
headlines = standard;
body = standard;
@@ -208,7 +208,7 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
KPrinter *printer = wizard()->printer();
- QPainter painter;
+ TQPainter painter;
progress->addMessage( i18n( "Setting up margins and spacing" ) );
int marginTop = 0,
marginLeft = 64, // to allow stapling, need refinement with two-side prints
@@ -220,7 +220,7 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
painter.begin( printer );
printer->setFullPage( true ); // use whole page
- QPaintDeviceMetrics metrics( printer );
+ TQPaintDeviceMetrics metrics( printer );
left = QMAX( printer->margins().width(), marginLeft );
top = QMAX( printer->margins().height(), marginTop );
@@ -231,7 +231,7 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
progress->addMessage( i18n( "Printing" ) );
printEntries( contacts, printer, &painter,
- QRect( 0, 0, metrics.width(), metrics.height() ) );
+ TQRect( 0, 0, metrics.width(), metrics.height() ) );
progress->addMessage( i18n( "Done" ) );
painter.end();
@@ -241,10 +241,10 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
bool DetailledPrintStyle::printEntries( const KABC::Addressee::List &contacts,
KPrinter *printer,
- QPainter *painter,
- const QRect &window)
+ TQPainter *painter,
+ const TQRect &window)
{
- QRect brect;
+ TQRect brect;
int ypos = 0, count = 0;
KABC::Addressee::List::ConstIterator it;
@@ -283,7 +283,7 @@ PrintStyle *DetailledPrintStyleFactory::create() const
return new DetailledPrintStyle( mParent, mName );
}
-QString DetailledPrintStyleFactory::description() const
+TQString DetailledPrintStyleFactory::description() const
{
return i18n( "Detailed Style" );
}