Ported now to Qt 6
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Syping 2020-09-28 05:33:04 +02:00
parent f9129f8364
commit 678425a7c5
17 changed files with 172 additions and 37 deletions

View file

@ -80,7 +80,11 @@ void UiModWidget::paintEvent(QPaintEvent *paintEvent)
{
Q_UNUSED(paintEvent)
QStyleOption opt;
#if QT_VERSION <= 0x060000
opt.initFrom(this);
#else
opt.init(this);
#endif
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}