kde-playground/loopy/src/fullscreenplaylist.cpp
2015-09-25 03:56:12 +00:00

24 lines
601 B
C++

#include <QApplication>
#include <QDesktopWidget>
#include "fullscreenplaylist.h"
const int WIDTH = 300;
FullScreenPlaylist::FullScreenPlaylist(QWidget* parent) : KToolBar(parent, "fullscreenplaylist")
{
QRect screen = QApplication::desktop()->screenGeometry(parentWidget());
int screenHeight = screen.height();
int screenWidth = screen.width();
setObjectName("fullscreenplaylist");
setHidden(true);
setAutoFillBackground(true);
setFixedHeight(screenHeight);
setFixedWidth(WIDTH);
move(screenWidth - WIDTH, 0 );
}
FullScreenPlaylist::~FullScreenPlaylist()
{
}