summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/fileselector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/fileselector.cpp')
-rw-r--r--kommander/widgets/fileselector.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kommander/widgets/fileselector.cpp b/kommander/widgets/fileselector.cpp
index b220b8d9..a7c29673 100644
--- a/kommander/widgets/fileselector.cpp
+++ b/kommander/widgets/fileselector.cpp
@@ -23,21 +23,21 @@
#include <kiconloader.h>
/* QT INCLUDES */
-#include <qstring.h>
-#include <qwidget.h>
-#include <qstringlist.h>
-#include <qevent.h>
-#include <qlayout.h>
-#include <qsizepolicy.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
+#include <tqlayout.h>
+#include <tqsizepolicy.h>
/* OTHER INCLUDES */
#include <specials.h>
#include "fileselector.h"
-FileSelector::FileSelector(QWidget * a_parent, const char *a_name)
- : QWidget(a_parent, a_name), KommanderWidget(this)
+FileSelector::FileSelector(TQWidget * a_parent, const char *a_name)
+ : TQWidget(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
@@ -46,15 +46,15 @@ FileSelector::FileSelector(QWidget * a_parent, const char *a_name)
m_selectButton = new KPushButton(BarIconSet("fileopen"), "", this);
- m_boxLayout = new QHBoxLayout(this, 0, 11);
+ m_boxLayout = new TQHBoxLayout(this, 0, 11);
m_boxLayout->addWidget(m_lineEdit);
m_boxLayout->addWidget(m_selectButton);
setSizePolicy(m_lineEdit->sizePolicy());
- m_lineEdit->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
- m_selectButton->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding));
+ m_lineEdit->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
+ m_selectButton->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding));
- connect(m_selectButton, SIGNAL(clicked()), this, SLOT(makeSelection()));
+ connect(m_selectButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(makeSelection()));
setSelectionType(Open);
setSelectionOpenMultiple(false);
@@ -64,9 +64,9 @@ FileSelector::~FileSelector()
{
}
-QString FileSelector::currentState() const
+TQString FileSelector::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool FileSelector::isKommanderWidget() const
@@ -74,33 +74,33 @@ bool FileSelector::isKommanderWidget() const
return true;
}
-QStringList FileSelector::associatedText() const
+TQStringList FileSelector::associatedText() const
{
return KommanderWidget::associatedText();
}
-void FileSelector::setAssociatedText(const QStringList& a_at)
+void FileSelector::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void FileSelector::setPopulationText(const QString& a_text)
+void FileSelector::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString FileSelector::populationText() const
+TQString FileSelector::populationText() const
{
return KommanderWidget::populationText();
}
void FileSelector::populate()
{
- QString txt = KommanderWidget::evalAssociatedText(populationText());
+ TQString txt = KommanderWidget::evalAssociatedText(populationText());
setWidgetText(txt);
}
-void FileSelector::setWidgetText(const QString& a_text)
+void FileSelector::setWidgetText(const TQString& a_text)
{
m_lineEdit->setText(a_text);
emit widgetTextChanged(a_text);
@@ -122,22 +122,22 @@ void FileSelector::setSelectionType(SelectionType a_selectionType)
}
-QString FileSelector::selectionFilter() const
+TQString FileSelector::selectionFilter() const
{
return m_filter;
}
-void FileSelector::setSelectionFilter(const QString& a_filter)
+void FileSelector::setSelectionFilter(const TQString& a_filter)
{
m_filter = a_filter;
}
-QString FileSelector::selectionCaption() const
+TQString FileSelector::selectionCaption() const
{
return m_caption;
}
-void FileSelector::setSelectionCaption(const QString& a_caption)
+void FileSelector::setSelectionCaption(const TQString& a_caption)
{
m_caption = a_caption;
}
@@ -154,7 +154,7 @@ void FileSelector::setSelectionOpenMultiple(bool a_openMultiple)
void FileSelector::makeSelection()
{
- QString text;
+ TQString text;
if (m_selectionType == Open && m_openMultiple)
text = KFileDialog::getOpenFileNames(m_lineEdit->text(), m_filter, this, m_caption).join("\n");
else if (m_selectionType == Open && !m_openMultiple)
@@ -168,12 +168,12 @@ void FileSelector::makeSelection()
setWidgetText(text);
}
-QString FileSelector::caption() const
+TQString FileSelector::caption() const
{
return m_selectButton->text();
}
-void FileSelector::setCaption(const QString& a_text)
+void FileSelector::setCaption(const TQString& a_text)
{
m_selectButton->setText(a_text);
}
@@ -191,16 +191,16 @@ void FileSelector::setShowEditor(bool a_visible)
m_lineEdit->hide();
}
-void FileSelector::showEvent(QShowEvent * e)
+void FileSelector::showEvent(TQShowEvent * e)
{
- QWidget::showEvent(e);
+ TQWidget::showEvent(e);
emit widgetOpened();
}
-void FileSelector::contextMenuEvent( QContextMenuEvent * e )
+void FileSelector::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
@@ -210,7 +210,7 @@ bool FileSelector::isFunctionSupported(int f)
f == DCOP::clear;
}
-QString FileSelector::handleDCOP(int function, const QStringList& args)
+TQString FileSelector::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
@@ -228,12 +228,12 @@ QString FileSelector::handleDCOP(int function, const QStringList& args)
break;
}
case DCOP::clear:
- setWidgetText(QString::null);
+ setWidgetText(TQString::null);
break;
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}