summaryrefslogtreecommitdiffstats
path: root/src/gvcore/printdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/printdialog.cpp')
-rw-r--r--src/gvcore/printdialog.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/gvcore/printdialog.cpp b/src/gvcore/printdialog.cpp
index 98524af..1f07979 100644
--- a/src/gvcore/printdialog.cpp
+++ b/src/gvcore/printdialog.cpp
@@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// TQt
#include <tqcheckbox.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpainter.h>
#include <tqradiobutton.h>
#include <tqvbuttongroup.h>
@@ -82,8 +82,8 @@ PrintDialogPage::PrintDialogPage( Document* document, TQWidget *parent, const ch
mContent = new PrintDialogPageBase(this);
setTitle( mContent->caption() );
- TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
- tqlayout->addWidget( mContent );
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
+ layout->addWidget( mContent );
connect(mContent->mWidth, TQT_SIGNAL( valueChanged( double )), TQT_SLOT( slotWidthChanged( double )));
connect(mContent->mHeight, TQT_SIGNAL( valueChanged( double )), TQT_SLOT( slotHeightChanged( double )));
@@ -169,57 +169,57 @@ void PrintDialogPage::setScaleHeight( double value ) {
}
int PrintDialogPage::getPosition(const TQString& align) {
- int tqalignment;
+ int alignment;
if (align == i18n("Central-Left")) {
- tqalignment = TQt::AlignLeft | TQt::AlignVCenter;
+ alignment = TQt::AlignLeft | TQt::AlignVCenter;
} else if (align == i18n("Central-Right")) {
- tqalignment = TQt::AlignRight | TQt::AlignVCenter;
+ alignment = TQt::AlignRight | TQt::AlignVCenter;
} else if (align == i18n("Top-Left")) {
- tqalignment = TQt::AlignTop | TQt::AlignLeft;
+ alignment = TQt::AlignTop | TQt::AlignLeft;
} else if (align == i18n("Top-Right")) {
- tqalignment = TQt::AlignTop | TQt::AlignRight;
+ alignment = TQt::AlignTop | TQt::AlignRight;
} else if (align == i18n("Bottom-Left")) {
- tqalignment = TQt::AlignBottom | TQt::AlignLeft;
+ alignment = TQt::AlignBottom | TQt::AlignLeft;
} else if (align == i18n("Bottom-Right")) {
- tqalignment = TQt::AlignBottom | TQt::AlignRight;
+ alignment = TQt::AlignBottom | TQt::AlignRight;
} else if (align == i18n("Top-Central")) {
- tqalignment = TQt::AlignTop | TQt::AlignHCenter;
+ alignment = TQt::AlignTop | TQt::AlignHCenter;
} else if (align == i18n("Bottom-Central")) {
- tqalignment = TQt::AlignBottom | TQt::AlignHCenter;
+ alignment = TQt::AlignBottom | TQt::AlignHCenter;
} else {
// Central
- tqalignment = TQt::AlignCenter; // TQt::AlignHCenter || TQt::AlignVCenter
+ alignment = TQt::AlignCenter; // TQt::AlignHCenter || TQt::AlignVCenter
}
- return tqalignment;
+ return alignment;
}
TQString PrintDialogPage::setPosition(int align) {
- TQString tqalignment;
+ TQString alignment;
if (align == (TQt::AlignLeft | TQt::AlignVCenter)) {
- tqalignment = i18n("Central-Left");
+ alignment = i18n("Central-Left");
} else if (align == (TQt::AlignRight | TQt::AlignVCenter)) {
- tqalignment = i18n("Central-Right");
+ alignment = i18n("Central-Right");
} else if (align == (TQt::AlignTop | TQt::AlignLeft)) {
- tqalignment = i18n("Top-Left");
+ alignment = i18n("Top-Left");
} else if (align == (TQt::AlignTop | TQt::AlignRight)) {
- tqalignment = i18n("Top-Right");
+ alignment = i18n("Top-Right");
} else if (align == (TQt::AlignBottom | TQt::AlignLeft)) {
- tqalignment = i18n("Bottom-Left");
+ alignment = i18n("Bottom-Left");
} else if (align == (TQt::AlignBottom | TQt::AlignRight)) {
- tqalignment = i18n("Bottom-Right");
+ alignment = i18n("Bottom-Right");
} else if (align == (TQt::AlignTop | TQt::AlignHCenter)) {
- tqalignment = i18n("Top-Central");
+ alignment = i18n("Top-Central");
} else if (align == (TQt::AlignBottom | TQt::AlignHCenter)) {
- tqalignment = i18n("Bottom-Central");
+ alignment = i18n("Bottom-Central");
} else {
// Central: TQt::AlignCenter or (TQt::AlignHCenter || TQt::AlignVCenter)
- tqalignment = i18n("Central");
+ alignment = i18n("Central");
}
- return tqalignment;
+ return alignment;
}
// SLOTS