From 82bbe1bdfff37c71cdc4487a33e285c46f422556 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 7 Sep 2017 10:43:33 +0500 Subject: [PATCH] UI: Fix main tab icons on startup. --- src/ui/fortmanager.cpp | 6 ++++++ src/ui/qml/main.qml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ui/fortmanager.cpp b/src/ui/fortmanager.cpp index 09273b71..a05106eb 100644 --- a/src/ui/fortmanager.cpp +++ b/src/ui/fortmanager.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "activityLog/logbuffer.h" @@ -96,6 +97,11 @@ void FortManager::setupEngine() m_appWindow = qobject_cast( m_engine->rootObjects().first()); Q_ASSERT(m_appWindow); + + // XXX: Workaround to fix icons' incorrect position on main tab buttons + QTimer::singleShot(100, [this]() { + m_appWindow->resize(1024, 768); + }); } void FortManager::showTrayIcon() diff --git a/src/ui/qml/main.qml b/src/ui/qml/main.qml index c53f75c6..a550d62a 100644 --- a/src/ui/qml/main.qml +++ b/src/ui/qml/main.qml @@ -7,8 +7,8 @@ import com.fortfirewall 1.0 ApplicationWindow { id: appWindow - width: 800 - height: 600 + width: 1025 + height: 768 minimumWidth: 700 minimumHeight: 600