Root/main.cpp

1#include <QApplication>
2#include "qmain.h"
3#include <cxxtools/loginit.h>
4#include <cxxtools/log.h>
5log_define("qvido.main")
6
7int main(int argc, char *argv[])
8{
9    log_init();
10    log_debug("launching with arguments" << argv[1] );
11    if (argc > 2)
12    {
13        QApplication app(argc, argv);
14
15        QMain QMain(argv[1]);
16    QMain.show();
17    return app.exec();
18    }else{
19        std::cout << "usage: " << argv[0] << " [PATH TO ZIM FILE]" << std::endl;
20    }
21}

Archive Download this file

Branches:
master



interactive