From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/dialogs/filecombo.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'quanta/dialogs/filecombo.cpp') diff --git a/quanta/dialogs/filecombo.cpp b/quanta/dialogs/filecombo.cpp index 40415757..63fd1e58 100644 --- a/quanta/dialogs/filecombo.cpp +++ b/quanta/dialogs/filecombo.cpp @@ -16,9 +16,9 @@ ***************************************************************************/ // QT includes -#include -#include -#include +#include +#include +#include // KDE includes #include @@ -29,17 +29,17 @@ #include "filecombo.h" #include "qextfileinfo.h" -FileCombo::FileCombo(const KURL& a_baseURL, QWidget *parent, const char *name ) - :QWidget(parent,name) +FileCombo::FileCombo(const KURL& a_baseURL, TQWidget *parent, const char *name ) + :TQWidget(parent,name) { baseURL = a_baseURL; m_absolutePath = false; - QHBoxLayout *layout = new QHBoxLayout(this); + TQHBoxLayout *layout = new TQHBoxLayout(this); - combo = new QComboBox(true,this); + combo = new TQComboBox(true,this); combo->setEditable(true); - button = new QPushButton(this); + button = new TQPushButton(this); button ->setFixedSize(35,25); button ->setText(i18n("...")); @@ -47,21 +47,21 @@ FileCombo::FileCombo(const KURL& a_baseURL, QWidget *parent, const char *name ) layout ->addWidget( combo ); layout ->addWidget( button ); - connect( button, SIGNAL(clicked()), this, SLOT(slotFileSelect()) ); - connect( combo, SIGNAL(activated(const QString&)), SLOT(slotComboActivated(const QString&))); - connect( combo, SIGNAL(textChanged(const QString&)), SLOT(slotComboActivated(const QString&))); + connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFileSelect()) ); + connect( combo, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotComboActivated(const TQString&))); + connect( combo, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotComboActivated(const TQString&))); setFocusProxy(combo); } -FileCombo::FileCombo( QWidget *parent, const char *name ) - :QWidget( parent, name ) +FileCombo::FileCombo( TQWidget *parent, const char *name ) + :TQWidget( parent, name ) { baseURL.setPath("."); - QHBoxLayout *layout = new QHBoxLayout(this); + TQHBoxLayout *layout = new TQHBoxLayout(this); - combo = new QComboBox(true,this); - button = new QPushButton(this); + combo = new TQComboBox(true,this); + button = new TQPushButton(this); button ->setFixedSize(35,25); button ->setText(i18n("...")); @@ -69,21 +69,21 @@ FileCombo::FileCombo( QWidget *parent, const char *name ) layout ->addWidget( combo ); layout ->addWidget( button ); - connect( button, SIGNAL(clicked()), this, SLOT(slotFileSelect()) ); - connect( combo, SIGNAL(activated(const QString&)), SLOT(slotComboActivated(const QString&))); - connect( combo, SIGNAL(textChanged(const QString&)), SLOT(slotComboActivated(const QString&))); + connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFileSelect()) ); + connect( combo, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotComboActivated(const TQString&))); + connect( combo, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotComboActivated(const TQString&))); setFocusProxy(combo); } FileCombo::~FileCombo(){ } -QString FileCombo::text() const +TQString FileCombo::text() const { return combo->currentText(); } -void FileCombo::setText( const QString &_txt ) +void FileCombo::setText( const TQString &_txt ) { combo ->setEditText( _txt ); } @@ -114,7 +114,7 @@ void FileCombo::setReturnAbsolutePath(bool absolutePath) m_absolutePath = absolutePath; } -void FileCombo::slotComboActivated(const QString&s) +void FileCombo::slotComboActivated(const TQString&s) { emit activated(s); } -- cgit v1.2.3