DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dwatermarkhelper.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DWATERMARKHELPER_H
6#define DWATERMARKHELPER_H
7#include "dwatermarkwidget.h"
8
9#include <dtkwidget_global.h>
10#include <DObject>
11
12#include <QObject>
13
14DTK_USE_NAMESPACE
15DWIDGET_BEGIN_NAMESPACE
16class DWaterMarkHelperPrivate;
17class DWaterMarkHelper : public QObject, public DTK_CORE_NAMESPACE::DObject
18{
19 Q_OBJECT
20public:
21 static DWaterMarkHelper *instance();
22 void registerWidget(QWidget *w);
23
24 WaterMarkData data() const;
25 void setData(const WaterMarkData &data);
26
27protected:
28 explicit DWaterMarkHelper(QObject *parent = nullptr);
29
30private:
31 D_DECLARE_PRIVATE(DWaterMarkHelper)
32};
33
34DWIDGET_END_NAMESPACE
35
36#endif // DWATERMARKHELPER_H
Definition dwatermarkhelper.h:18
Watermark information structure parent
Definition dwatermarkwidget.h:17