view src/main.cc @ 282:19eb6c4dca78

autotools: ax_have_qt sucks, use pkgconf instead this is particularly useful because m4_ax_have_qt really sucked when cross compiling because of qmake
author Paper <paper@paper.us.eu.org>
date Wed, 08 May 2024 15:54:10 -0400
parents f31305b9f60a
children 34347fd2a2de
line wrap: on
line source

#include "core/anime_db.h"
#include "core/session.h"
#include "core/strings.h"
#include "gui/window.h"
#include "services/anilist.h"

#include <QApplication>
#include <QLocale>
#include <QStyleFactory>
#include <QTranslator>

#include <iostream>

Session session;

int main(int argc, char** argv) {
	QApplication app(argc, argv);
	app.setApplicationName("minori");
	app.setApplicationDisplayName("Minori");
	app.setAttribute(Qt::AA_DontShowIconsInMenus, true);

	qRegisterMetaType<std::vector<std::string>>(); /* window.cc */
	qRegisterMetaType<std::vector<int>>(); /* search.cc */

	session.config.Load();
	Anime::db.LoadDatabaseFromDisk();

	MainWindow window;

	window.resize(941, 750);
	window.setWindowTitle("Minori");
	window.show();

	return app.exec();
}