Switch to unified view

a/GUI/playerwidget/playerwidget.cpp b/GUI/playerwidget/playerwidget.cpp
...
...
12
 *   You should have received a copy of the GNU General Public License
12
 *   You should have received a copy of the GNU General Public License
13
 *   along with this program; if not, write to the
13
 *   along with this program; if not, write to the
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#include "playerwidget.h"
17
#include "playerhwidget.h"
18
#include "playervwidget.h"
18
19
19
PlayerWidget::PlayerWidget(QWidget *parent)
20
PlayerVWidget::PlayerVWidget(QWidget *parent)
20
    : QWidget(parent)
21
    : QWidget(parent)
21
{
22
{
22
        setupUi(this);
23
        setupUi(this);
23
24
24
        // Reproduce the old setup by moving the stop button around
25
        // Reproduce the old setup by moving the stop button around
25
        QLayoutItem *item = playctl_w->horizontalLayout->takeAt(1);
26
        QLayoutItem *item = playctl_w->takeStopWidget();
27
        // Curiously this does not work
28
        //bottomHLayout->addItem(item);
29
        // But this does
26
        bottomHLayout->addWidget(item->widget());
30
        bottomHLayout->addWidget(item->widget());
27
        item->invalidate();
31
        // I guess that this should be done, but I also suspect that
28
        delete item;
32
        // I'm seeing related memory issues
33
        //      item->invalidate(); delete item;
29
}
34
}
35
36
PlayerHWidget::PlayerHWidget(QWidget *parent)
37
    : QWidget(parent)
38
{
39
        setupUi(this);
40
}