From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kviewshell/pageSizeWidget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kviewshell/pageSizeWidget.cpp') diff --git a/kviewshell/pageSizeWidget.cpp b/kviewshell/pageSizeWidget.cpp index a745d1ef..5446fd53 100644 --- a/kviewshell/pageSizeWidget.cpp +++ b/kviewshell/pageSizeWidget.cpp @@ -21,18 +21,18 @@ -// Constructs a pageSizeWidget_base which is a child of 'parent', with +// Constructs a pageSizeWidget_base which is a child of 'tqparent', with // the name 'name' and widget flags set to 'f'. -pageSizeWidget::pageSizeWidget( TQWidget* parent, const char* name, WFlags fl ) - : pageSizeWidget_base( parent, name, fl ) +pageSizeWidget::pageSizeWidget( TQWidget* tqparent, const char* name, WFlags fl ) + : pageSizeWidget_base( tqparent, name, fl ) { connect(&chosenSize, TQT_SIGNAL(sizeChanged(const SimplePageSize&)), previewer, TQT_SLOT(setSize(const SimplePageSize&))); - // Set up the formatChoice QComboBox + // Set up the formatChoice TQComboBox formatChoice->insertItem(i18n("Custom Size")); formatChoice->insertStringList(chosenSize.pageSizeNames()); - // Activate the proper entry in the QComboBox + // Activate the proper entry in the TQComboBox if (chosenSize.formatName().isNull()) { orientationChoice->setEnabled(false); formatChoice->setCurrentItem(0); @@ -57,8 +57,8 @@ pageSizeWidget::pageSizeWidget( TQWidget* parent, const char* name, WFlags fl ) // Allow entries between 0 and 1200. More filtering is done by the // pageSize class, which silently ignores values which are out of // range. - widthInput->setValidator(new TQDoubleValidator(0.0, 1200.0, 1, this, "widthValidator")); - heightInput->setValidator(new TQDoubleValidator(0.0, 1200.0, 1, this, "heightValidator")); + widthInput->setValidator(new TQDoubleValidator(0.0, 1200.0, 1, TQT_TQOBJECT(this), "widthValidator")); + heightInput->setValidator(new TQDoubleValidator(0.0, 1200.0, 1, TQT_TQOBJECT(this), "heightValidator")); } @@ -120,7 +120,7 @@ void pageSizeWidget::unitsChanged(int) if (formatChoice->currentItem() != 0) fillTextFields(); else - input(TQString::null); + input(TQString()); } -- cgit v1.2.1