/***************************************************************************
 **
 **  Copyright (C) 2018-2023 wangjianjun <wangjianjun1018@qq.com>
 **  Contact: https://blog.csdn.net/wocanimei007?type=blog
 **
 **
****************************************************************************/
#ifndef MINISPLITTER_H
#define MINISPLITTER_H

#include <QSplitter>
#include "frameless_global.h"

QT_BEGIN_NAMESPACE
class QSplitterHandle;
QT_END_NAMESPACE



class FRAMELESS_SHARED_EXPORT MiniSplitter : public QSplitter
{
    Q_OBJECT
public:
    enum SplitterStyle {Dark, Light};

    MiniSplitter(QWidget *parent = nullptr, SplitterStyle style = Dark);
    MiniSplitter(Qt::Orientation orientation, SplitterStyle style = Dark);

protected:
    QSplitterHandle *createHandle();

private:
    SplitterStyle m_style;
};



#endif // MINISPLITTER_H
