修改分类下拉选择框宽度,解决最大号字体hover超出边界问题
This commit is contained in:
parent
a2a6a90b73
commit
9a38098d9a
|
@ -2,6 +2,7 @@ ukui-menu (3.1.1-ok4~0727) yangtze; urgency=medium
|
|||
|
||||
* 增加开始菜单藏文翻译
|
||||
* 调整点击应用时窗口隐藏时机
|
||||
* 修改分类下拉选择框宽度
|
||||
|
||||
-- lixueman <lixueman@kylinos.cn> Wed, 27 Jul 2022 20:32:11 +0800
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue