1 /*
2     This file is part of Qadastre.
3 
4     Qadastre 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, either version 3 of the License, or
7     (at your option) any later version.
8 
9     Qadastre is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13 
14     You should have received a copy of the GNU General Public License
15     along with Qadastre. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #include <QtWidgets/QApplication>
19 #include <QDesktopServices>
20 #include <QDebug>
21 #include <QDir>
22 #include "cadastrebrowser.h"
23 #include "searchdialog.h"
24 
main(int argc,char * argv[])25 int main(int argc, char *argv[])
26 {
27     QApplication::setGraphicsSystem("raster");
28     QApplication a(argc, argv);
29     a.setApplicationName("Qadastre");
30     a.setApplicationVersion("0.1");
31     if (!QDir(QDesktopServices::storageLocation (QDesktopServices::DataLocation)).exists()) {
32         QDir().mkpath(QDesktopServices::storageLocation (QDesktopServices::DataLocation));
33     }
34     CadastreBrowser w;
35     w.show();
36     return a.exec();
37 }
38