diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kpresenter/KPrDuplicateObjDia.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrDuplicateObjDia.cpp')
-rw-r--r-- | kpresenter/KPrDuplicateObjDia.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kpresenter/KPrDuplicateObjDia.cpp b/kpresenter/KPrDuplicateObjDia.cpp index 4b72e1de..3396e438 100644 --- a/kpresenter/KPrDuplicateObjDia.cpp +++ b/kpresenter/KPrDuplicateObjDia.cpp @@ -19,23 +19,23 @@ */ #include <klocale.h> -#include <qvbox.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qbuttongroup.h> +#include <tqvbox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqbuttongroup.h> #include "KPrDuplicateObjDia.h" #include "KPrPage.h" #include <knuminput.h> -#include <qlineedit.h> +#include <tqlineedit.h> #include <KoUnit.h> #include <knumvalidator.h> #include "KPrDocument.h" #include <kseparator.h> #include <KoUnitWidgets.h> -KPrDuplicatObjDia::KPrDuplicatObjDia( QWidget *parent, KPrDocument * _doc, const char *name) - : KDialogBase( parent, name, true, "", Ok | Cancel, Ok, true ) +KPrDuplicatObjDia::KPrDuplicatObjDia( TQWidget *tqparent, KPrDocument * _doc, const char *name) + : KDialogBase( tqparent, name, true, "", Ok | Cancel, Ok, true ) { m_doc=_doc; KoUnit::Unit unit = m_doc->unit(); @@ -44,28 +44,28 @@ KPrDuplicatObjDia::KPrDuplicatObjDia( QWidget *parent, KPrDocument * _doc, const setCaption( i18n("Duplicate Object") ); - QVBox *page = makeVBoxMainWidget(); - QLabel *lab=new QLabel(i18n("Number of copies:"), page); + TQVBox *page = makeVBoxMainWidget(); + TQLabel *lab=new TQLabel(i18n("Number of copies:"), page); m_nbCopy = new KIntNumInput( 1, page ); m_nbCopy->setRange( 1 , 10, 1); KSeparator *tmp=new KSeparator(page); - lab=new QLabel(i18n("Rotation angle:"), page); + lab=new TQLabel(i18n("Rotation angle:"), page); m_rotation = new KDoubleNumInput( page, "customInput" ); m_rotation->setRange(0.0, 360, 1, false); tmp=new KSeparator(page); - lab=new QLabel(i18n("Increase width:"), page); + lab=new TQLabel(i18n("Increase width:"), page); m_increaseX= new KoUnitDoubleSpinBox( page ); m_increaseX->setMinValue(0.0); m_increaseX->setMaxValue(pageRect.width()); m_increaseX->changeValue( 1 ); m_increaseX->setUnit(unit); - lab=new QLabel(i18n("Increase height:"), page); + lab=new TQLabel(i18n("Increase height:"), page); m_increaseY= new KoUnitDoubleSpinBox( page ); m_increaseY->setMinValue(0.0); m_increaseY->setMaxValue(pageRect.height()); @@ -73,7 +73,7 @@ KPrDuplicatObjDia::KPrDuplicatObjDia( QWidget *parent, KPrDocument * _doc, const m_increaseY->setUnit(unit); tmp=new KSeparator(page); - lab=new QLabel(i18n("Move X:"), page); + lab=new TQLabel(i18n("Move X:"), page); m_moveX= new KoUnitDoubleSpinBox( page ); m_moveX->setMinValue(0.0); m_moveX->setMaxValue(pageRect.width()); @@ -81,7 +81,7 @@ KPrDuplicatObjDia::KPrDuplicatObjDia( QWidget *parent, KPrDocument * _doc, const m_moveX->setUnit(unit); - lab=new QLabel(i18n("Move Y:"), page); + lab=new TQLabel(i18n("Move Y:"), page); m_moveY= new KoUnitDoubleSpinBox( page ); m_moveY->setMinValue(0.0); m_moveY->setMaxValue(pageRect.height()); @@ -103,22 +103,22 @@ double KPrDuplicatObjDia::angle() const double KPrDuplicatObjDia::increaseX() const { - return QMAX(0, m_increaseX->value()); + return TQMAX(0, m_increaseX->value()); } double KPrDuplicatObjDia::increaseY() const { - return QMAX(0, m_increaseY->value()); + return TQMAX(0, m_increaseY->value()); } double KPrDuplicatObjDia::moveX() const { - return QMAX(0, m_moveX->value()); + return TQMAX(0, m_moveX->value()); } double KPrDuplicatObjDia::moveY() const { - return QMAX(0, m_moveY->value()); + return TQMAX(0, m_moveY->value()); } |