diff options
Diffstat (limited to 'kjsembed/docs/embedding/simple-embed/embedviewimp.cpp')
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedviewimp.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp index a1355909..b71521d5 100644 --- a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp +++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp @@ -10,12 +10,12 @@ #include "embedviewimp.h" #include <klineedit.h> -#include <qgroupbox.h> +#include <tqgroupbox.h> -#include <qdatetime.h> -#include <qcolor.h> +#include <tqdatetime.h> +#include <tqcolor.h> -EmbedViewImp::EmbedViewImp(QWidget *parent, const char *name) +EmbedViewImp::EmbedViewImp(TQWidget *parent, const char *name) :EmbedView(parent, name) { m_part = new KJSEmbed::KJSEmbedPart(0, "kjsembed_part", this,"JSEmbed"); @@ -30,10 +30,10 @@ void EmbedViewImp::okClicked() { KJS::List args; KJS::Value val = m_part->callMethod("handleOk", args); - QMap<QString, QVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap(); - QDate birthday = personalData["birthday"].toDate(); - QColor eyecolor = personalData["eyeColor"].toColor(); - QString notes = personalData["notes"].toString(); + TQMap<TQString, TQVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap(); + TQDate birthday = personalData["birthday"].toDate(); + TQColor eyecolor = personalData["eyeColor"].toColor(); + TQString notes = personalData["notes"].toString(); kdDebug() << "birthday: " << birthday << endl; kdDebug() << "eyecolor: " << eyecolor << endl; @@ -53,23 +53,23 @@ void EmbedViewImp::consoleClicked() m_part->view()->setHidden(!m_part->view()->isHidden()); } -bool EmbedViewImp::runScript( const QString &file ) +bool EmbedViewImp::runScript( const TQString &file ) { return m_part->runFile(file, m_part->globalObject() ); } -QVariant EmbedViewImp::someValue() const +TQVariant EmbedViewImp::someValue() const { - QMap<QString,QVariant> returnMap; + TQMap<TQString,TQVariant> returnMap; returnMap["name"] = m_name->text(); returnMap["title"] = m_title->text(); returnMap["dept"] = m_dept->text(); - return QVariant(returnMap); + return TQVariant(returnMap); } -void EmbedViewImp::setSomeValue( const QVariant &val ) +void EmbedViewImp::setSomeValue( const TQVariant &val ) { - QMap<QString,QVariant> map = val.toMap(); + TQMap<TQString,TQVariant> map = val.toMap(); m_name->setText(map["name"].toString()); m_title->setText(map["title"].toString()); m_dept->setText(map["dept"].toString()); |