summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/lineedit.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 /kommander/widgets/lineedit.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 'kommander/widgets/lineedit.cpp')
-rw-r--r--kommander/widgets/lineedit.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kommander/widgets/lineedit.cpp b/kommander/widgets/lineedit.cpp
index d243660a..08913b4e 100644
--- a/kommander/widgets/lineedit.cpp
+++ b/kommander/widgets/lineedit.cpp
@@ -15,8 +15,8 @@
***************************************************************************/
/* QT INCLUDES */
-#include <qlayout.h>
-#include <qevent.h>
+#include <tqlayout.h>
+#include <tqevent.h>
/* OTHER INCLUDES */
#include <specials.h>
@@ -30,42 +30,42 @@ enum functions {
LastFunction
};
-LineEdit::LineEdit(QWidget *a_parent, const char *a_name)
- : KLineEdit(a_parent, a_name), KommanderWidget((QObject *)this)
+LineEdit::LineEdit(TQWidget *a_parent, const char *a_name)
+ : KLineEdit(a_parent, a_name), KommanderWidget((TQObject *)this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
- connect(this, SIGNAL(textChanged(const QString &)), this,
- SIGNAL(widgetTextChanged(const QString &)));
+ connect(this, TQT_SIGNAL(textChanged(const TQString &)), this,
+ TQT_SIGNAL(widgetTextChanged(const TQString &)));
KommanderPlugin::setDefaultGroup(Group::DCOP);
- KommanderPlugin::registerFunction(LE_clearModified, "clearModified(QString widget)", i18n("Clear widget modified status."), 1);
+ KommanderPlugin::registerFunction(LE_clearModified, "clearModified(TQString widget)", i18n("Clear widget modified status."), 1);
}
-void LineEdit::showEvent(QShowEvent *e)
+void LineEdit::showEvent(TQShowEvent *e)
{
- QLineEdit::showEvent(e);
+ TQLineEdit::showEvent(e);
emit widgetOpened();
}
-void LineEdit::focusInEvent( QFocusEvent * e)
+void LineEdit::focusInEvent( TQFocusEvent * e)
{
- QLineEdit::focusInEvent(e);
+ TQLineEdit::focusInEvent(e);
emit gotFocus();
}
-void LineEdit::focusOutEvent( QFocusEvent * e)
+void LineEdit::focusOutEvent( TQFocusEvent * e)
{
- QLineEdit::focusOutEvent(e);
+ TQLineEdit::focusOutEvent(e);
emit lostFocus();
}
-QString LineEdit::currentState() const
+TQString LineEdit::currentState() const
{
- return QString("default");
+ return TQString("default");
}
LineEdit::~LineEdit()
@@ -77,47 +77,47 @@ bool LineEdit::isKommanderWidget() const
return true;
}
-QStringList LineEdit::associatedText() const
+TQStringList LineEdit::associatedText() const
{
return KommanderWidget::associatedText();
}
-void LineEdit::setAssociatedText(const QStringList& a_at)
+void LineEdit::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void LineEdit::setPopulationText(const QString& a_text)
+void LineEdit::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString LineEdit::populationText() const
+TQString LineEdit::populationText() const
{
return KommanderWidget::populationText();
}
void LineEdit::populate()
{
- QString txt = KommanderWidget::evalAssociatedText(populationText());
+ TQString txt = KommanderWidget::evalAssociatedText(populationText());
setWidgetText(txt);
}
-void LineEdit::setSelectedWidgetText(const QString& a_text)
+void LineEdit::setSelectedWidgetText(const TQString& a_text)
{
insert(a_text);
}
-void LineEdit::setWidgetText(const QString& a_text)
+void LineEdit::setWidgetText(const TQString& a_text)
{
setText(a_text);
emit widgetTextChanged(a_text);
}
-void LineEdit::contextMenuEvent( QContextMenuEvent * e )
+void LineEdit::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
@@ -127,7 +127,7 @@ bool LineEdit::isFunctionSupported(int f)
f == DCOP::clear || f == DCOP::setEditable || f == DCOP::geometry || f == DCOP::hasFocus || f == DCOP::getBackgroundColor || f == DCOP::setBackgroundColor || f == DCOP::isModified || (f >= FirstFunction && f <= LastFunction) ;
}
-QString LineEdit::handleDCOP(int function, const QStringList& args)
+TQString LineEdit::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
@@ -148,19 +148,19 @@ QString LineEdit::handleDCOP(int function, const QStringList& args)
break;
case DCOP::geometry:
{
- QString geo = QString::number(this->x())+" "+QString::number(this->y())+" "+QString::number(this->width())+" "+QString::number(this->height());
+ TQString geo = TQString::number(this->x())+" "+TQString::number(this->y())+" "+TQString::number(this->width())+" "+TQString::number(this->height());
return geo;
break;
}
case DCOP::hasFocus:
- return QString::number(this->hasFocus());
+ return TQString::number(this->hasFocus());
break;
case DCOP::getBackgroundColor:
return this->paletteBackgroundColor().name();
break;
case DCOP::setBackgroundColor:
{
- QColor color;
+ TQColor color;
color.setNamedColor(args[0]);
this->setPaletteBackgroundColor(color);
break;
@@ -174,7 +174,7 @@ QString LineEdit::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}