From 93b7f9f4a8805b39fae25a0fb2385d131b89059e Mon Sep 17 00:00:00 2001
From: Qv2ray-dev <59914293+Qv2ray-dev@users.noreply.github.com>
Date: Mon, 2 Mar 2020 00:15:19 +0800
Subject: [PATCH] add: added more ui functionalities - 3
---
makespec/BUILDVERSION | 2 +-
src/ui/widgets/ConnectionItemWidget.cpp | 10 +++++-----
src/ui/widgets/ConnectionItemWidget.ui | 12 +++++++++---
3 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION
index 7174ebd1..208a59c4 100644
--- a/makespec/BUILDVERSION
+++ b/makespec/BUILDVERSION
@@ -1 +1 @@
-4326
+4334
diff --git a/src/ui/widgets/ConnectionItemWidget.cpp b/src/ui/widgets/ConnectionItemWidget.cpp
index 71b30510..c4ac3d4a 100644
--- a/src/ui/widgets/ConnectionItemWidget.cpp
+++ b/src/ui/widgets/ConnectionItemWidget.cpp
@@ -48,16 +48,16 @@ ConnectionItemWidget::ConnectionItemWidget(const ConnectionId &id, QWidget *pare
// ======================================= Initialisation for root nodes.
ConnectionItemWidget::ConnectionItemWidget(const GroupId &id, QWidget *parent) : ConnectionItemWidget(parent)
{
- groupId = id;
- itemType = GROUP_HEADER_ITEM;
- originalItemName = ConnectionManager->GetDisplayName(id);
- RecalculateConnectionsCount();
- //
layout()->removeWidget(connTypeLabel);
layout()->removeWidget(dataLabel);
delete connTypeLabel;
delete dataLabel;
//
+ groupId = id;
+ itemType = GROUP_HEADER_ITEM;
+ originalItemName = ConnectionManager->GetDisplayName(id);
+ RecalculateConnectionsCount();
+ //
auto font = connNameLabel->font();
font.setBold(true);
connNameLabel->setFont(font);
diff --git a/src/ui/widgets/ConnectionItemWidget.ui b/src/ui/widgets/ConnectionItemWidget.ui
index 51f3a80d..ea22eb3e 100644
--- a/src/ui/widgets/ConnectionItemWidget.ui
+++ b/src/ui/widgets/ConnectionItemWidget.ui
@@ -7,7 +7,7 @@
0
0
203
- 58
+ 60
@@ -49,6 +49,9 @@
+
+ QLayout::SetNoConstraint
+
0
@@ -61,6 +64,9 @@
0
+
+ 0
+
-
@@ -70,13 +76,13 @@
6
- 6
+ 7
6
- 6
+ 7
-