1 Star 0 Fork 0

tongy boys/material-pri

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
qtmaterialcanvas.h 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef QTMATERIALCANVAS_H
#define QTMATERIALCANVAS_H
#include "qtmaterialwidgets.h"
#include <QScrollArea>
class QtMaterialCanvasPrivate;
class QTMATERIALWIDGETS_EXPORT QtMaterialCanvas : public QScrollArea
{
Q_OBJECT
Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
public:
explicit QtMaterialCanvas(QWidget *parent = nullptr);
explicit QtMaterialCanvas(Qt::Orientation orientation, QWidget *parent = nullptr);
~QtMaterialCanvas() override;
Qt::Orientation orientation() const;
void setOrientation(Qt::Orientation orientation);
bool useThemeColors() const;
void setUseThemeColors(bool value);
QColor backgroundColor() const;
void setBackgroundColor(const QColor &color);
protected:
const QScopedPointer<QtMaterialCanvasPrivate> d_ptr;
private:
Q_DISABLE_COPY(QtMaterialCanvas)
Q_DECLARE_PRIVATE(QtMaterialCanvas)
// QWidget interface
protected:
void paintEvent(QPaintEvent *event) override;
};
#endif // QTMATERIALCANVAS_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

搜索帮助

0d507c66 1850385 C8b1a773 1850385