2008-07-18 18:49:14 +04:00
/***************************************************************************
2021-01-28 23:43:26 +03:00
* Copyright ( C ) 2008 by BogDan Vatra < bogdan @ licentia . eu > *
* Copyright ( C ) 2009 - 2021 by Robin Stuart < rstuart114 @ gmail . com > *
2008-07-18 18:49:14 +04:00
* *
2008-09-17 22:38:53 +04:00
* This program is free software : you can redistribute it and / or modify *
2008-07-18 18:49:14 +04:00
* it under the terms of the GNU General Public License as published by *
2008-09-17 22:38:53 +04:00
* the Free Software Foundation , either version 3 of the License , or *
2008-07-18 18:49:14 +04:00
* ( at your option ) any later version . *
* This program is distributed in the hope that it will be useful , *
* but WITHOUT ANY WARRANTY ; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the *
* GNU General Public License for more details . *
* You should have received a copy of the GNU General Public License *
2008-09-17 22:38:53 +04:00
* along with this program . If not , see < http : //www.gnu.org/licenses/>. *
2008-07-18 18:49:14 +04:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2021-01-28 23:43:26 +03:00
/* vim: set ts=4 sw=4 et : */
2008-07-18 18:49:14 +04:00
# include <QApplication>
2009-11-18 01:36:04 +03:00
# include "mainwindow.h"
2008-07-18 18:49:14 +04:00
int main ( int argc , char * argv [ ] )
{
2021-01-28 23:43:26 +03:00
Q_INIT_RESOURCE ( resources ) ;
2017-10-23 22:37:52 +03:00
2022-04-10 20:34:51 +03:00
# if QT_VERSION >= 0x50600
QGuiApplication : : setAttribute ( Qt : : AA_EnableHighDpiScaling ) ;
# endif
2021-01-28 23:43:26 +03:00
# if QT_VERSION >= 0x50400
/* Suppresses "Qt WebEngine seems to be initialized from a plugin" warning */
QApplication : : setAttribute ( Qt : : AA_ShareOpenGLContexts ) ;
# endif
QApplication app ( argc , argv ) ;
2017-10-23 22:37:52 +03:00
2021-01-28 23:43:26 +03:00
MainWindow w ;
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 02:13:39 +03:00
// Seem to need to do this before showing the window
w . setWindowTitle ( w . windowTitle ( ) + ' ' + MainWindow : : get_zint_version ( ) ) ;
2021-01-28 23:43:26 +03:00
w . show ( ) ;
return app . exec ( ) ;
}