Skip to content

Commit

Permalink
hotfix:修正qwk开启后,eventfilter没有捕获的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt1988 committed Jul 30, 2024
1 parent c840843 commit c71859b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SARibbonBar/SARibbonMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ void SARibbonMainWindow::setRibbonBar(SARibbonBar* ribbon)
#else
// 捕获ribbonbar的事件
ribbon->installEventFilter(this);
// SARibbonSystemButtonBar的eventfilter捕获mainwindow的事件
// 通过eventerfilter来处理mainwindow的事件,避免用户错误的继承resizeEvent导致systembar的位置异常
installEventFilter(sysBar);
// 设置窗体的标题栏高度
d_ptr->mFramelessHelper->setTitleHeight(th);
d_ptr->mFramelessHelper->setRubberBandOnResize(false);
#endif
// SARibbonSystemButtonBar的eventfilter捕获mainwindow的事件
// 通过eventerfilter来处理mainwindow的事件,避免用户错误的继承resizeEvent导致systembar的位置异常
installEventFilter(sysBar);
if (!d_ptr->mEventFilter) {
d_ptr->mEventFilter = new SARibbonMainWindowEventFilter(this);
installEventFilter(d_ptr->mEventFilter);
Expand Down

0 comments on commit c71859b

Please sign in to comment.