diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-20 19:19:00 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-20 19:19:00 +0200 |
commit | 89b3bde1cfeb9fa3c7097555a86c6436da848a97 (patch) | |
tree | 4e69ab33bcf3699fc28d358933ccda0d6cc70b73 /plugingui/diskstreamingframecontent.cc | |
parent | c15331fa4b98ba58b2b500c79088d43ed31a4b4e (diff) |
Gray out diskstreaming "Apply" button if the value didn't change.
Also add a new texture for that.
Diffstat (limited to 'plugingui/diskstreamingframecontent.cc')
-rw-r--r-- | plugingui/diskstreamingframecontent.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/diskstreamingframecontent.cc b/plugingui/diskstreamingframecontent.cc index 35ab8d8..bb93bc9 100644 --- a/plugingui/diskstreamingframecontent.cc +++ b/plugingui/diskstreamingframecontent.cc @@ -45,6 +45,7 @@ DiskstreamingframeContent::DiskstreamingframeContent(Widget* parent, label_text.setAlignment(TextAlignment::center); button.setText("Apply"); + button.setEnabled(false); label_size.setText("0 MB"); label_size.setAlignment(TextAlignment::center); @@ -96,7 +97,7 @@ void DiskstreamingframeContent::limitSettingsValueChanged(std::size_t value) label_size.setText("Unlimited"); } - // TODO: un-grayout "Apply" button + button.setEnabled(true); } void DiskstreamingframeContent::limitValueChanged(float value) @@ -112,7 +113,7 @@ void DiskstreamingframeContent::reloadClicked() { settings.reload_counter++; - // TODO: grayout "Apply" button + button.setEnabled(false); } |