diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /knotes/knotehostdlg.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knotes/knotehostdlg.cpp')
-rw-r--r-- | knotes/knotehostdlg.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
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 <qstring.h> -#include <qstringlist.h> -#include <qlabel.h> -#include <qvbox.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqlabel.h> +#include <tqvbox.h> #include <kdebug.h> #include <kglobal.h> @@ -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(); } |