Debian Codegraph @

src/main.cpp

raw
1 /*
2 * Copyright (C) 2012-2013 Canonical, Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 // Qt
18 #include <QGuiApplication>
19
20 // System
21 #include <libintl.h>
22
23 // local
24 #include "config.h"
25 #include "mediaplayer.h"
26
27 int main(int argc, char** argv)
28 {
29 unsetenv("QML_FIXED_ANIMATION_STEP");
30
31 QGuiApplication::setApplicationName("Media Player");
32 MediaPlayer application(argc, argv);
33
34 textdomain("lomiri-mediaplayer-app");
35 std::string localeDir = i18nDir().toStdString();
36 bindtextdomain("lomiri-mediaplayer-app", localeDir.c_str());
37 bind_textdomain_codeset("lomiri-mediaplayer-app", "UTF-8");
38
39 if (!application.setup()) {
40 return 1;
41 }
42
43 return application.exec();
44 }