summaryrefslogtreecommitdiff
path: root/plugingui/diskstreamingframecontent.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-19 22:47:08 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-19 22:47:08 +0200
commit11e2bda54641c1ef4cad38c11d742524966c7e86 (patch)
tree83186978f4725e33afe3340702e9425135c4a62c /plugingui/diskstreamingframecontent.h
parent34e894ed6fbb5af0dcd0a61b02de75d6044aede8 (diff)
Take memory specific code out of Slider and fix a bug on the way.
Diffstat (limited to 'plugingui/diskstreamingframecontent.h')
-rw-r--r--plugingui/diskstreamingframecontent.h5
1 files changed, 4 insertions, 1 deletions
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};