diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/docs/embedding/simple-embed/embedviewimp.cpp | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'kjsembed/docs/embedding/simple-embed/embedviewimp.cpp')
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedviewimp.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp index 87ae4f00..b71521d5 100644 --- a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp +++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp @@ -15,7 +15,7 @@ #include <tqdatetime.h> #include <tqcolor.h> -EmbedViewImp::EmbedViewImp(TTQWidget *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); - TTQMap<TTQString, TTQVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap(); - TTQDate birthday = personalData["birthday"].toDate(); - TTQColor eyecolor = personalData["eyeColor"].toColor(); - TTQString 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 TTQString &file ) +bool EmbedViewImp::runScript( const TQString &file ) { return m_part->runFile(file, m_part->globalObject() ); } -TTQVariant EmbedViewImp::someValue() const +TQVariant EmbedViewImp::someValue() const { - TTQMap<TTQString,TTQVariant> returnMap; + TQMap<TQString,TQVariant> returnMap; returnMap["name"] = m_name->text(); returnMap["title"] = m_title->text(); returnMap["dept"] = m_dept->text(); - return TTQVariant(returnMap); + return TQVariant(returnMap); } -void EmbedViewImp::setSomeValue( const TTQVariant &val ) +void EmbedViewImp::setSomeValue( const TQVariant &val ) { - TTQMap<TTQString,TTQVariant> 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()); |