bug#97721去掉qss bug#97315label加tooltip

This commit is contained in:
kangshuning 2021-12-16 09:50:44 +08:00
parent 9bd7487b89
commit 774840a126
3 changed files with 6 additions and 4 deletions

View File

@ -110,7 +110,7 @@ void ListItem::paintEvent(QPaintEvent *event)
// painter.setRenderHint(QPainter::Antialiasing); //反锯齿
// painter.setBrush(this->palette().brush(QPalette::Window));
// painter.setPen(Qt::transparent);
// painter.drawRoundedRect(this->rect(), 8, 8);
// painter.drawRoundedRect(this->rect(), 6, 6);
// return QFrame::paintEvent(event);
}
@ -134,7 +134,7 @@ void ListItem::initUI()
// m_hItemLayout->setSpacing(ITEM_FRAME_SPACING);
m_netButton = new RadioItemButton(m_itemFrame);
m_nameLabel = new QLabel(m_itemFrame);
m_nameLabel = new FixLabel(m_itemFrame);
m_infoButton = new InfoButton(m_itemFrame);
m_infoButton->setIconSize(QSize(INFO_ICON_WIDTH,INFO_ICON_HEIGHT));

View File

@ -39,7 +39,7 @@ protected:
protected:
QFrame * m_itemFrame = nullptr;
QLabel * m_nameLabel = nullptr;
FixLabel * m_nameLabel = nullptr;
RadioItemButton * m_netButton = nullptr;
InfoButton * m_infoButton = nullptr;

View File

@ -121,7 +121,9 @@ void TabPage::initUI()
m_mainLayout->addWidget(m_inactivatedNetDivider);
m_mainLayout->addWidget(m_settingsFrame);
m_inactivatedNetListArea->setStyleSheet("QScrollArea{background-color:transparent;}"); //背景透明
QPalette pal = m_inactivatedNetListArea->palette();
pal.setBrush(QPalette::Base, QColor(0,0,0,0)); //背景透明
m_inactivatedNetListArea->setPalette(pal);
}
void TabPage::showDesktopNotify(const QString &message)