]> rtime.felk.cvut.cz Git - coffee/mtbrowser.git/commitdiff
toolbar changed, HDPI disabled
authorJiří Matěják <jiri.matejak@fel.cvut.cz>
Fri, 27 Apr 2018 14:30:43 +0000 (16:30 +0200)
committerJiří Matěják <jiri.matejak@fel.cvut.cz>
Fri, 27 Apr 2018 14:30:43 +0000 (16:30 +0200)
main.cpp
main.qml

index 785cd112ad990679e1537e1f90c38b6597e8203a..cf0b3970d9106dd2ad126a76e963fb47498aa167 100644 (file)
--- 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();
index 8ad5d3a0f396b3f24daf2c5c62dba6d7eaf42cec..59fb477aea469b3dcc294aa0afb6d5d818ddbd86 100644 (file)
--- 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
     }
 }
-