Merge branch 'dbus-interface' of http://gitlab2.kylin.com/kylin-desktop/kylin-nm into 1206

This commit is contained in:
renpeijia 2021-12-07 09:18:39 +08:00
commit eea3d45d07
3 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,7 @@ LanListItem::LanListItem(QWidget *parent) : ListItem(parent)
{
m_isActive = false;
m_netButton->setButtonIcon(QIcon::fromTheme("network-offline-symbolic"));
m_netButton->setDefaultPixmap();
setIcon(false);
const QString str=tr("Not connected");
m_nameLabel->setText(str);
this->m_infoButton->hide();

View File

@ -738,6 +738,7 @@ void LanPage::initUI()
m_inactivatedLanListWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_inactivatedLanListWidget->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
m_inactivatedLanListWidget->verticalScrollBar()->setSingleStep(SCROLL_STEP);
m_inactivatedLanListWidget->verticalScrollBar()->setContextMenuPolicy(Qt::NoContextMenu);
m_inactivatedAreaLayout->addWidget(m_inactivatedLanListWidget);
m_settingsLabel->installEventFilter(this);

View File

@ -88,6 +88,7 @@ void WlanPage::initWlanUI()
m_inactivatedNetListWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_inactivatedNetListWidget->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
m_inactivatedNetListWidget->verticalScrollBar()->setSingleStep(SCROLL_STEP);
m_inactivatedNetListWidget->verticalScrollBar()->setContextMenuPolicy(Qt::NoContextMenu);
addWlanMoreItem();
m_inactivatedAreaLayout->addWidget(m_inactivatedNetListWidget);