Fix bug 141204 网络项间距
This commit is contained in:
parent
a6940cc826
commit
fcd2ef420a
|
@ -22,7 +22,8 @@
|
||||||
|
|
||||||
#define MAIN_LAYOUT_MARGINS 0,0,0,0
|
#define MAIN_LAYOUT_MARGINS 0,0,0,0
|
||||||
#define MAIN_LAYOUT_SPACING 0
|
#define MAIN_LAYOUT_SPACING 0
|
||||||
#define ITEM_FRAME_MARGINS 12,6,16,6
|
#define ITEM_FRAME_MARGINS 12,4,16,4
|
||||||
|
|
||||||
#define ITEM_FRAME_SPACING 8
|
#define ITEM_FRAME_SPACING 8
|
||||||
#define FRAME_WIDTH 404
|
#define FRAME_WIDTH 404
|
||||||
#define INFO_ICON_WIDTH 16
|
#define INFO_ICON_WIDTH 16
|
||||||
|
@ -156,6 +157,7 @@ void ListItem::initUI()
|
||||||
m_hItemLayout = new QHBoxLayout(m_itemFrame);
|
m_hItemLayout = new QHBoxLayout(m_itemFrame);
|
||||||
m_hItemLayout->setContentsMargins(ITEM_FRAME_MARGINS);
|
m_hItemLayout->setContentsMargins(ITEM_FRAME_MARGINS);
|
||||||
m_hItemLayout->setSpacing(ITEM_FRAME_SPACING);
|
m_hItemLayout->setSpacing(ITEM_FRAME_SPACING);
|
||||||
|
m_hItemLayout->setAlignment(Qt::AlignHCenter);
|
||||||
|
|
||||||
m_netButton = new RadioItemButton(m_itemFrame);
|
m_netButton = new RadioItemButton(m_itemFrame);
|
||||||
m_nameLabel = new FixLabel(m_itemFrame);
|
m_nameLabel = new FixLabel(m_itemFrame);
|
||||||
|
|
|
@ -311,6 +311,7 @@ void WlanListItem::initWlanUI()
|
||||||
|
|
||||||
m_mainLayout->addWidget(m_pwdFrame);
|
m_mainLayout->addWidget(m_pwdFrame);
|
||||||
m_mainLayout->addWidget(m_autoConnectFrame);
|
m_mainLayout->addWidget(m_autoConnectFrame);
|
||||||
|
m_mainLayout->addStretch();
|
||||||
|
|
||||||
m_pwdFrame->hide();
|
m_pwdFrame->hide();
|
||||||
m_autoConnectFrame->hide();
|
m_autoConnectFrame->hide();
|
||||||
|
|
|
@ -81,6 +81,7 @@ void TabPage::initUI()
|
||||||
// m_activatedNetLayout->setSpacing(NET_LAYOUT_SPACING);
|
// m_activatedNetLayout->setSpacing(NET_LAYOUT_SPACING);
|
||||||
m_activatedNetLabel = new QLabel(m_activatedNetFrame);
|
m_activatedNetLabel = new QLabel(m_activatedNetFrame);
|
||||||
m_activatedNetLabel->setContentsMargins(TEXT_MARGINS);
|
m_activatedNetLabel->setContentsMargins(TEXT_MARGINS);
|
||||||
|
m_activatedNetLabel->setFixedHeight(TEXT_HEIGHT);
|
||||||
m_activatedNetLayout->addWidget(m_activatedNetLabel);
|
m_activatedNetLayout->addWidget(m_activatedNetLabel);
|
||||||
m_activatedNetDivider = new Divider(this);
|
m_activatedNetDivider = new Divider(this);
|
||||||
|
|
||||||
|
@ -93,6 +94,7 @@ void TabPage::initUI()
|
||||||
|
|
||||||
m_inactivatedNetLabel = new QLabel(m_inactivatedNetFrame);
|
m_inactivatedNetLabel = new QLabel(m_inactivatedNetFrame);
|
||||||
m_inactivatedNetLabel->setContentsMargins(TEXT_MARGINS);
|
m_inactivatedNetLabel->setContentsMargins(TEXT_MARGINS);
|
||||||
|
m_inactivatedNetLabel->setFixedHeight(TEXT_HEIGHT);
|
||||||
|
|
||||||
// m_inactivatedNetListArea = new QScrollArea(m_inactivatedNetFrame);
|
// m_inactivatedNetListArea = new QScrollArea(m_inactivatedNetFrame);
|
||||||
// m_inactivatedNetListArea->setFrameShape(QFrame::Shape::NoFrame);
|
// m_inactivatedNetListArea->setFrameShape(QFrame::Shape::NoFrame);
|
||||||
|
|
|
@ -57,6 +57,7 @@ enum network_mode {
|
||||||
#define NET_LAYOUT_SPACING 8
|
#define NET_LAYOUT_SPACING 8
|
||||||
#define NET_LIST_SPACING 0
|
#define NET_LIST_SPACING 0
|
||||||
#define TEXT_MARGINS 16,0,0,0
|
#define TEXT_MARGINS 16,0,0,0
|
||||||
|
#define TEXT_HEIGHT 20
|
||||||
//#define SCROLL_AREA_HEIGHT 200
|
//#define SCROLL_AREA_HEIGHT 200
|
||||||
#define SETTINGS_LAYOUT_MARGINS 23,0,24,0
|
#define SETTINGS_LAYOUT_MARGINS 23,0,24,0
|
||||||
#define TRANSPARENT_COLOR QColor(0,0,0,0)
|
#define TRANSPARENT_COLOR QColor(0,0,0,0)
|
||||||
|
|
|
@ -30,9 +30,9 @@
|
||||||
//#define FOREGROUND_COLOR_PRESS QColor(36,109,212,255)
|
//#define FOREGROUND_COLOR_PRESS QColor(36,109,212,255)
|
||||||
#define FOREGROUND_COLOR_BRIGHTTEXT qApp->palette().brightText().color()
|
#define FOREGROUND_COLOR_BRIGHTTEXT qApp->palette().brightText().color()
|
||||||
#define FOREGROUND_COLOR_HIGHLIGHT qApp->palette().highlight().color()
|
#define FOREGROUND_COLOR_HIGHLIGHT qApp->palette().highlight().color()
|
||||||
#define OUTER_PATH 8,8,16,16
|
#define OUTER_PATH 8,10,16,16
|
||||||
#define INNER_PATH 9,9,14,14
|
#define INNER_PATH 9,11,14,14
|
||||||
#define TEXT_POS 14,5,16,16,0
|
#define TEXT_POS 14,7,16,16,0
|
||||||
|
|
||||||
#define BUTTON_SIZE 36,36
|
#define BUTTON_SIZE 36,36
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue