QtNovelUI/u_test/unnnn.h

31 lines
715 B
C
Raw Normal View History

#ifndef UNNNN_H
#define UNNNN_H
#include <QString>
2023-08-20 17:22:48 +00:00
#include <QWidget>
2023-12-30 05:04:51 +00:00
#include <splitwindow.h>
2023-08-26 12:40:57 +00:00
class XWidget : public SplitFrame::FnWrap<XWidget, false> {
public:
2023-12-30 05:04:51 +00:00
XWidget(SplitFrame::SplitPanel *host, Qt::GlobalColor c, QWidget *parent = nullptr);
2023-08-26 12:40:57 +00:00
virtual void paintEvent(QPaintEvent *ev) override;
// FnWrap interface
public:
virtual void closeProcess() override;
private:
Qt::GlobalColor c_store;
};
class YWidget : public SplitFrame::FnWrap<XWidget, true> {
public:
2023-12-30 05:04:51 +00:00
YWidget(SplitFrame::SplitPanel *host, QWidget *parent = nullptr);
2023-08-26 12:40:57 +00:00
virtual void paintEvent(QPaintEvent *ev) override;
// FnWrap interface
public:
virtual void closeProcess() override;
};
#endif // UNNNN_H