mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
/*
|
|
Main
|
|
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
|
|
License: GPL
|
|
*/
|
|
|
|
//#include <QtPlugin>
|
|
#include <QtGui/QApplication>
|
|
#include <QFontDatabase>
|
|
#include <QStringList>
|
|
#include <QDebug>
|
|
#include "mainwindow.h"
|
|
#include "SleepLib/profiles.h"
|
|
|
|
#include "SleepLib/loader_plugins/prs1_loader.h"
|
|
#include "SleepLib/loader_plugins/cms50_loader.h"
|
|
#include "SleepLib/loader_plugins/zeo_loader.h"
|
|
#include "SleepLib/loader_plugins/resmed_loader.h"
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
a.setApplicationName("SleepyHead");
|
|
int id=QFontDatabase::addApplicationFont(":/fonts/FreeSans.ttf");
|
|
QStringList ffam=QFontDatabase::applicationFontFamilies(id);
|
|
for (QStringList::iterator i=ffam.begin();i!=ffam.end();i++) {
|
|
qDebug() << "Loaded Font: " << (*i);
|
|
}
|
|
|
|
a.setFont(QFont("FreeSans",10));
|
|
|
|
PRS1Loader::Register();
|
|
CMS50Loader::Register();
|
|
ZEOLoader::Register();
|
|
ResmedLoader::Register();
|
|
|
|
MainWindow w;
|
|
w.show();
|
|
|
|
return a.exec();
|
|
}
|