mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 10:52:52 +00:00
24 lines
601 B
C++
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()
|
|
{
|
|
}
|