#include "config.h" #include "mainwindow.h" #include #include #include #include #include "settings.h" #include "helper.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); helper::theme::applyCurrent(Settings::instance()); QFont f = app.font(); // f.setFamily("Monaco"); f.setPointSize(14); app.setFont(f); app.setApplicationName(APPNAME); // Path to database. QString path = Settings::instance().getDatabasePath(); QString folder = QFileInfo(path).absoluteDir().path(); Storage::instance().setPath(path); MainWindow w; w.layout()->invalidate(); w.setAttribute(Qt::WA_WState_ExplicitShowHide, false); w.setAttribute(Qt::WA_WState_Hidden, true); w.setWindowIcon(MainWindow::getAppIcon()); w.show(); return app.exec(); }