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 --- kghostview/viewcontrol.cpp | 60 +++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'kghostview/viewcontrol.cpp') diff --git a/kghostview/viewcontrol.cpp b/kghostview/viewcontrol.cpp index cc66d598..1740bf4d 100644 --- a/kghostview/viewcontrol.cpp +++ b/kghostview/viewcontrol.cpp @@ -9,12 +9,12 @@ ** *****************************************************************************/ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include "viewcontrol.h" @@ -25,22 +25,22 @@ #include #include -ViewControl::ViewControl( QWidget *parent, const char *name ) - : QDialog( parent, name ) +ViewControl::ViewControl( TQWidget *parent, const char *name ) + : TQDialog( parent, name ) { - setFocusPolicy(QWidget::StrongFocus); + setFocusPolicy(TQWidget::StrongFocus); - QBoxLayout *topLayout = new QVBoxLayout( this, 10 ); + TQBoxLayout *topLayout = new TQVBoxLayout( this, 10 ); - QGroupBox* vcGroupBox; - vcGroupBox = new QGroupBox( this ); - vcGroupBox->setFrameStyle( QFrame::NoFrame ); + TQGroupBox* vcGroupBox; + vcGroupBox = new TQGroupBox( this ); + vcGroupBox->setFrameStyle( TQFrame::NoFrame ); //vcGroupBox->setTitle( i18n("Force Changes To") ); //vcGroupBox->setAlignment( 1 ); topLayout->addWidget( vcGroupBox, 10 ); - QGridLayout *grid = new QGridLayout( vcGroupBox, 3, 2, 10 ); + TQGridLayout *grid = new TQGridLayout( vcGroupBox, 3, 2, 10 ); grid->setRowStretch(0,0); grid->setRowStretch(1,10); @@ -50,41 +50,41 @@ ViewControl::ViewControl( QWidget *parent, const char *name ) grid->setColStretch(1,10); - magComboBox = new QComboBox( FALSE, vcGroupBox ); + magComboBox = new TQComboBox( FALSE, vcGroupBox ); magComboBox->setFixedHeight( magComboBox->sizeHint().height() ); //magComboBox->hide(); - connect ( magComboBox, SIGNAL (activated (int)), - this, SLOT (slotMagSelection (int)) ); + connect ( magComboBox, TQT_SIGNAL (activated (int)), + this, TQT_SLOT (slotMagSelection (int)) ); grid->addWidget( magComboBox, 0, 1 ); - mediaComboBox = new QComboBox( FALSE, vcGroupBox ); + mediaComboBox = new TQComboBox( FALSE, vcGroupBox ); mediaComboBox->setFixedHeight( magComboBox->sizeHint().height() ); - connect ( mediaComboBox, SIGNAL (activated (int)), - this, SLOT (slotMediaSelection (int)) ); + connect ( mediaComboBox, TQT_SIGNAL (activated (int)), + this, TQT_SLOT (slotMediaSelection (int)) ); grid->addWidget( mediaComboBox, 1, 1 ); - orientComboBox = new QComboBox( FALSE, vcGroupBox ); + orientComboBox = new TQComboBox( FALSE, vcGroupBox ); orientComboBox->insertItem(i18n("Portrait")); orientComboBox->insertItem(i18n("Landscape")); orientComboBox->insertItem(i18n("Seascape")); orientComboBox->insertItem(i18n("Upside Down")); orientComboBox->setFixedHeight( magComboBox->sizeHint().height() ); - connect ( orientComboBox, SIGNAL (activated (int)), - this, SLOT (slotOrientSelection (int)) ); + connect ( orientComboBox, TQT_SIGNAL (activated (int)), + this, TQT_SLOT (slotOrientSelection (int)) ); grid->addWidget( orientComboBox, 2, 1 ); int labelWidth = 0; - QLabel* vcLabel; - vcLabel = new QLabel( magComboBox, i18n("&Magnification"), vcGroupBox ); + TQLabel* vcLabel; + vcLabel = new TQLabel( magComboBox, i18n("&Magnification"), vcGroupBox ); vcLabel->setAlignment( AlignRight | AlignVCenter | ShowPrefix ); if ( vcLabel->sizeHint().width() > labelWidth ) labelWidth = vcLabel->sizeHint().width(); @@ -95,7 +95,7 @@ ViewControl::ViewControl( QWidget *parent, const char *name ) grid->addWidget( vcLabel, 0, 0 ); - vcLabel = new QLabel( mediaComboBox, i18n("M&edia"), vcGroupBox ); + vcLabel = new TQLabel( mediaComboBox, i18n("M&edia"), vcGroupBox ); vcLabel->setAlignment( AlignRight | AlignVCenter | ShowPrefix ); if ( vcLabel->sizeHint().width() > labelWidth ) labelWidth = vcLabel->sizeHint().width(); @@ -103,7 +103,7 @@ ViewControl::ViewControl( QWidget *parent, const char *name ) grid->addWidget( vcLabel, 1, 0 ); - vcLabel = new QLabel( orientComboBox, i18n("&Orientation"), vcGroupBox ); + vcLabel = new TQLabel( orientComboBox, i18n("&Orientation"), vcGroupBox ); vcLabel->setAlignment( AlignRight | AlignVCenter | ShowPrefix ); if ( vcLabel->sizeHint().width() > labelWidth ) labelWidth = vcLabel->sizeHint().width(); @@ -124,10 +124,10 @@ ViewControl::ViewControl( QWidget *parent, const char *name ) bbox->addStretch( 10 ); apply = bbox->addButton( KStdGuiItem::apply() ); - connect( apply, SIGNAL(clicked()), SLOT(slotApplyClicked()) ); + connect( apply, TQT_SIGNAL(clicked()), TQT_SLOT(slotApplyClicked()) ); - QPushButton *closebtn = bbox->addButton( KStdGuiItem::close() ); - connect( closebtn, SIGNAL(clicked()), SLOT(reject()) ); + TQPushButton *closebtn = bbox->addButton( KStdGuiItem::close() ); + connect( closebtn, TQT_SIGNAL(clicked()), TQT_SLOT(reject()) ); bbox->layout(); -- cgit v1.2.3