Skip to content

Commit

Permalink
修正SARibbonSystemButtonBar的编码问题,使得vs不会报出一些异常错误
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt1988 committed Feb 7, 2024
1 parent 0c6b1d4 commit 563a82e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
5 changes: 4 additions & 1 deletion src/SARibbonBar/SARibbonSystemButtonBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ QAction* SARibbonSystemButtonBar::addAction(QAction* a, Qt::ToolButtonStyle butt
return d_ptr->mButtonGroup->addAction(a, buttonStyle, popMode);
}

QAction* SARibbonSystemButtonBar::addAction(const QString& text, const QIcon& icon, Qt::ToolButtonStyle buttonStyle, QToolButton::ToolButtonPopupMode popMode)
QAction* SARibbonSystemButtonBar::addAction(const QString& text,
const QIcon& icon,
Qt::ToolButtonStyle buttonStyle,
QToolButton::ToolButtonPopupMode popMode)
{
return d_ptr->mButtonGroup->addAction(text, icon, buttonStyle, popMode);
}
Expand Down
4 changes: 2 additions & 2 deletions src/SARibbonBar/SARibbonSystemButtonBar.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef SARIBBONSYSTEMBUTTONBAR_H
#ifndef SARIBBONSYSTEMBUTTONBAR_H
#define SARIBBONSYSTEMBUTTONBAR_H
#include "SARibbonGlobal.h"
#include <QFrame>
#include <QToolButton>

/**
* \brief 窗口的最大最小化按钮
* @brief 窗口的最大最小化按钮
* @note 内部有个SARibbonButtonGroupWidget,其ObjectName = SASystemButtonGroup
* 如果需要qss,可以进行特化处理:
*
Expand Down
13 changes: 0 additions & 13 deletions src/SARibbonBar/debug/moc_predefs.h

This file was deleted.

0 comments on commit 563a82e

Please sign in to comment.