forked from svdm/ChumbyBrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
36 lines (28 loc) · 892 Bytes
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2011 Stefan A. van der Meer
// See "LICENSE" file included with source code for terms and conditions.
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
#include <QtGui/QProgressBar>
#include <QtWebKit/QWebView>
namespace Ui
{
class MainWindowClass;
}
// MainWindow is the root window of the app, containing the QWebView etc.
// Its only task defined here is the initial setup of those widgets.
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
// Construct a MainWindow in which the given url will be loaded. A custom
// page can be injected, which will be passed on to the QWebView widget.
MainWindow(const QUrl &url, QWebPage *custom_page = 0, QWidget *parent = 0);
~MainWindow();
public slots:
void goTo(const QString);
private:
Ui::MainWindowClass *ui;
QWebView *webview;
};
#endif // MAINWINDOW_H