mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-14 11:06:01 +05:00
Replaced deprecated QStyleOption::init by QStyleOption::initFrom
This commit is contained in:
parent
3874390de7
commit
9ebc4b00ed
@ -81,7 +81,7 @@ public:
|
||||
void paintEvent(QPaintEvent *)
|
||||
{
|
||||
QStyleOption opt;
|
||||
opt.init(this);
|
||||
opt.initFrom(this);
|
||||
QPainter p(this);
|
||||
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user