summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 18:17:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 18:17:20 +0900
commit245d13f9d1ecf2d4ab6ab321709e10c8c261f7a7 (patch)
treec0e496204cda4a895921ccd48320719d0041aa23 /kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
parent9055b21d6a4e7da5a959336eec39471b63490ee3 (diff)
downloadtdebindings-245d13f9d1ecf2d4ab6ab321709e10c8c261f7a7.tar.gz
tdebindings-245d13f9d1ecf2d4ab6ab321709e10c8c261f7a7.zip
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kjsembed/docs/embedding/simple-embed/embedviewimp.cpp')
-rw-r--r--kjsembed/docs/embedding/simple-embed/embedviewimp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
index b71521d5..fd645ca5 100644
--- a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
+++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
@@ -30,7 +30,7 @@ void EmbedViewImp::okClicked()
{
KJS::List args;
KJS::Value val = m_part->callMethod("handleOk", args);
- TQMap<TQString, TQVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap();
+ TQStringVariantMap personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap();
TQDate birthday = personalData["birthday"].toDate();
TQColor eyecolor = personalData["eyeColor"].toColor();
TQString notes = personalData["notes"].toString();
@@ -60,7 +60,7 @@ bool EmbedViewImp::runScript( const TQString &file )
TQVariant EmbedViewImp::someValue() const
{
- TQMap<TQString,TQVariant> returnMap;
+ TQStringVariantMap returnMap;
returnMap["name"] = m_name->text();
returnMap["title"] = m_title->text();
returnMap["dept"] = m_dept->text();
@@ -69,7 +69,7 @@ TQVariant EmbedViewImp::someValue() const
void EmbedViewImp::setSomeValue( const TQVariant &val )
{
- TQMap<TQString,TQVariant> map = val.toMap();
+ TQStringVariantMap map = val.toMap();
m_name->setText(map["name"].toString());
m_title->setText(map["title"].toString());
m_dept->setText(map["dept"].toString());