diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:55:46 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:55:46 -0600 |
commit | 676f6ed378c861a872de8cfce3dd5efe1780f769 (patch) | |
tree | d2b21aa5311322aadc3c5c64a4932fdf371acc98 /src/gvcore/printdialog.cpp | |
parent | 2b7143e0539396c75306f6e78bf0a5641ed1acfc (diff) | |
download | gwenview-676f6ed378c861a872de8cfce3dd5efe1780f769.tar.gz gwenview-676f6ed378c861a872de8cfce3dd5efe1780f769.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 2b7143e0539396c75306f6e78bf0a5641ed1acfc.
Diffstat (limited to 'src/gvcore/printdialog.cpp')
-rw-r--r-- | src/gvcore/printdialog.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/gvcore/printdialog.cpp b/src/gvcore/printdialog.cpp index 1f07979..98524af 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 <layout.h> +#include <tqlayout.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 *layout = new TQVBoxLayout( this ); - layout->addWidget( mContent ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); + tqlayout->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 alignment; + int tqalignment; if (align == i18n("Central-Left")) { - alignment = TQt::AlignLeft | TQt::AlignVCenter; + tqalignment = TQt::AlignLeft | TQt::AlignVCenter; } else if (align == i18n("Central-Right")) { - alignment = TQt::AlignRight | TQt::AlignVCenter; + tqalignment = TQt::AlignRight | TQt::AlignVCenter; } else if (align == i18n("Top-Left")) { - alignment = TQt::AlignTop | TQt::AlignLeft; + tqalignment = TQt::AlignTop | TQt::AlignLeft; } else if (align == i18n("Top-Right")) { - alignment = TQt::AlignTop | TQt::AlignRight; + tqalignment = TQt::AlignTop | TQt::AlignRight; } else if (align == i18n("Bottom-Left")) { - alignment = TQt::AlignBottom | TQt::AlignLeft; + tqalignment = TQt::AlignBottom | TQt::AlignLeft; } else if (align == i18n("Bottom-Right")) { - alignment = TQt::AlignBottom | TQt::AlignRight; + tqalignment = TQt::AlignBottom | TQt::AlignRight; } else if (align == i18n("Top-Central")) { - alignment = TQt::AlignTop | TQt::AlignHCenter; + tqalignment = TQt::AlignTop | TQt::AlignHCenter; } else if (align == i18n("Bottom-Central")) { - alignment = TQt::AlignBottom | TQt::AlignHCenter; + tqalignment = TQt::AlignBottom | TQt::AlignHCenter; } else { // Central - alignment = TQt::AlignCenter; // TQt::AlignHCenter || TQt::AlignVCenter + tqalignment = TQt::AlignCenter; // TQt::AlignHCenter || TQt::AlignVCenter } - return alignment; + return tqalignment; } TQString PrintDialogPage::setPosition(int align) { - TQString alignment; + TQString tqalignment; if (align == (TQt::AlignLeft | TQt::AlignVCenter)) { - alignment = i18n("Central-Left"); + tqalignment = i18n("Central-Left"); } else if (align == (TQt::AlignRight | TQt::AlignVCenter)) { - alignment = i18n("Central-Right"); + tqalignment = i18n("Central-Right"); } else if (align == (TQt::AlignTop | TQt::AlignLeft)) { - alignment = i18n("Top-Left"); + tqalignment = i18n("Top-Left"); } else if (align == (TQt::AlignTop | TQt::AlignRight)) { - alignment = i18n("Top-Right"); + tqalignment = i18n("Top-Right"); } else if (align == (TQt::AlignBottom | TQt::AlignLeft)) { - alignment = i18n("Bottom-Left"); + tqalignment = i18n("Bottom-Left"); } else if (align == (TQt::AlignBottom | TQt::AlignRight)) { - alignment = i18n("Bottom-Right"); + tqalignment = i18n("Bottom-Right"); } else if (align == (TQt::AlignTop | TQt::AlignHCenter)) { - alignment = i18n("Top-Central"); + tqalignment = i18n("Top-Central"); } else if (align == (TQt::AlignBottom | TQt::AlignHCenter)) { - alignment = i18n("Bottom-Central"); + tqalignment = i18n("Bottom-Central"); } else { // Central: TQt::AlignCenter or (TQt::AlignHCenter || TQt::AlignVCenter) - alignment = i18n("Central"); + tqalignment = i18n("Central"); } - return alignment; + return tqalignment; } // SLOTS |