From 03235146f824c377b6c9632caeea815fc5e1d19f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Mat=C4=9Bj=C3=A1k?= Date: Fri, 27 Apr 2018 16:30:43 +0200 Subject: [PATCH] toolbar changed, HDPI disabled --- main.cpp | 2 +- main.qml | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/main.cpp b/main.cpp index 785cd11..cf0b397 100644 --- a/main.cpp +++ b/main.cpp @@ -56,7 +56,7 @@ int main(int argc, char *argv[]) { qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + //QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication app(argc, argv); QtWebEngine::initialize(); diff --git a/main.qml b/main.qml index 8ad5d3a..59fb477 100644 --- a/main.qml +++ b/main.qml @@ -56,8 +56,6 @@ import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 Window { - width: 1920 - height: 1200 visible: true ToolBar { @@ -79,19 +77,14 @@ Window { onClicked: webView.goForward() } - TextField { - id: urlText - text: "" - } - ToolButton { - text: qsTr("Reload") + text: qsTr("↻") onClicked: webView.reload() } - ToolButton { - text: qsTr("Enter") - onClicked: webView.url = urlText.text + Label { + id: urlText + text: "" } } } @@ -113,4 +106,3 @@ Window { anchors.right: parent.right } } - -- 2.39.2