diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 15:57:34 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 15:57:34 -0600 |
commit | 7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch) | |
tree | c76702a7f6310fbe9d437e347535422e836e94e9 /tdehtml/testtdehtml.h | |
parent | a2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff) | |
parent | 27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff) | |
download | tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'tdehtml/testtdehtml.h')
-rw-r--r-- | tdehtml/testtdehtml.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tdehtml/testtdehtml.h b/tdehtml/testtdehtml.h new file mode 100644 index 000000000..dcb4c1583 --- /dev/null +++ b/tdehtml/testtdehtml.h @@ -0,0 +1,55 @@ +#ifndef TESTTDEHTML_H +#define TESTTDEHTML_H + +#include <kdebug.h> +#include <tqvaluelist.h> +#include <tqdatetime.h> + +/** + * @internal + */ +class Dummy : public TQObject +{ + Q_OBJECT +public: + Dummy( TDEHTMLPart *part ) : TQObject( part ) { m_part = part; }; + +private slots: + void slotOpenURL( const KURL &url, const KParts::URLArgs &args ) + { + m_part->browserExtension()->setURLArgs( args ); + m_part->openURL( url ); + } + void reload() + { + KParts::URLArgs args; args.reload = true; + m_part->browserExtension()->setURLArgs( args ); + m_part->openURL( m_part->url() ); + } + + void toggleNavigable(bool s) + { + m_part->setCaretMode(s); + } + + void toggleEditable(bool s) + { + kdDebug() << "editable: " << s << endl; + m_part->setEditable(s); + } + + void doBenchmark(); + + void handleDone(); + +private: + TDEHTMLPart *m_part; + TQValueList<TQString> filesToBenchmark; + TQMap<TQString, TQValueList<int> > results; + int benchmarkRun; + TQTime loadTimer; + + void nextRun(); +}; + +#endif |