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()