File: main.C

package info (click to toggle)
gnudoq 0.94-2.2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 2,732 kB
  • ctags: 240
  • sloc: cpp: 2,696; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "ui_GNUDoQForm.h"
#include "GNUDoQ.H"

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

int
main (int argc, char *argv[])
{
  QApplication app (argc, argv);

  QTranslator translator;
  QString locale = QLocale::system().name();
 
  translator.load(QString("GNUDoQ_") + locale);
  app.installTranslator(&translator);

  GNUDoQ *gnudoq = new GNUDoQ;
  QObject::connect(&app, SIGNAL(lastWindowClosed()),
                   gnudoq, SLOT(SavePuzzle()));
  gnudoq->show();
  
  return app.exec ();
}