summaryrefslogtreecommitdiffstats
path: root/Widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'Widget.h')
-rw-r--r--Widget.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Widget.h b/Widget.h
new file mode 100644
index 0000000..40079e2
--- /dev/null
+++ b/Widget.h
@@ -0,0 +1,31 @@
+#ifndef WIDGET_H
+#define WIDGET_H
+
+#include <QWidget>
+#include <QUrl>
+class QWebView;
+class QLineEdit;
+class QPushButton;
+
+class Widget : public QWidget
+{
+ Q_OBJECT
+
+public:
+ Widget(QWidget *parent = 0);
+
+private:
+ QWebView *m_webView;
+ QLineEdit *m_entry;
+ QPushButton *m_stopReload;
+ bool m_reloadButtonOn;
+
+private slots:
+ void navigate();
+ void navigated(const QUrl &url);
+ void doStopReload();
+ void setReloadOn();
+ void setReloadOff();
+};
+
+#endif // WIDGET_H