diff options
Diffstat (limited to 'kdeui/klineeditdlg.cpp')
-rw-r--r-- | kdeui/klineeditdlg.cpp | 22 |
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()); |