From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kviewshell/kprintDialogPage_pageoptions.cpp | 56 ++++++++++++++--------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'kviewshell/kprintDialogPage_pageoptions.cpp') diff --git a/kviewshell/kprintDialogPage_pageoptions.cpp b/kviewshell/kprintDialogPage_pageoptions.cpp index dbadd759..c0c4b15e 100644 --- a/kviewshell/kprintDialogPage_pageoptions.cpp +++ b/kviewshell/kprintDialogPage_pageoptions.cpp @@ -10,17 +10,17 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include "kprintDialogPage_pageoptions.h" -KPrintDialogPage_PageOptions::KPrintDialogPage_PageOptions( QWidget *parent, const char *name ) +KPrintDialogPage_PageOptions::KPrintDialogPage_PageOptions( TQWidget *parent, const char *name ) : KPrintDialogPage( parent, name ) { setTitle( i18n("Page Size & Placement") ); @@ -31,27 +31,27 @@ KPrintDialogPage_PageOptions::KPrintDialogPage_PageOptions( QWidget *parent, con checkBox_shrink = 0; checkBox_expand = 0; - kprintDialogPage_pageoptions_baseLayout = new QVBoxLayout( this, 11, 6, "kprintDialogPage_pageoptions_baseLayout"); + kprintDialogPage_pageoptions_baseLayout = new TQVBoxLayout( this, 11, 6, "kprintDialogPage_pageoptions_baseLayout"); if (kprintDialogPage_pageoptions_baseLayout == 0) { kdError(1223) << "KPrintDialogPage_PageOptions::KPrintDialogPage_PageOptions() cannot create layout" << endl; return; } - checkBox_center = new QCheckBox( this, "checkBox_center" ); + checkBox_center = new TQCheckBox( this, "checkBox_center" ); if (checkBox_center != 0) { checkBox_center->setText( i18n( "Center the page on paper" ) ); - QToolTip::add( checkBox_center, i18n( "If this option is enabled, the pages are centered on the paper." ) ); - QWhatsThis::add( checkBox_center, i18n( "

If this option is enabled, the pages will be printed centered on the paper; this makes " + TQToolTip::add( checkBox_center, i18n( "If this option is enabled, the pages are centered on the paper." ) ); + TQWhatsThis::add( checkBox_center, i18n( "

If this option is enabled, the pages will be printed centered on the paper; this makes " "more visually-appealing printouts.

" "

If the option is not enabled, all pages will be placed in the top-left corner of the paper.

" ) ); kprintDialogPage_pageoptions_baseLayout->addWidget( checkBox_center ); } - checkBox_rotate = new QCheckBox( this, "checkBox_rotate" ); + checkBox_rotate = new TQCheckBox( this, "checkBox_rotate" ); if (checkBox_rotate != 0) { checkBox_rotate->setText( i18n( "Automatically choose landscape or portrait orientation" ) ); - QToolTip::add( checkBox_rotate, i18n( "If this option is enabled, some pages might be rotated to better fit the paper size." ) ); - QWhatsThis::add( checkBox_rotate, i18n( "

If this option is enabled, landscape or portrait orientation are automatically chosen on a " + TQToolTip::add( checkBox_rotate, i18n( "If this option is enabled, some pages might be rotated to better fit the paper size." ) ); + TQWhatsThis::add( checkBox_rotate, i18n( "

If this option is enabled, landscape or portrait orientation are automatically chosen on a " "page-by-page basis. This makes better use of the paper and gives more visually-" "appealing printouts.

" "

Note: This option overrides the Portrait/Landscape option chosen in the printer " @@ -60,30 +60,30 @@ KPrintDialogPage_PageOptions::KPrintDialogPage_PageOptions( QWidget *parent, con kprintDialogPage_pageoptions_baseLayout->addWidget( checkBox_rotate ); } - QFrame *line = new QFrame( this, "line1" ); + TQFrame *line = new TQFrame( this, "line1" ); if (line != 0) { - line->setFrameShape( QFrame::HLine ); - line->setFrameShadow( QFrame::Sunken ); - line->setFrameShape( QFrame::HLine ); + line->setFrameShape( TQFrame::HLine ); + line->setFrameShadow( TQFrame::Sunken ); + line->setFrameShape( TQFrame::HLine ); kprintDialogPage_pageoptions_baseLayout->addWidget( line ); } - checkBox_shrink = new QCheckBox( this, "checkBox_shrink" ); + checkBox_shrink = new TQCheckBox( this, "checkBox_shrink" ); if (checkBox_shrink != 0) { checkBox_shrink->setText( i18n( "Shrink oversized pages to fit paper size" ) ); - QToolTip::add( checkBox_shrink, i18n( "If this option is enabled, large pages that would not fit the printer's paper size will be shrunk." ) ); - QWhatsThis::add( checkBox_shrink, i18n( "

If this option is enabled, large pages that would not fit the printer's paper size will be " + TQToolTip::add( checkBox_shrink, i18n( "If this option is enabled, large pages that would not fit the printer's paper size will be shrunk." ) ); + TQWhatsThis::add( checkBox_shrink, i18n( "

If this option is enabled, large pages that would not fit the printer's paper size will be " "shrunk so that edges won't be cut off during printing.

" "

Note: If this option is enabled, and if the pages in your document have different sizes, " "then different pages might be shrunk by different scaling factors.

" ) ); kprintDialogPage_pageoptions_baseLayout->addWidget( checkBox_shrink ); } - checkBox_expand = new QCheckBox( this, "checkBox_expand" ); + checkBox_expand = new TQCheckBox( this, "checkBox_expand" ); if (checkBox_expand != 0) { checkBox_expand->setText( i18n( "Expand small pages to fit paper size" ) ); - QToolTip::add( checkBox_expand, i18n( "If this option is enabled, small pages will be enlarged so that they fit the printer's paper size." ) ); - QWhatsThis::add( checkBox_expand, i18n( "

If this option is enabled, small pages will be enlarged so that they fit the printer's " + TQToolTip::add( checkBox_expand, i18n( "If this option is enabled, small pages will be enlarged so that they fit the printer's paper size." ) ); + TQWhatsThis::add( checkBox_expand, i18n( "

If this option is enabled, small pages will be enlarged so that they fit the printer's " "paper size.

" "

Note: If this option is enabled, and if the pages in your document have different sizes, " "then different pages might be expanded by different scaling factors.

" ) ); @@ -91,13 +91,13 @@ KPrintDialogPage_PageOptions::KPrintDialogPage_PageOptions( QWidget *parent, con } - resize( QSize(319, 166).expandedTo(minimumSizeHint()) ); + resize( TQSize(319, 166).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } -void KPrintDialogPage_PageOptions::getOptions( QMap& opts, bool incldef ) +void KPrintDialogPage_PageOptions::getOptions( TQMap& opts, bool incldef ) { // Save options, taking default values into consideration: by // default "center" is checked, "expand" and "shrink" are @@ -134,12 +134,12 @@ void KPrintDialogPage_PageOptions::getOptions( QMap& opts, bool } -void KPrintDialogPage_PageOptions::setOptions( const QMap& opts ) +void KPrintDialogPage_PageOptions::setOptions( const TQMap& opts ) { // Sets the centering option. By default, this option is // checked. Warning: All default values are also coded into // getOptions() and kmultipage::print(..). - QString op = opts[ "kde-kviewshell-centerpage" ]; + TQString op = opts[ "kde-kviewshell-centerpage" ]; if (checkBox_center != 0) checkBox_center->setChecked( op != "false" ); @@ -160,7 +160,7 @@ void KPrintDialogPage_PageOptions::setOptions( const QMap& opts } -bool KPrintDialogPage_PageOptions::isValid( QString& ) +bool KPrintDialogPage_PageOptions::isValid( TQString& ) { return true; } -- cgit v1.2.3