summaryrefslogtreecommitdiffstats
path: root/tdehtml/testtdehtml.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:21 -0600
commitdfe289850f068f19ba4a83ab4e7e22a7e09c13c9 (patch)
treec297348a55df66c571de4525646e0b9762427353 /tdehtml/testtdehtml.h
parentb7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff)
downloadtdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.tar.gz
tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdehtml/testtdehtml.h')
-rw-r--r--tdehtml/testtdehtml.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/tdehtml/testtdehtml.h b/tdehtml/testtdehtml.h
new file mode 100644
index 000000000..4fd76d044
--- /dev/null
+++ b/tdehtml/testtdehtml.h
@@ -0,0 +1,55 @@
+#ifndef TESTKHTML_H
+#define TESTKHTML_H
+
+#include <kdebug.h>
+#include <tqvaluelist.h>
+#include <tqdatetime.h>
+
+/**
+ * @internal
+ */
+class Dummy : public TQObject
+{
+ Q_OBJECT
+public:
+ Dummy( KHTMLPart *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:
+ KHTMLPart *m_part;
+ TQValueList<TQString> filesToBenchmark;
+ TQMap<TQString, TQValueList<int> > results;
+ int benchmarkRun;
+ TQTime loadTimer;
+
+ void nextRun();
+};
+
+#endif