diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/printing/detailledstyle.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/printing/detailledstyle.cpp')
-rw-r--r-- | kaddressbook/printing/detailledstyle.cpp | 32 |
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 ) { } |