1 Star 0 Fork 0

tongy boys/material-pri

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
qtmaterialiconbutton.h 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef QTMATERIALICONBUTTON_H
#define QTMATERIALICONBUTTON_H
#include "qtmaterialwidgets.h"
#include <QAbstractButton>
class QtMaterialIconButtonPrivate;
class QTMATERIALWIDGETS_EXPORT QtMaterialIconButton : public QAbstractButton
{
Q_OBJECT
public:
explicit QtMaterialIconButton(const QIcon &icon = QIcon(), QWidget *parent = nullptr);
~QtMaterialIconButton() override;
bool useThemeColors() const;
void setUseThemeColors(bool value);
QColor color() const;
void setColor(const QColor &color);
QColor disabledColor() const;
void setDisabledColor(const QColor &color);
protected:
QtMaterialIconButton(QtMaterialIconButtonPrivate &d, QWidget *parent = nullptr);
const QScopedPointer<QtMaterialIconButtonPrivate> d_ptr;
private:
Q_DISABLE_COPY(QtMaterialIconButton)
Q_DECLARE_PRIVATE(QtMaterialIconButton)
// QWidget interface
public:
QSize sizeHint() const override;
protected:
bool event(QEvent *event) override;
bool eventFilter(QObject *obj, QEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
void paintEvent(QPaintEvent *event) override;
};
#endif // QTMATERIALICONBUTTON_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

搜索帮助