|
a/GUI/playerwidget/playerwidget.cpp |
|
b/GUI/playerwidget/playerwidget.cpp |
|
... |
|
... |
25 |
// Reproduce the old setup by moving the stop button around
|
25 |
// Reproduce the old setup by moving the stop button around
|
26 |
QLayoutItem *item = playctl_w->takeStopWidget();
|
26 |
QLayoutItem *item = playctl_w->takeStopWidget();
|
27 |
// Curiously this does not work
|
27 |
// Curiously this does not work
|
28 |
//bottomHLayout->addItem(item);
|
28 |
//bottomHLayout->addItem(item);
|
29 |
// But this does
|
29 |
// But this does
|
30 |
bottomHLayout->addWidget(item->widget());
|
30 |
bottomHLayout->addWidget(item->widget(), Qt::AlignTop);
|
|
|
31 |
bottomHLayout->setAlignment(item->widget(), Qt::AlignTop);
|
31 |
// I guess that this should be done, but I also suspect that
|
32 |
// I guess that this should be done, but I also suspect that
|
32 |
// I'm seeing related memory issues
|
33 |
// I'm seeing related memory issues
|
33 |
// item->invalidate(); delete item;
|
34 |
// item->invalidate(); delete item;
|
34 |
}
|
35 |
}
|
35 |
|
36 |
|