1 /* This file is part of Dilay 2 * Copyright © 2015-2018 Alexander Bau 3 * Use and redistribute under the terms of the GNU General Public License 4 */ 5 #include "view/resolution-slider.hpp" 6 #include "view/util.hpp" 7 8 struct ViewResolutionSlider::Impl 9 { ImplViewResolutionSlider::Impl10 Impl (ViewResolutionSlider* s, float min, float max) 11 { 12 ViewDoubleSlider* doubleSlider = s; 13 ViewUtil::connect (*doubleSlider, 14 [s, min, max](float r) { emit s->resolutionChanged (max + min - r); }); 15 } 16 }; 17 18 DELEGATE_BIG2_BASE (ViewResolutionSlider, (float min, float max), (this, min, max), 19 ViewDoubleSlider, (2, 1)) 20