From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- knotes/knotehostdlg.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'knotes/knotehostdlg.cpp') diff --git a/knotes/knotehostdlg.cpp b/knotes/knotehostdlg.cpp index 7045c465c..e78894eae 100644 --- a/knotes/knotehostdlg.cpp +++ b/knotes/knotehostdlg.cpp @@ -30,10 +30,10 @@ your version. *******************************************************************/ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -46,11 +46,11 @@ #include "knotesglobalconfig.h" -KNoteHostDlg::KNoteHostDlg( const QString &caption, QWidget *parent, const char *name ) +KNoteHostDlg::KNoteHostDlg( const TQString &caption, TQWidget *parent, const char *name ) : KDialogBase( parent, name, true, caption, Ok|Cancel, Ok, true ) { - QVBox *page = makeVBoxMainWidget(); - (void)new QLabel( i18n("Hostname or IP address:"), page ); + TQVBox *page = makeVBoxMainWidget(); + (void)new TQLabel( i18n("Hostname or IP address:"), page ); m_hostCombo = new KHistoryCombo( true, page ); m_hostCombo->setMinimumWidth( fontMetrics().maxWidth() * 15 ); @@ -60,8 +60,8 @@ KNoteHostDlg::KNoteHostDlg( const QString &caption, QWidget *parent, const char m_hostCombo->setHistoryItems( KNotesGlobalConfig::knownHosts(), true ); m_hostCombo->setFocus(); //m_hostCombo->completionObject()->setItems( KNotesGlobalConfig::hostCompletions() ); - connect( m_hostCombo->lineEdit(), SIGNAL( textChanged ( const QString & ) ), - this, SLOT( slotTextChanged( const QString & ) ) ); + connect( m_hostCombo->lineEdit(), TQT_SIGNAL( textChanged ( const TQString & ) ), + this, TQT_SLOT( slotTextChanged( const TQString & ) ) ); slotTextChanged( m_hostCombo->lineEdit()->text() ); } @@ -76,12 +76,12 @@ KNoteHostDlg::~KNoteHostDlg() KNotesGlobalConfig::writeConfig(); } -void KNoteHostDlg::slotTextChanged( const QString& text ) +void KNoteHostDlg::slotTextChanged( const TQString& text ) { enableButtonOK( !text.isEmpty() ); } -QString KNoteHostDlg::host() const +TQString KNoteHostDlg::host() const { return m_hostCombo->currentText(); } -- cgit v1.2.1