mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 02:40:20 +08:00
add: added more ui functionalities - 3
This commit is contained in:
parent
7fb8cd3d94
commit
93b7f9f4a8
@ -1 +1 @@
|
|||||||
4326
|
4334
|
||||||
|
@ -48,16 +48,16 @@ ConnectionItemWidget::ConnectionItemWidget(const ConnectionId &id, QWidget *pare
|
|||||||
// ======================================= Initialisation for root nodes.
|
// ======================================= Initialisation for root nodes.
|
||||||
ConnectionItemWidget::ConnectionItemWidget(const GroupId &id, QWidget *parent) : ConnectionItemWidget(parent)
|
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(connTypeLabel);
|
||||||
layout()->removeWidget(dataLabel);
|
layout()->removeWidget(dataLabel);
|
||||||
delete connTypeLabel;
|
delete connTypeLabel;
|
||||||
delete dataLabel;
|
delete dataLabel;
|
||||||
//
|
//
|
||||||
|
groupId = id;
|
||||||
|
itemType = GROUP_HEADER_ITEM;
|
||||||
|
originalItemName = ConnectionManager->GetDisplayName(id);
|
||||||
|
RecalculateConnectionsCount();
|
||||||
|
//
|
||||||
auto font = connNameLabel->font();
|
auto font = connNameLabel->font();
|
||||||
font.setBold(true);
|
font.setBold(true);
|
||||||
connNameLabel->setFont(font);
|
connNameLabel->setFont(font);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>203</width>
|
<width>203</width>
|
||||||
<height>58</height>
|
<height>60</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -49,6 +49,9 @@
|
|||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="page">
|
<widget class="QWidget" name="page">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<property name="sizeConstraint">
|
||||||
|
<enum>QLayout::SetNoConstraint</enum>
|
||||||
|
</property>
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
@ -61,6 +64,9 @@
|
|||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="spacing">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
@ -70,13 +76,13 @@
|
|||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>6</number>
|
<number>7</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>6</number>
|
<number>7</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0">
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0">
|
||||||
|
Loading…
Reference in New Issue
Block a user