23 lines
557 B
C++
23 lines
557 B
C++
#include "unnnn.h"
|
|
|
|
#include <QPainter>
|
|
using namespace SplitFrame;
|
|
|
|
XWidget::XWidget(ViewPresent *host, Qt::GlobalColor c, QWidget *parent) : FnWrap<XWidget, false>(host), c_store(c) {}
|
|
|
|
void XWidget::paintEvent(QPaintEvent *ev) {
|
|
QPainter p(this);
|
|
p.fillRect(this->rect(), c_store);
|
|
}
|
|
|
|
void XWidget::closeProcess() {}
|
|
|
|
YWidget::YWidget(ViewPresent *host, QWidget *parent) : FnWrap<XWidget, true>(host) {}
|
|
|
|
void YWidget::paintEvent(QPaintEvent *ev) {
|
|
QPainter p(this);
|
|
p.fillRect(this->rect(), Qt::blue);
|
|
}
|
|
|
|
void YWidget::closeProcess() {}
|