cmake: bump min version 3.5 -> 3.10 to avoid warning with cmake 31.1;

also add min version to all CMakeLists.txt
GUI: add missing accelerator to UPCA/UPCEAN.ui "Guard Whitespace";
  add default value to some "Default" buttons;
  reformat DAFT examples again; add \^@ to special escs hint
This commit is contained in:
gitlost 2024-11-25 19:13:25 +00:00
parent e94727f07d
commit 041c74fe4d
12 changed files with 32 additions and 21 deletions

View file

@ -2,7 +2,7 @@
# Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com>
# vim: set ts=4 sw=4 et :
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
project(zint-package)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

View file

@ -2,6 +2,7 @@
# Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com>
# vim: set ts=4 sw=4 et :
cmake_minimum_required(VERSION 3.10)
project(zint)
if(ZINT_USE_PNG)

View file

@ -1,9 +1,9 @@
# Copyright (C) 2009-2022 Robin Stuart <rstuart114@gmail.com>
# Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com>
# Adapted from qrencode/tests/CMakeLists.txt
# Copyright (C) 2006-2017 Kentaro Fukuchi <kentaro@fukuchi.org>
# vim: set ts=4 sw=4 et :
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
project(zint_backend_tests)
enable_testing()

View file

@ -4,6 +4,7 @@
project(QZint)
cmake_minimum_required(VERSION 3.10)
set(${PROJECT_NAME}_SRCS qzint.cpp)
if(USE_QT6)

View file

@ -1,7 +1,7 @@
# Copyright (C) 2021-23 Robin Stuart <rstuart114@gmail.com>
# Copyright (C) 2021-24 Robin Stuart <rstuart114@gmail.com>
# vim: set ts=4 sw=4 et :
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
project(QZint_tests LANGUAGES CXX)
enable_testing()

View file

@ -2,6 +2,7 @@
# Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com>
# vim: set ts=4 sw=4 et :
cmake_minimum_required(VERSION 3.10)
project(zint_frontend)
add_executable(${PROJECT_NAME} main.c)

View file

@ -1,9 +1,9 @@
# Copyright (C) 2020-23 Robin Stuart <rstuart114@gmail.com>
# Copyright (C) 2020-24 Robin Stuart <rstuart114@gmail.com>
# Adapted from qrencode/tests/CMakeLists.txt
# Copyright (C) 2006-2017 Kentaro Fukuchi <kentaro@fukuchi.org>
# vim: set ts=4 sw=4 et :
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
project(zint_frontend_tests)
enable_testing()

View file

@ -3,6 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# vim: set ts=4 sw=4 et :
cmake_minimum_required(VERSION 3.10)
project(zint-qt)
set(CMAKE_AUTORCC ON)

View file

@ -51,9 +51,9 @@
<string>&amp;Manual Code Sets and FNC1s (Extra Escape Mode)</string>
</property>
<property name="toolTip">
<string>Process special escape sequences &quot;\^A&quot;, &quot;\^B&quot; and &quot;\^C&quot;
allowing manual Code Set selection and special escape
sequence &quot;\^1&quot; allowing manual FNC1s</string>
<string>Process special escape sequences &quot;\^A&quot;, &quot;\^B&quot;, &quot;\^C&quot; and
&quot;\^@&quot; allowing manual Code Set selection and special
escape sequence &quot;\^1&quot; allowing manual FNC1s</string>
</property>
</widget>
</item>

View file

@ -83,9 +83,15 @@
</item>
<item>
<widget class="QPushButton" name="btnDAFTTrackerDefault">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<width>120</width>
<height>16777215</height>
</size>
</property>
@ -93,7 +99,7 @@
<string>Reset tracker ratio to default 25%</string>
</property>
<property name="text">
<string>De&amp;fault</string>
<string>De&amp;fault (25%)</string>
</property>
</widget>
</item>
@ -109,9 +115,10 @@
</property>
<property name="text">
<string>Examples of tracker ratios:
Australia Post 26%, Dutch Post and Royal Mail 25.6%, Japan Post 33%,
PLANET and POSTNET 25% (Tracker and Ascender only),
USPS Intelligent Mail 33.1%
Australia Post 26%
Dutch Post and Royal Mail 25.6%, Japan Post 33%
PLANET and POSTNET 25% (Tracker &amp; Ascender only)
USPS Intelligent Mail 33.1%
</string>
</property>
<property name="textFormat">

View file

@ -135,7 +135,7 @@ descend below the main bars (default 5X)
to default 5X</string>
</property>
<property name="text">
<string>De&amp;fault</string>
<string>De&amp;fault (5X)</string>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
@ -145,7 +145,7 @@ to default 5X</string>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>60</width>
<height>20</height>
</size>
</property>
@ -171,7 +171,7 @@ to default 5X</string>
<item>
<widget class="QCheckBox" name="chkUPCAGuardWhitespace">
<property name="text">
<string>Guard Whitespace</string>
<string>Guard &amp;Whitespace</string>
</property>
<property name="checked">
<bool>false</bool>

View file

@ -145,7 +145,7 @@ descend below the main bars (default 5X)
to default 5X</string>
</property>
<property name="text">
<string>De&amp;fault</string>
<string>De&amp;fault (5X)</string>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
@ -155,7 +155,7 @@ to default 5X</string>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>60</width>
<height>20</height>
</size>
</property>
@ -181,7 +181,7 @@ to default 5X</string>
<item>
<widget class="QCheckBox" name="chkUPCEANGuardWhitespace">
<property name="text">
<string>Guard Whitespace</string>
<string>Guard &amp;Whitespace</string>
</property>
<property name="checked">
<bool>false</bool>