diff --git a/src-vpn/frontend/single-pages/singlepage.cpp b/src-vpn/frontend/single-pages/singlepage.cpp index 43a29603..70257642 100644 --- a/src-vpn/frontend/single-pages/singlepage.cpp +++ b/src-vpn/frontend/single-pages/singlepage.cpp @@ -104,7 +104,6 @@ void SinglePage::initWindowProperties() { QPainterPath path; auto rect = this->rect(); - path.addRoundedRect(rect, 12, 12); path.addRect(rect); KWindowEffects::enableBlurBehind(this->winId(), true, QRegion(path.toFillPolygon().toPolygon())); //背景模糊 } @@ -159,7 +158,7 @@ void SinglePage::paintEvent(QPaintEvent *event) { QPainterPath rectPath; col.setAlphaF(m_transparency); - rectPath.addRoundedRect(this->rect(),12,12); + rectPath.addRect(this->rect()); painter.setBrush(col); painter.drawPath(rectPath); diff --git a/src/frontend/mainwindow.cpp b/src/frontend/mainwindow.cpp index ae258c48..31fc2031 100644 --- a/src/frontend/mainwindow.cpp +++ b/src/frontend/mainwindow.cpp @@ -332,7 +332,7 @@ void MainWindow::initUI() m_centralWidget = new QTabWidget(this); this->setCentralWidget(m_centralWidget); m_centralWidget->tabBar()->setFixedWidth(this->width()+1); - m_centralWidget->tabBar()->setProperty("setRadius", 12); +// m_centralWidget->tabBar()->setProperty("setRadius", 12); // m_centralWidget->tabBar()->setStyleSheet("QTabBar::tab{min-height:40px}"); m_lanWidget = new LanPage(m_centralWidget); m_wlanWidget = new WlanPage(m_centralWidget);