mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 14:29:54 +08:00
23 lines
379 B
C++
23 lines
379 B
C++
#include "vtitlebar.h"
|
|
|
|
#include <QStyleOption>
|
|
#include <QPainter>
|
|
|
|
using namespace vnotex;
|
|
|
|
VTitleBar::VTitleBar(QWidget *p_parent)
|
|
: QWidget(p_parent)
|
|
{
|
|
|
|
}
|
|
|
|
void VTitleBar::paintEvent(QPaintEvent *p_event)
|
|
{
|
|
QStyleOption opt;
|
|
opt.init(this);
|
|
QPainter p(this);
|
|
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
|
|
|
QWidget::paintEvent(p_event);
|
|
}
|