File: qlogo_main.cpp

package info (click to toggle)
qlogo 0.961-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,452 kB
  • sloc: cpp: 11,166; python: 159; sh: 107; ansic: 79; xml: 20; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 652 bytes parent folder | download
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
26
// Copyright 2017-2024 Jason Sikes
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the conditions specified in the
// license found in the LICENSE file in the project root.

#include "gui/mainwindow.h"
#include <QApplication>
#include <QSqlDatabase>

int main(int argc, char *argv[]) {
  QApplication a(argc, argv);
  MainWindow w;
  w.show();

  return a.exec();
}


// This code isn't actually executed. It's to compel the linker to include the
// SQL stuff for the qlogo binary into the MacOS bundle.
void ignoreMe(void)
{
  QSqlDatabase *driver = new QSqlDatabase();
  delete driver;
}