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.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kaddressbook/printing/detailledstyle.cpp b/kaddressbook/printing/detailledstyle.cpp
index 4cd597801..13e4fb4e4 100644
--- a/kaddressbook/printing/detailledstyle.cpp
+++ b/kaddressbook/printing/detailledstyle.cpp
@@ -17,8 +17,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include <kapplication.h>
@@ -63,9 +63,9 @@ const char *ContactHeaderForeColor = "ContactHeaderForeColor";
const char *ContactHeaderBGColor = "ContactHeaderBGColor";
-DetailledPrintStyle::DetailledPrintStyle( PrintingWizard *parent, const char *name )
- : PrintStyle( parent, name ),
- mPageAppearance( new AppearancePage( parent, "AppearancePage" ) ),
+DetailledPrintStyle::DetailledPrintStyle( PrintingWizard *tqparent, const char *name )
+ : PrintStyle( tqparent, name ),
+ mPageAppearance( new AppearancePage( tqparent, "AppearancePage" ) ),
mPainter( 0 ),
mPrintProgress( 0 )
{
@@ -108,9 +108,9 @@ DetailledPrintStyle::DetailledPrintStyle( PrintingWizard *parent, const char *na
mPageAppearance->cbBackgroundColor->setChecked(
config->readBoolEntry( ColoredContactHeaders, true ) );
mPageAppearance->kcbHeaderBGColor->setColor(
- config->readColorEntry( ContactHeaderBGColor, &Qt::black ) );
+ config->readColorEntry( ContactHeaderBGColor, &TQt::black ) );
mPageAppearance->kcbHeaderTextColor->setColor(
- config->readColorEntry( ContactHeaderForeColor, &Qt::white ) );
+ config->readColorEntry( ContactHeaderForeColor, &TQt::white ) );
mPageAppearance->tqlayout()->setMargin( KDialog::marginHint() );
mPageAppearance->tqlayout()->setSpacing( KDialog::spacingHint() );
@@ -131,10 +131,10 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
bool useKDEFonts;
TQFont font;
- TQColor foreColor = Qt::black;
- TQColor headerColor = Qt::white;
+ TQColor foreColor = TQt::black;
+ TQColor headerColor = TQt::white;
bool useHeaderColor = true;
- TQColor backColor = Qt::black;
+ TQColor backColor = TQt::black;
bool useBGColor;
// save, always available defaults:
@@ -222,10 +222,10 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
TQPaintDeviceMetrics metrics( printer );
- left = QMAX( printer->margins().width(), marginLeft );
- top = QMAX( printer->margins().height(), marginTop );
- width = metrics.width() - left - QMAX( printer->margins().width(), marginRight );
- height = metrics.height() - top - QMAX( printer->margins().height(), marginBottom );
+ left = TQMAX( printer->margins().width(), marginLeft );
+ top = TQMAX( printer->margins().height(), marginTop );
+ width = metrics.width() - left - TQMAX( printer->margins().width(), marginRight );
+ height = metrics.height() - top - TQMAX( printer->margins().height(), marginBottom );
painter.setViewport( left, top, width, height );
progress->addMessage( i18n( "Printing" ) );
@@ -272,9 +272,9 @@ bool DetailledPrintStyle::printEntries( const KABC::Addressee::List &contacts,
return true;
}
-DetailledPrintStyleFactory::DetailledPrintStyleFactory( PrintingWizard *parent,
+DetailledPrintStyleFactory::DetailledPrintStyleFactory( PrintingWizard *tqparent,
const char *name )
- : PrintStyleFactory( parent, name )
+ : PrintStyleFactory( tqparent, name )
{
}