Jinxujie 2021-11-28 14:54:21 +08:00
parent 86ef3190fd
commit ad8131164f
3 changed files with 7 additions and 2 deletions

View File

@ -217,7 +217,7 @@ void WlanListItem::initWlanUI()
#define PWD_AREA_HEIGHT 36 #define PWD_AREA_HEIGHT 36
#define CONNECT_BUTTON_WIDTH 96 #define CONNECT_BUTTON_WIDTH 96
#define FRAME_CONTENT_MARGINS 56,4,16,4 #define FRAME_CONTENT_MARGINS 56,0,16,4
#define FRAME_SPACING 8 #define FRAME_SPACING 8
#define PWD_CONTENT_MARGINS 8,0,34,0 #define PWD_CONTENT_MARGINS 8,0,34,0
#define SHOW_PWD_BUTTON_SIZE 24,24 #define SHOW_PWD_BUTTON_SIZE 24,24

View File

@ -34,6 +34,9 @@ LanPage::LanPage(QWidget *parent) : TabPage(parent)
initLanArea(); initLanArea();
connect(m_activeResourse, &KyActiveConnectResourse::stateChangeReason, this, &LanPage::onConnectionStateChange); connect(m_activeResourse, &KyActiveConnectResourse::stateChangeReason, this, &LanPage::onConnectionStateChange);
connect(m_activeResourse, &KyActiveConnectResourse::activeConnectRemove, this, [=] (QString activeConnectUuid) {
sendLanStateChangeSignal(activeConnectUuid,Deactivated);
} );
connect(m_connectResourse, &KyConnectResourse::connectionAdd, this, &LanPage::onAddConnection); connect(m_connectResourse, &KyConnectResourse::connectionAdd, this, &LanPage::onAddConnection);
connect(m_connectResourse, &KyConnectResourse::connectionRemove, this, &LanPage::onRemoveConnection); connect(m_connectResourse, &KyConnectResourse::connectionRemove, this, &LanPage::onRemoveConnection);

View File

@ -11,8 +11,10 @@ Divider::Divider(QWidget * parent) : QFrame(parent)
void Divider::paintEvent(QPaintEvent * e) void Divider::paintEvent(QPaintEvent * e)
{ {
QPainter p(this); QPainter p(this);
QColor color;
color.setRgb(77,77,77);
p.save(); p.save();
p.setBrush(this->palette().color(QPalette::Text)); p.setBrush(color);
p.setPen(Qt::transparent); p.setPen(Qt::transparent);
p.setOpacity(0.3); p.setOpacity(0.3);
p.drawRoundedRect(this->rect(), 6, 6); p.drawRoundedRect(this->rect(), 6, 6);