summaryrefslogtreecommitdiffstats
path: root/quanta/dialogs/filecombo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/dialogs/filecombo.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/dialogs/filecombo.cpp')
-rw-r--r--quanta/dialogs/filecombo.cpp44
1 files changed, 22 insertions, 22 deletions
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 <qlayout.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
// KDE includes
#include <klocale.h>
@@ -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);
}