-
-
Notifications
You must be signed in to change notification settings - Fork 703
Expand file tree
/
Copy pathmainwindow.cpp
More file actions
32 lines (26 loc) · 756 Bytes
/
mainwindow.cpp
File metadata and controls
32 lines (26 loc) · 756 Bytes
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
#include <QStandardPaths>
#include <QWebEngineSettings>
#include <QGuiApplication>
#include <QScreen>
#include "mainwindow.h"
#include "view.h"
#include <QGuiApplication>
#include <QScreen>
MainWindow::MainWindow() : QMainWindow()
{
view = new View(this);
view->webView->settings()->setAttribute(QWebEngineSettings::LocalStorageEnabled, true);
view->webView->settings()->setAttribute(QWebEngineSettings::ShowScrollBars, false);
setCentralWidget(view);
QRect screenGeometry = QGuiApplication::primaryScreen()->geometry();
setGeometry(screenGeometry);
showFullScreen();
}
void MainWindow::loadPage(const QString &uri)
{
view->loadPage(uri);
}
void MainWindow::loadImage(const QString &uri)
{
view->loadImage(uri);
}