summaryrefslogtreecommitdiffstats
path: root/kdeui/klineeditdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeui/klineeditdlg.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/klineeditdlg.cpp')
-rw-r--r--kdeui/klineeditdlg.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kdeui/klineeditdlg.cpp b/kdeui/klineeditdlg.cpp
index 9551fc1f6..c92f0a8bd 100644
--- a/kdeui/klineeditdlg.cpp
+++ b/kdeui/klineeditdlg.cpp
@@ -44,7 +44,7 @@ KLineEditDlg::KLineEditDlg( const TQString&_text, const TQString& _value,
topLayout->addWidget( label, 1 );
edit = new KLineEdit( plainPage(), 0L );
- edit->setMinimumWidth(edit->sizeHint().width() * 3);
+ edit->setMinimumWidth(edit->tqsizeHint().width() * 3);
label->setBuddy(edit); // please "scheck" style
// connect( edit, TQT_SIGNAL(returnPressed()), TQT_SLOT(accept()) );
connect( edit, TQT_SIGNAL(textChanged(const TQString&)),
@@ -69,13 +69,13 @@ KLineEditDlg::KLineEditDlg( const TQString&_text, const TQString& _value,
TQWidget *parent, bool _file_mode )
: TQDialog( parent, 0L, true )
{
- TQGridLayout *layout = new TQGridLayout(this, 4, 3, 10);
+ TQGridLayout *tqlayout = new TQGridLayout(this, 4, 3, 10);
TQLabel *label = new TQLabel(_text, this);
- layout->addWidget(label, 0, 0, AlignLeft);
+ tqlayout->addWidget(label, 0, 0, AlignLeft);
edit = new KLineEdit( this, 0L );
- edit->setMinimumWidth(edit->sizeHint().width() * 3);
+ edit->setMinimumWidth(edit->tqsizeHint().width() * 3);
connect( edit, TQT_SIGNAL(returnPressed()), TQT_SLOT(accept()) );
if ( _file_mode ) {
@@ -85,22 +85,22 @@ KLineEditDlg::KLineEditDlg( const TQString&_text, const TQString& _value,
} else
completion = 0L;
- layout->addMultiCellWidget(edit, 1, 1, 0, _file_mode ? 1 : 2);
- layout->setColStretch(1, 1);
+ tqlayout->addMultiCellWidget(edit, 1, 1, 0, _file_mode ? 1 : 2);
+ tqlayout->setColStretch(1, 1);
if (_file_mode) {
TQPushButton *browse = new TQPushButton(i18n("&Browse..."), this);
- layout->addWidget(browse, 1, 2, AlignCenter);
+ tqlayout->addWidget(browse, 1, 2, AlignCenter);
connect(browse, TQT_SIGNAL(clicked()),
TQT_SLOT(slotBrowse()));
}
TQFrame *hLine = new TQFrame(this);
hLine->setFrameStyle(TQFrame::Sunken|TQFrame::HLine);
- layout->addMultiCellWidget(hLine, 2, 2, 0, 2);
+ tqlayout->addMultiCellWidget(hLine, 2, 2, 0, 2);
KButtonBox *bBox = new KButtonBox(this);
- layout->addMultiCellWidget(bBox, 3, 3, 0, 2);
+ tqlayout->addMultiCellWidget(bBox, 3, 3, 0, 2);
TQPushButton *ok = bBox->addButton(KStdGuiItem::ok());
ok->setDefault(true);
@@ -116,9 +116,9 @@ KLineEditDlg::KLineEditDlg( const TQString&_text, const TQString& _value,
TQPushButton *cancel = bBox->addButton(KStdGuiItem::cancel());
connect( cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
- bBox->layout();
+ bBox->tqlayout();
- layout->activate();
+ tqlayout->activate();
edit->setText( _value );
edit->setSelection(0, edit->text().length());