Skip to content

Commit

Permalink
hotfix:修正qwk下没有安装事件的异常
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt1988 committed Jul 30, 2024
1 parent c71859b commit 14371ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/SARibbon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15667,13 +15667,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
2 changes: 1 addition & 1 deletion src/SARibbon.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class QWidget;
* @def ribbon的数字版本 MAJ.MIN.{PAT}
*/
#ifndef SA_RIBBON_BAR_VERSION_PAT
#define SA_RIBBON_BAR_VERSION_PAT 1
#define SA_RIBBON_BAR_VERSION_PAT 3
#endif

#ifndef SA_RIBBON_BAR_NO_EXPORT
Expand Down
2 changes: 1 addition & 1 deletion src/SARibbonBar/SARibbonGlobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class QWidget;
* @def ribbon的数字版本 MAJ.MIN.{PAT}
*/
#ifndef SA_RIBBON_BAR_VERSION_PAT
#define SA_RIBBON_BAR_VERSION_PAT 1
#define SA_RIBBON_BAR_VERSION_PAT 3
#endif

#ifndef SA_RIBBON_BAR_NO_EXPORT
Expand Down

0 comments on commit 14371ab

Please sign in to comment.