From 9a38098d9a18f413b89f84ce4c444c70f4b0b530 Mon Sep 17 00:00:00 2001 From: lixueman Date: Thu, 28 Jul 2022 08:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=B1=BB=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E9=80=89=E6=8B=A9=E6=A1=86=E5=AE=BD=E5=BA=A6=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9C=80=E5=A4=A7=E5=8F=B7=E5=AD=97=E4=BD=93?= =?UTF-8?q?hover=E8=B6=85=E5=87=BA=E8=BE=B9=E7=95=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/changelog | 1 + src/UserInterface/full_mainwindow.cpp | 3 +-- src/UserInterface/mainwindow.cpp | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index be7474a..c28265f 100755 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ ukui-menu (3.1.1-ok4~0727) yangtze; urgency=medium * 增加开始菜单藏文翻译 * 调整点击应用时窗口隐藏时机 + * 修改分类下拉选择框宽度 -- lixueman Wed, 27 Jul 2022 20:32:11 +0800 diff --git a/src/UserInterface/full_mainwindow.cpp b/src/UserInterface/full_mainwindow.cpp index 555c6a6..dfd692f 100755 --- a/src/UserInterface/full_mainwindow.cpp +++ b/src/UserInterface/full_mainwindow.cpp @@ -177,7 +177,6 @@ void FullMainWindow::initAppListUI() void FullMainWindow::initMenu() { m_dropDownMenu = new MenuBox(this); - m_dropDownMenu->setFixedWidth(Style::DropMenuWidth); m_allAction = new QAction(m_dropDownMenu); m_letterAction = new QAction(m_dropDownMenu); m_funcAction = new QAction(m_dropDownMenu); @@ -381,7 +380,7 @@ void FullMainWindow::iconAnimationFinished() { m_dropDownMenu->raise(); m_dropDownMenu->exec(m_fullSelectMenuButton->mapToGlobal(QPoint(m_fullSelectMenuButton->width() - -Style::DropMenuWidth, 45))); + - m_dropDownMenu->sizeHint().width(), 45))); } void FullMainWindow::keyPressEvent(QKeyEvent *e) diff --git a/src/UserInterface/mainwindow.cpp b/src/UserInterface/mainwindow.cpp index 147ddae..8427b34 100755 --- a/src/UserInterface/mainwindow.cpp +++ b/src/UserInterface/mainwindow.cpp @@ -560,7 +560,6 @@ void MainWindow::initUi() } m_dropDownMenu = new MenuBox(this); - m_dropDownMenu->setFixedWidth(Style::DropMenuWidth); m_allAction = new QAction(m_dropDownMenu); m_letterAction = new QAction(m_dropDownMenu); m_funcAction = new QAction(m_dropDownMenu); @@ -783,7 +782,7 @@ void MainWindow::iconAnimationFinished() { m_dropDownMenu->raise(); m_dropDownMenu->exec(m_selectMenuButton->mapToGlobal(QPoint(m_selectMenuButton->width() - -Style::DropMenuWidth + 5, 29))); + - m_dropDownMenu->sizeHint().width() + 5, 29))); } void MainWindow::maxAnimationFinished()