main.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. Copyright (C) 2010 Martin Zuber, zuber@centrum.cz
  3. This application is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU Lesser General Public License as
  5. published by the Free Software Foundation; either version 2.1 of the
  6. License, or (at your option) any later version.
  7. This application is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with This application; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  14. */
  15. #include <QtGui/QApplication>
  16. #include <QCoreApplication>
  17. #include "mainwindow.h"
  18. int main(int argc, char *argv[])
  19. {
  20. QApplication a(argc, argv);
  21. // application info
  22. QCoreApplication::setApplicationName("BEggClock");
  23. QCoreApplication::setApplicationVersion("0.0.1");
  24. QCoreApplication::setOrganizationName("Brumla2003");
  25. QCoreApplication::setOrganizationDomain("http://brumla2003.blogspot.com");
  26. MainWindow w;
  27. #if defined(Q_WS_S60)
  28. w.showMaximized();
  29. #else
  30. w.show();
  31. #endif
  32. return a.exec();
  33. }