games/chessx: Fix GUI issues.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David O'Shaughnessy 2023-05-13 11:42:25 +01:00 committed by Willy Sudiarto Raharjo
parent fb265342af
commit 55777d8ce1
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=chessx
VERSION=${VERSION:-1.5.8}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -79,6 +79,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Taken from Arch, fixes the GUI problems
sed -i '/QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);/a\
QCoreApplication::setAttribute(Qt::AA_DontUseNativeDialogs);' src/gui/main.cpp
# Compile the application with Qt
lupdate-qt5 chessx.pro
lrelease-qt5 i18n/*.ts