36 lines
778 B
C++
36 lines
778 B
C++
// STL-includes
|
|
#include <iostream>
|
|
#include <qwindowsystem_qws.h>
|
|
#include <QWSServer>
|
|
#include <qimage.h>
|
|
#include <qtimer.h>
|
|
// qt
|
|
#include <qapplication.h>
|
|
#include <QtGui>
|
|
#include <QPalette>
|
|
#include <QBrush>
|
|
#include <QScreen>
|
|
#include <QLocale>
|
|
|
|
#include "linbogui.h"
|
|
|
|
int main( int argc, char* argv[] )
|
|
{
|
|
QApplication linboGuiApp( argc, argv );
|
|
|
|
QWSServer* wsServer = QWSServer::instance();
|
|
|
|
QImage bgimg( "/icons/linbo_wallpaper.png", "PNG" );
|
|
int width = qt_screen->deviceWidth();
|
|
int height = qt_screen->deviceHeight();
|
|
|
|
if ( wsServer ) {
|
|
wsServer->setBackground( QBrush( bgimg.scaled( width, height, Qt::IgnoreAspectRatio ) ) );
|
|
wsServer->refresh();
|
|
}
|
|
|
|
LinboGui* linboGui = new LinboGui;
|
|
linboGui->show();
|
|
|
|
return linboGuiApp.exec();
|
|
}
|