| 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: Zhen Sun <[email protected]> |
| 20 |
* |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef KLINEFRAME_H |
| 24 |
#define KLINEFRAME_H |
| 25 |
|
| 26 |
#include "gui_g.h" |
| 27 |
#include <QFrame> |
| 28 |
namespace kdk |
| 29 |
{ |
| 30 |
|
| 31 |
class KHLineFramePrivate; |
| 32 |
class KVLineFramePrivate; |
| 33 |
|
| 34 |
/** |
| 35 |
* @defgroup FrameModule |
| 36 |
* @since 2.0.2.1 |
| 37 |
* { |
| 38 |
*/ |
| 39 |
|
| 40 |
class GUI_EXPORT KHLineFrame : public QFrame |
| 41 |
{ |
| 42 |
Q_OBJECT |
| 43 |
public: |
| 44 |
KHLineFrame(QWidget *parent = nullptr); |
| 45 |
~KHLineFrame(); |
| 46 |
|
| 47 |
/** |
| 48 |
* @brief 设置是否遵循默认色板 |
| 49 |
* @param flag |
| 50 |
* @since 2.4.1.0 |
| 51 |
*/ |
| 52 |
void setFollowPalette(bool flag); |
| 53 |
|
| 54 |
private: |
| 55 |
Q_DECLARE_PRIVATE(KHLineFrame) |
| 56 |
KHLineFramePrivate *const d_ptr; |
| 57 |
}; |
| 58 |
|
| 59 |
class GUI_EXPORT KVLineFrame : public QFrame |
| 60 |
{ |
| 61 |
Q_OBJECT |
| 62 |
public: |
| 63 |
KVLineFrame(QWidget *parent = nullptr); |
| 64 |
~KVLineFrame(); |
| 65 |
/** |
| 66 |
* @brief 设置是否遵循默认色板 |
| 67 |
* @param flag |
| 68 |
* @since 2.4.1.0 |
| 69 |
*/ |
| 70 |
void setFollowPalette(bool flag); |
| 71 |
|
| 72 |
private: |
| 73 |
Q_DECLARE_PRIVATE(KVLineFrame) |
| 74 |
KVLineFramePrivate *const d_ptr; |
| 75 |
}; |
| 76 |
|
| 77 |
} |
| 78 |
#endif // KLINEFRAME_H |