instAdmin/Cpp/GisDes/SaRibbon/SARibbonBar/SARibbonPannelOptionButton.h
2024-10-29 22:24:50 +08:00

24 lines
763 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef SARIBBONPANNELOPTIONBUTTON_H
#define SARIBBONPANNELOPTIONBUTTON_H
#include <QToolButton>
#include "SARibbonGlobal.h"
class QAction;
/**
* @brief Pannel右下角的操作按钮
*
* 此按钮和一个action关联使用@ref SARibbonPannel::addOptionAction 函数用于生成此按钮,正常来说
* 用户并不需要直接操作此类,仅仅用于样式设计
* 如果一定要重载此按钮,可以通过重载@ref SARibbonElementFactory
* 的 @ref SARibbonElementFactory::createRibbonPannelOptionButton来实现新的OptionButton
*
*/
class SA_RIBBON_EXPORT SARibbonPannelOptionButton : public QToolButton
{
Q_OBJECT
public:
SARibbonPannelOptionButton(QWidget* parent = Q_NULLPTR);
};
#endif // SAROBBONPANNELOPTIONBUTTON_H