DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
darrowlinedrawer.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DARROWLINEDRAWER_H
6#define DARROWLINEDRAWER_H
7
8#include <DDrawer>
9
10DWIDGET_BEGIN_NAMESPACE
11
12class DBaseLine;
13class DArrowLineDrawerPrivate;
14class LIBDTKWIDGETSHARED_EXPORT DArrowLineDrawer : public DDrawer
15{
16 Q_OBJECT
17 D_DECLARE_PRIVATE(DArrowLineDrawer)
18
19public:
20 explicit DArrowLineDrawer(QWidget *parent = nullptr);
21 void setTitle(const QString &title);
22 void setExpand(bool value);
23#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
24 D_DECL_DEPRECATED DBaseLine *headerLine();
25#endif
26
27private:
28 void setHeader(QWidget *header);
29 void resizeEvent(QResizeEvent *e);
30};
31
32DWIDGET_END_NAMESPACE
33
34#endif // DARROWLINEDRAWER_H
一个美观的可展开的控件
Definition darrowlinedrawer.h:15
可以使用 DBaseLine 类快速创建具有位于左右两侧的两个控件的行控件.
Definition dbaseline.h:18
A beautifully developed control.
Definition ddrawer.h:13
void setHeader(QWidget *header)
Set the title control The title control will always be displayed in the layout header Title control
Definition ddrawer.cpp:132
virtual void setExpand(bool value)
Set the visibility of the content control.
Definition ddrawer.cpp:202