diff options
Diffstat (limited to 'tdeui/kinputdialog.cpp')
| -rw-r--r-- | tdeui/kinputdialog.cpp | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/tdeui/kinputdialog.cpp b/tdeui/kinputdialog.cpp index a5a338422..5bf89ae20 100644 --- a/tdeui/kinputdialog.cpp +++ b/tdeui/kinputdialog.cpp @@ -17,10 +17,6 @@ Boston, MA 02110-1301, USA. */ -#ifdef USE_QT4 -#undef Status -#endif // USE_QT4 - #include <tqlayout.h> #include <tqlabel.h> #include <tqvalidator.h> @@ -81,9 +77,9 @@ KInputDialog::KInputDialog( const TQString &caption, const TQString &label, if ( !mask.isEmpty() ) d->m_lineEdit->setInputMask( mask ); - connect( d->m_lineEdit, TQT_SIGNAL( textChanged( const TQString & ) ), - TQT_SLOT( slotEditTextChanged( const TQString & ) ) ); - connect( this, TQT_SIGNAL( user1Clicked() ), d->m_lineEdit, TQT_SLOT( clear() ) ); + connect( d->m_lineEdit, TQ_SIGNAL( textChanged( const TQString & ) ), + TQ_SLOT( slotEditTextChanged( const TQString & ) ) ); + connect( this, TQ_SIGNAL( user1Clicked() ), d->m_lineEdit, TQ_SLOT( clear() ) ); slotEditTextChanged( value ); setMinimumWidth( 350 ); @@ -109,7 +105,7 @@ KInputDialog::KInputDialog( const TQString &caption, const TQString &label, d->m_textEdit->setFocus(); d->m_label->setBuddy( d->m_textEdit ); - connect( this, TQT_SIGNAL( user1Clicked() ), d->m_textEdit, TQT_SLOT( clear() ) ); + connect( this, TQ_SIGNAL( user1Clicked() ), d->m_textEdit, TQ_SLOT( clear() ) ); setMinimumWidth( 400 ); } @@ -180,10 +176,10 @@ KInputDialog::KInputDialog( const TQString &caption, const TQString &label, d->m_comboBox->setCurrentItem( current ); layout->addWidget( d->m_comboBox ); - connect( d->m_comboBox, TQT_SIGNAL( textChanged( const TQString & ) ), - TQT_SLOT( slotUpdateButtons( const TQString & ) ) ); - connect( this, TQT_SIGNAL( user1Clicked() ), - d->m_comboBox, TQT_SLOT( clearEdit() ) ); + connect( d->m_comboBox, TQ_SIGNAL( textChanged( const TQString & ) ), + TQ_SLOT( slotUpdateButtons( const TQString & ) ) ); + connect( this, TQ_SIGNAL( user1Clicked() ), + d->m_comboBox, TQ_SLOT( clearEdit() ) ); slotUpdateButtons( d->m_comboBox->currentText() ); d->m_comboBox->setFocus(); } else { @@ -192,10 +188,10 @@ KInputDialog::KInputDialog( const TQString &caption, const TQString &label, d->m_listBox->setSelected( current, true ); d->m_listBox->ensureCurrentVisible(); layout->addWidget( d->m_listBox, 10 ); - connect( d->m_listBox, TQT_SIGNAL( doubleClicked( TQListBoxItem * ) ), - TQT_SLOT( slotOk() ) ); - connect( d->m_listBox, TQT_SIGNAL( returnPressed( TQListBoxItem * ) ), - TQT_SLOT( slotOk() ) ); + connect( d->m_listBox, TQ_SIGNAL( doubleClicked( TQListBoxItem * ) ), + TQ_SLOT( slotOk() ) ); + connect( d->m_listBox, TQ_SIGNAL( returnPressed( TQListBoxItem * ) ), + TQ_SLOT( slotOk() ) ); d->m_listBox->setFocus(); } @@ -236,10 +232,10 @@ KInputDialog::KInputDialog( const TQString &caption, const TQString &label, } else { - connect( d->m_listBox, TQT_SIGNAL( doubleClicked( TQListBoxItem * ) ), - TQT_SLOT( slotOk() ) ); - connect( d->m_listBox, TQT_SIGNAL( returnPressed( TQListBoxItem * ) ), - TQT_SLOT( slotOk() ) ); + connect( d->m_listBox, TQ_SIGNAL( doubleClicked( TQListBoxItem * ) ), + TQ_SLOT( slotOk() ) ); + connect( d->m_listBox, TQ_SIGNAL( returnPressed( TQListBoxItem * ) ), + TQ_SLOT( slotOk() ) ); TQString text = select.first(); item = d->m_listBox->findItem( text, CaseSensitive|ExactMatch ); @@ -374,7 +370,7 @@ TQString KInputDialog::getItem( const TQString &caption, const TQString &label, editable, parent, name ); if ( !editable) { - connect( dlg.listBox(), TQT_SIGNAL(doubleClicked ( TQListBoxItem *)), &dlg, TQT_SLOT( slotOk())); + connect( dlg.listBox(), TQ_SIGNAL(doubleClicked ( TQListBoxItem *)), &dlg, TQ_SLOT( slotOk())); } bool _ok = ( dlg.exec() == Accepted ); @@ -467,6 +463,3 @@ KTextEdit *KInputDialog::textEdit() const } #include "kinputdialog.moc" - -/* vim: set ai et sw=2 ts=2 -*/ |
