diff options
Diffstat (limited to 'kjsembed/docs/embedding')
-rw-r--r-- | kjsembed/docs/embedding/qtembed/main.cpp | 2 | ||||
-rw-r--r-- | kjsembed/docs/embedding/qtembed/posviewimp.cpp | 2 | ||||
-rw-r--r-- | kjsembed/docs/embedding/qtembed/posviewimp.h | 2 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedviewimp.cpp | 22 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedviewimp.h | 8 |
5 files changed, 18 insertions, 18 deletions
diff --git a/kjsembed/docs/embedding/qtembed/main.cpp b/kjsembed/docs/embedding/qtembed/main.cpp index 78808aac..fbf8541b 100644 --- a/kjsembed/docs/embedding/qtembed/main.cpp +++ b/kjsembed/docs/embedding/qtembed/main.cpp @@ -10,7 +10,7 @@ int main ( int argc, char ** argv ) { - TTQApplication app( argc, argv ); + TQApplication app( argc, argv ); POSViewImp *view = new POSViewImp; app.setMainWidget(view); view->show(); diff --git a/kjsembed/docs/embedding/qtembed/posviewimp.cpp b/kjsembed/docs/embedding/qtembed/posviewimp.cpp index 118e471b..a9c3c289 100644 --- a/kjsembed/docs/embedding/qtembed/posviewimp.cpp +++ b/kjsembed/docs/embedding/qtembed/posviewimp.cpp @@ -14,7 +14,7 @@ #include <tqdatetime.h> #include <tqcolor.h> -POSViewImp::POSViewImp(TTQWidget *parent, const char *name) +POSViewImp::POSViewImp(TQWidget *parent, const char *name) :POSViewBase(parent, name) { m_part = new KJSEmbed::KJSEmbedPart(0, "kjsembed_part", this,"JSEmbed"); diff --git a/kjsembed/docs/embedding/qtembed/posviewimp.h b/kjsembed/docs/embedding/qtembed/posviewimp.h index 2bb0df9c..764ac813 100644 --- a/kjsembed/docs/embedding/qtembed/posviewimp.h +++ b/kjsembed/docs/embedding/qtembed/posviewimp.h @@ -15,7 +15,7 @@ namespace KJSEmbed { class POSViewImp: public POSViewBase { Q_OBJECT public: - POSViewImp( TTQWidget *parent = 0, const char *name = 0 ); + POSViewImp( TQWidget *parent = 0, const char *name = 0 ); public slots: void loadScript(); 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()); diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.h b/kjsembed/docs/embedding/simple-embed/embedviewimp.h index 5003c182..7c678a32 100644 --- a/kjsembed/docs/embedding/simple-embed/embedviewimp.h +++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.h @@ -16,17 +16,17 @@ class EmbedViewImp: public EmbedView { Q_OBJECT public: - EmbedViewImp( TTQWidget *parent = 0, const char *name = 0 ); + EmbedViewImp( TQWidget *parent = 0, const char *name = 0 ); - bool runScript( const TTQString &file ); + bool runScript( const TQString &file ); public slots: virtual void cancelClicked(); virtual void okClicked(); virtual void consoleClicked(); - TTQVariant someValue() const; - void setSomeValue( const TTQVariant &var ); + TQVariant someValue() const; + void setSomeValue( const TQVariant &var ); private: KJSEmbed::KJSEmbedPart *m_part; }; |