1 Star 0 Fork 0

tongy boys/material-pri

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
qtmaterialflatbutton_p.h 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef QTMATERIALFLATBUTTON_P_H
#define QTMATERIALFLATBUTTON_P_H
#include <QColor>
#include <QtGlobal>
#include "lib/qtmaterialtheme.h"
class QtMaterialFlatButton;
class QtMaterialRippleOverlay;
class QtMaterialFlatButtonStateMachine;
class QStateMachine;
class QState;
class QGraphicsDropShadowEffect;
class QtMaterialFlatButtonPrivate
{
Q_DISABLE_COPY(QtMaterialFlatButtonPrivate)
Q_DECLARE_PUBLIC(QtMaterialFlatButton)
public:
QtMaterialFlatButtonPrivate(QtMaterialFlatButton *q);
virtual ~QtMaterialFlatButtonPrivate();
void init();
void initRaiseEffect();
void removeRaiseEffect();
bool isTranparent() const;
QtMaterialFlatButton *const q_ptr;
QtMaterialRippleOverlay *rippleOverlay;
QtMaterialFlatButtonStateMachine *stateMachine;
QStateMachine *shadowStateMachine;
QState *shadowNormalState;
QState *shadowPressedState;
QGraphicsDropShadowEffect *shadowEffect;
Material::Role role;
Material::ButtonType type;
Material::RippleStyle rippleStyle;
Material::ButtonIconPlacement iconPlacement;
Material::OverlayStyle overlayStyle;
Qt::Alignment textAlignment;
QColor backgroundColor;
QColor foregroundColor;
QColor overlayColor;
QColor disabledColor;
QColor disabledBackgroundColor;
qreal fixedRippleRadius;
qreal cornerRadius;
qreal baseOpacity;
qreal fontSize;
bool useThemeColors;
bool useFixedRippleRadius;
bool haloVisible;
};
#endif // QTMATERIALFLATBUTTON_P_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/tongynj/material-pri.git
git@gitee.com:tongynj/material-pri.git
tongynj
material-pri
material-pri
master

搜索帮助