Debian Codegraph @

kysdk-qtwidgets/src/karrowtabbar.h

raw
1 /*
2 * libkysdk-qtwidgets's Library
3 *
4 * Copyright (C) 2023, KylinSoft Co., Ltd.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this library. If not, see <https://www.gnu.org/licenses/>.
18 *
19 * Authors: Zhenyu Wang <[email protected]>
20 *
21 */
22
23 #ifndef KARROWTABBAR_H
24 #define KARROWTABBAR_H
25
26 #include "knativetabbar.h"
27 #include <QWidget>
28
29 namespace kdk
30 {
31
32 /** @defgroup BarModule
33 * @{
34 */
35
36 class KArrowTabBarPrivate;
37
38 /**
39 * @brief 可显示箭头的tabbar
40 * @since 2.5.2.0
41 */
42 class KArrowTabBar : public QWidget
43 {
44 Q_OBJECT
45 public:
46 KArrowTabBar(QWidget *parent = nullptr);
47
48 /**
49 * @brief 获取knativetabbar
50 * @return
51 */
52 KNativeTabbar *tabbar();
53
54 Q_SIGNALS:
55 /**
56 * @brief 点击会发出信号
57 */
58 void sizeChange();
59
60 protected:
61 void resizeEvent(QResizeEvent *event);
62
63 private:
64 Q_DECLARE_PRIVATE(KArrowTabBar)
65 KArrowTabBarPrivate *const d_ptr;
66 };
67
68 }
69
70 #endif // KArrowTabBar_H