genode/repos/libports/src/app/qt5/qt_launchpad/main.cpp
Christian Prochaska e851b98806 Qt launchpad: use XML configuration
With this patch, Qt launchpad entries are configured the same way as with
the Scout launchpad.

Fixes #1222.
2014-08-18 13:27:23 +02:00

45 lines
813 B
C++

/*
* \brief Qt Launchpad main program
* \author Christian Prochaska
* \date 2008-04-05
*/
/* local includes */
#include "qt_launchpad.h"
/* Qt includes */
#include <QtGui>
#include <QApplication>
/* Genode includes */
#include <base/env.h>
#include <rom_session/connection.h>
int main(int argc, char *argv[])
{
/* look for dynamic linker */
try {
static Genode::Rom_connection rom("ld.lib.so");
Genode::Process::dynamic_linker(rom.dataspace());
} catch (...) { }
int result;
static QApplication a(argc, argv);
static Qt_launchpad launchpad(Genode::env()->ram_session()->quota());
try {
launchpad.process_config();
} catch (...) { }
launchpad.move(300,100);
launchpad.show();
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
result = a.exec();
return result;
}