From 11e2bda54641c1ef4cad38c11d742524966c7e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Wed, 19 Apr 2017 22:47:08 +0200 Subject: Take memory specific code out of Slider and fix a bug on the way. --- plugingui/diskstreamingframecontent.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugingui/diskstreamingframecontent.h') diff --git a/plugingui/diskstreamingframecontent.h b/plugingui/diskstreamingframecontent.h index bcdbef9..2b34bc5 100644 --- a/plugingui/diskstreamingframecontent.h +++ b/plugingui/diskstreamingframecontent.h @@ -48,10 +48,13 @@ public: virtual void resize(std::size_t width, std::size_t height) override; private: - void limitSettingsValueChanged(float value); + void limitSettingsValueChanged(std::size_t value); void limitValueChanged(float value); void reloadClicked(); + // For now the maximum disk streaming limit is 4GB + static constexpr std::size_t max_limit = 1024.0 * 1024.0 * 1024.0 * 4.0; + Label label_text{this}; Label label_size{this}; -- cgit v1.2.3