1.0
OBS-URL: https://build.opensuse.org/package/show/games/q5go?expand=0&rev=11
This commit is contained in:
parent
f9480beaf2
commit
bdbcddeada
@ -1,35 +0,0 @@
|
||||
From 761a6928b018d9f1717dafe75c1af1e881b565ea Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Schmidt <bernds_cb1@t-online.de>
|
||||
Date: Sun, 20 Oct 2019 14:17:23 +0200
|
||||
Subject: [PATCH] Disable game tree header with Qt < 5.10
|
||||
|
||||
It seems Qt 5.9 is still fairly widespread (issue #22), so it's better to just
|
||||
disable a non-critical feature rather than require a higher version.
|
||||
|
||||
I tried reverting 7c58b67d, which added the current header view and replaced
|
||||
the one based on QHeaderView, but it now doesn't work for me even under Linux.
|
||||
The headers are too wide, an issue I previously was seeing only on Windows.
|
||||
---
|
||||
src/gametree.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/gametree.cpp b/src/gametree.cpp
|
||||
index d6c1bd7..9a5a82a 100644
|
||||
--- a/src/gametree.cpp
|
||||
+++ b/src/gametree.cpp
|
||||
@@ -125,8 +125,12 @@ void GameTree::set_board_win (MainWindow *win, QGraphicsView *header)
|
||||
QScrollBar *hscr = horizontalScrollBar ();
|
||||
QScrollBar *hscr2 = m_header_view->horizontalScrollBar ();
|
||||
connect (hscr, &QScrollBar::valueChanged, hscr2, &QAbstractSlider::setSliderPosition);
|
||||
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
||||
connect (verticalScrollBar (), &QAbstractSlider::rangeChanged,
|
||||
[this] (int, int) { QMetaObject::invokeMethod (this, &GameTree::resize_header, Qt::QueuedConnection); });
|
||||
+#else
|
||||
+ header->hide ();
|
||||
+#endif
|
||||
}
|
||||
|
||||
void GameTree::update_prefs ()
|
||||
--
|
||||
2.23.0
|
||||
|
@ -1,67 +0,0 @@
|
||||
From 2fe4a0d89af8c40a204b8a5ee6e76cb888c6a046 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Schmidt <bernds_cb1@t-online.de>
|
||||
Date: Fri, 19 Jul 2019 18:49:16 +0200
|
||||
Subject: [PATCH] Remove PlaceholderText colorroles which were added by Qt
|
||||
Designer
|
||||
|
||||
These cause compilation failures on some systems and are (as far as I know)
|
||||
unnecessary.
|
||||
---
|
||||
src/preferences_gui.ui | 27 ---------------------------
|
||||
1 file changed, 27 deletions(-)
|
||||
|
||||
diff --git a/src/preferences_gui.ui b/src/preferences_gui.ui
|
||||
index 904ab5f..66e6d64 100644
|
||||
--- a/src/preferences_gui.ui
|
||||
+++ b/src/preferences_gui.ui
|
||||
@@ -4074,15 +4074,6 @@ up to :</string>
|
||||
</color>
|
||||
</brush>
|
||||
</colorrole>
|
||||
- <colorrole role="PlaceholderText">
|
||||
- <brush brushstyle="NoBrush">
|
||||
- <color alpha="128">
|
||||
- <red>0</red>
|
||||
- <green>0</green>
|
||||
- <blue>0</blue>
|
||||
- </color>
|
||||
- </brush>
|
||||
- </colorrole>
|
||||
</active>
|
||||
<inactive>
|
||||
<colorrole role="WindowText">
|
||||
@@ -4229,15 +4220,6 @@ up to :</string>
|
||||
</color>
|
||||
</brush>
|
||||
</colorrole>
|
||||
- <colorrole role="PlaceholderText">
|
||||
- <brush brushstyle="NoBrush">
|
||||
- <color alpha="128">
|
||||
- <red>0</red>
|
||||
- <green>0</green>
|
||||
- <blue>0</blue>
|
||||
- </color>
|
||||
- </brush>
|
||||
- </colorrole>
|
||||
</inactive>
|
||||
<disabled>
|
||||
<colorrole role="WindowText">
|
||||
@@ -4384,15 +4366,6 @@ up to :</string>
|
||||
</color>
|
||||
</brush>
|
||||
</colorrole>
|
||||
- <colorrole role="PlaceholderText">
|
||||
- <brush brushstyle="NoBrush">
|
||||
- <color alpha="128">
|
||||
- <red>0</red>
|
||||
- <green>0</green>
|
||||
- <blue>0</blue>
|
||||
- </color>
|
||||
- </brush>
|
||||
- </colorrole>
|
||||
</disabled>
|
||||
</palette>
|
||||
</property>
|
||||
--
|
||||
2.23.0
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:86dd19e8b17dc42e441b15ab5c7417b8ac601e979c807f96a97a2d69e18b6f67
|
||||
size 6116580
|
3
q5go-1.0.tar.gz
Normal file
3
q5go-1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:420cfc6f0506fb091af2be0c59b76aa87c9bb0680931e35076ac9fd9c2483356
|
||||
size 6548100
|
19
q5go.changes
19
q5go.changes
@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 5 10:53:02 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
- Update to 1.0
|
||||
* A greeter dialog was added, similar to the ones used by cgoban or gGo.
|
||||
* There is now a "Learn Go" button that brings up beginner tutorials
|
||||
in a slideshow view.
|
||||
* Engine configuration in the preferences is a little more friendly.
|
||||
* Edit mode works differently. Depending on the situation, an edited
|
||||
position can be appended to or inserted before the current node,
|
||||
or replace a previous edit.
|
||||
* The board window now has menu items for undo/redo.
|
||||
* When playing on IGS, the comments box now allows chatting even after
|
||||
a match has completed, making it unnecessary to find the opponent's talk tab.
|
||||
* Corrected a bug when parsing nmatch preferences on IGS.
|
||||
- Drop patches, now upstream:
|
||||
* 0001-Disable-game-tree-header-with-Qt-5.10.patch
|
||||
* 0001-Remove-PlaceholderText-colorroles-which-were-added-b.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 20 13:04:36 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
|
@ -17,16 +17,14 @@
|
||||
|
||||
|
||||
Name: q5go
|
||||
Version: 0.9
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
Summary: A Go board including an editor and analysis frontend
|
||||
License: GPL-2.0-or-later
|
||||
Group: Amusements/Games/Board/Other
|
||||
URL: https://github.com/bernds/q5go
|
||||
Source0: https://github.com/bernds/%{name}/archive/%{name}-%{version}.tar.gz
|
||||
Patch0: 0001-Disable-game-tree-header-with-Qt-5.10.patch
|
||||
Patch1: 0001-Remove-PlaceholderText-colorroles-which-were-added-b.patch
|
||||
Patch2: 0001-Add-missing-includes.patch
|
||||
Patch0: 0001-Add-missing-includes.patch
|
||||
BuildRequires: libqt5-linguist-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: update-desktop-files
|
||||
|
Loading…
x
Reference in New Issue
Block a user