diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-13 20:33:00 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-15 23:44:25 +0900 |
commit | c8ece3630d4d21acaf1749fc2cf660a0463070c3 (patch) | |
tree | bae3d3c70886ceeffd914cac031dfeab532a607a /tdeui/kdialogbase.cpp | |
parent | 419c185be746df8bba59fe5de991b4a2b3977897 (diff) | |
download | tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.tar.gz tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeui/kdialogbase.cpp')
-rw-r--r-- | tdeui/kdialogbase.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tdeui/kdialogbase.cpp b/tdeui/kdialogbase.cpp index 4fa65f92f..92226f954 100644 --- a/tdeui/kdialogbase.cpp +++ b/tdeui/kdialogbase.cpp @@ -104,7 +104,7 @@ KDialogBase::KDialogBase( TQWidget *parent, const char *name, bool modal, :KDialog( parent, name, modal, (WFlags)WStyle_DialogBorder ), mTopLayout(0), mMainWidget(0), mUrlHelp(0), mJanus(0), mActionSep(0), mIsActivated(false), mShowTile(false), mMessageBoxMode(false), - mButtonOrientation(Qt::Horizontal), d(new KDialogBasePrivate) + mButtonOrientation(TQt::Horizontal), d(new KDialogBasePrivate) { setCaption( caption ); @@ -126,7 +126,7 @@ KDialogBase::KDialogBase( int dialogFace, const TQString &caption, :KDialog( parent, name, modal, (WFlags)WStyle_DialogBorder ), mTopLayout(0), mMainWidget(0), mUrlHelp(0), mJanus(0), mActionSep(0), mIsActivated(false), mShowTile(false), mMessageBoxMode(false), - mButtonOrientation(Qt::Horizontal), d(new KDialogBasePrivate) + mButtonOrientation(TQt::Horizontal), d(new KDialogBasePrivate) { setCaption( caption ); @@ -155,7 +155,7 @@ KDialogBase::KDialogBase( KDialogBase::DialogType dialogFace, WFlags f, TQWidge :KDialog( parent, name, modal, f ), mTopLayout(0), mMainWidget(0), mUrlHelp(0), mJanus(0), mActionSep(0), mIsActivated(false), mShowTile(false), mMessageBoxMode(false), - mButtonOrientation(Qt::Horizontal), d(new KDialogBasePrivate) + mButtonOrientation(TQt::Horizontal), d(new KDialogBasePrivate) { setCaption( caption ); @@ -183,7 +183,7 @@ KDialogBase::KDialogBase( const TQString &caption, int buttonMask, :KDialog( parent, name, modal, (WFlags)WStyle_DialogBorder ), mTopLayout(0), mMainWidget(0), mUrlHelp(0), mJanus(0), mActionSep(0), mIsActivated(false), mShowTile(false), mMessageBoxMode(true), - mButtonOrientation(Qt::Horizontal),mEscapeButton(escapeButton), + mButtonOrientation(TQt::Horizontal),mEscapeButton(escapeButton), d(new KDialogBasePrivate) { setCaption( caption ); @@ -235,7 +235,7 @@ void SButton::resize( bool sameWidth, int margin, if( s.width() > w ) { w = s.width(); } } - if( orientation == Qt::Horizontal ) + if( orientation == TQt::Horizontal ) { for( p = list.first(); p; p = list.next() ) { @@ -299,7 +299,7 @@ void KDialogBase::setupLayout() // mTopLayout = new TQVBoxLayout( this, marginHint(), spacingHint() ); - if( mButtonOrientation == Qt::Horizontal ) + if( mButtonOrientation == TQt::Horizontal ) { mTopLayout = new TQBoxLayout( this, TQBoxLayout::TopToBottom, marginHint(), spacingHint() ); @@ -349,10 +349,10 @@ void KDialogBase::setButtonBoxOrientation( int orientation ) mButtonOrientation = orientation; if( mActionSep ) { - mActionSep->setOrientation( mButtonOrientation == Qt::Horizontal ? + mActionSep->setOrientation( mButtonOrientation == TQt::Horizontal ? TQFrame::HLine : TQFrame::VLine ); } - if( mButtonOrientation == Qt::Vertical ) + if( mButtonOrientation == TQt::Vertical ) { enableLinkedHelp(false); // 2000-06-18 Espen: No support for this yet. } @@ -396,7 +396,7 @@ void KDialogBase::enableButtonSeparator( bool state ) } mActionSep = new KSeparator( this ); mActionSep->setFocusPolicy(TQWidget::NoFocus); - mActionSep->setOrientation( mButtonOrientation == Qt::Horizontal ? + mActionSep->setOrientation( mButtonOrientation == TQt::Horizontal ? TQFrame::HLine : TQFrame::VLine ); mActionSep->show(); } @@ -506,7 +506,7 @@ TQSize KDialogBase::minimumSizeHint() const if( d->mButton.box ) { s2 = d->mButton.box->minimumSize(); - if( mButtonOrientation == Qt::Horizontal ) + if( mButtonOrientation == TQt::Horizontal ) { s1.rwidth() = TQMAX( s1.rwidth(), s2.rwidth() ); s1.rheight() += s2.rheight(); @@ -686,7 +686,7 @@ void KDialogBase::setButtonStyle( int style ) layoutMax = 6; layout = layoutRule[ d->mButton.style ]; } - else if (mButtonOrientation == Qt::Horizontal) + else if (mButtonOrientation == TQt::Horizontal) { static const unsigned int layoutRule[5][10] = { @@ -720,7 +720,7 @@ void KDialogBase::setButtonStyle( int style ) } TQBoxLayout *lay; - if( mButtonOrientation == Qt::Horizontal ) + if( mButtonOrientation == TQt::Horizontal ) { lay = new TQBoxLayout( d->mButton.box, TQBoxLayout::LeftToRight, 0, spacingHint()); |