Mercurial > minori
comparison src/gui/window.cc @ 115:c72b907b9bef
window: patch for Qt 5
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 12:04:51 -0500 |
parents | ab191e28e69d |
children | 39521c47c7a3 |
comparison
equal
deleted
inserted
replaced
114:ab191e28e69d | 115:c72b907b9bef |
---|---|
333 setMenuBar(menubar); | 333 setMenuBar(menubar); |
334 | 334 |
335 /* Toolbar */ | 335 /* Toolbar */ |
336 | 336 |
337 /* remove old toolbar(s) */ | 337 /* remove old toolbar(s) */ |
338 for (QToolBar*& t : findChildren<QToolBar*>(Qt::FindDirectChildrenOnly)) { | 338 /* the empty QString() is a Qt 5 wart... */ |
339 for (QToolBar*& t : findChildren<QToolBar*>(QString(), Qt::FindDirectChildrenOnly)) { | |
339 removeToolBar(t); | 340 removeToolBar(t); |
340 delete t; | 341 delete t; |
341 } | 342 } |
342 | 343 |
343 { | 344 { |