有线区域滚动
This commit is contained in:
parent
7515443cb2
commit
479666c93c
|
@ -1,5 +1,6 @@
|
|||
#include "lanpage.h"
|
||||
#include <QDebug>
|
||||
#include <QScrollBar>
|
||||
|
||||
#define MAIN_LAYOUT_MARGINS 0,0,0,0
|
||||
#define MAIN_LAYOUT_SPACING 0
|
||||
|
@ -697,6 +698,8 @@ void LanPage::initUI()
|
|||
m_inactivatedLanListWidget->setFrameShape(QFrame::Shape::NoFrame);
|
||||
m_inactivatedLanListWidget->setSpacing(LAN_LIST_SPACING);
|
||||
m_inactivatedLanListWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
m_inactivatedLanListWidget->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
|
||||
m_inactivatedLanListWidget->verticalScrollBar()->setSingleStep(SCROLL_STEP);
|
||||
m_inactivatedAreaLayout->addWidget(m_inactivatedLanListWidget);
|
||||
|
||||
m_settingsLabel->installEventFilter(this);
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
#define ACTIVE_AREA_MAX_HEIGHT 92
|
||||
#define LABEL_HEIGHT 20
|
||||
|
||||
#define SCROLL_STEP 4
|
||||
|
||||
enum KyDeviceType
|
||||
{
|
||||
WIRED,
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#define EMPTY_SSID "emptyssid"
|
||||
#define LOG_FLAG "[WlanPage]"
|
||||
#define LAN_PAGE_INDEX 0
|
||||
#define SCROLL_STEP 4
|
||||
|
||||
WlanPage::WlanPage(QWidget *parent) : TabPage(parent)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue