diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 12:41:43 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 12:41:55 +0200 |
| commit | fe86254fc6489cd63ec4d9d85193237b437a1809 (patch) | |
| tree | b781eace631a0985f35609740f469296ee28a947 /lib/src | |
| parent | 7572108d6774bd3b501e1dd3fab2a014ed164fcf (diff) | |
| download | turns-fe86254fc6489cd63ec4d9d85193237b437a1809.tar.xz turns-fe86254fc6489cd63ec4d9d85193237b437a1809.zip | |
lib: fix property tests
Diffstat (limited to 'lib/src')
| -rw-r--r-- | lib/src/turnsmm/turn-order.cpp | 5 | ||||
| -rw-r--r-- | lib/src/turnsmm/turn-order.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/src/turnsmm/turn-order.cpp b/lib/src/turnsmm/turn-order.cpp index d737679..4865a77 100644 --- a/lib/src/turnsmm/turn-order.cpp +++ b/lib/src/turnsmm/turn-order.cpp @@ -134,6 +134,11 @@ namespace Turns return {this, "empty"}; } + auto TurnOrder::property_participant_count() const noexcept -> Glib::PropertyProxy_ReadOnly<std::size_t> + { + return {this, "participant-count"}; + } + auto TurnOrder::property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool> { return {this, "running"}; diff --git a/lib/src/turnsmm/turn-order.hpp b/lib/src/turnsmm/turn-order.hpp index 3fb55e4..5b8deb9 100644 --- a/lib/src/turnsmm/turn-order.hpp +++ b/lib/src/turnsmm/turn-order.hpp @@ -61,6 +61,7 @@ namespace Turns auto set_sort_mode(SortMode value) noexcept -> void; [[nodiscard]] auto property_empty() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>; + [[nodiscard]] auto property_participant_count() const noexcept -> Glib::PropertyProxy_ReadOnly<std::size_t>; [[nodiscard]] auto property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>; [[nodiscard]] auto property_sort_mode() noexcept -> Glib::PropertyProxy<SortMode>; [[nodiscard]] auto property_sort_mode() const noexcept -> Glib::PropertyProxy_ReadOnly<SortMode>; |
