diff options
| author | Eleni Maria Stea <elenimaria.stea@canonical.com> | 2014-06-16 12:16:53 +0300 |
|---|---|---|
| committer | Eleni Maria Stea <elenimaria.stea@canonical.com> | 2014-06-16 12:16:53 +0300 |
| commit | 8bb1fce2d480546678634ccec6e677bd72e4db13 (patch) | |
| tree | 6d7599ef0003d3c980f11e5b8aa6c2dc3585e359 /unity-shared | |
| parent | 81b476ebc2c569a177e9d7acf127ab49ba7b3b81 (diff) | |
scaled application preview and its components
(bzr r3823.4.2)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/RatingsButton.cpp | 4 | ||||
| -rw-r--r-- | unity-shared/RatingsButton.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/unity-shared/RatingsButton.cpp b/unity-shared/RatingsButton.cpp index ac3865db6..f4954c782 100644 --- a/unity-shared/RatingsButton.cpp +++ b/unity-shared/RatingsButton.cpp @@ -36,11 +36,11 @@ namespace unity { RatingsButton::RatingsButton(int star_size, int star_gap, NUX_FILE_LINE_DECL) : nux::ToggleButton(NUX_FILE_LINE_PARAM) + , star_size_(star_size) + , star_gap_(star_gap) , editable_(true) , rating_(0.0) , focused_star_(-1) - , star_size_(star_size) - , star_gap_(star_gap) { SetAcceptKeyNavFocusOnMouseDown(false); SetAcceptKeyNavFocusOnMouseEnter(true); diff --git a/unity-shared/RatingsButton.h b/unity-shared/RatingsButton.h index 0a07bdee7..9fef67f7e 100644 --- a/unity-shared/RatingsButton.h +++ b/unity-shared/RatingsButton.h @@ -41,6 +41,9 @@ public: virtual void SetRating(float rating); virtual float GetRating() const; + int star_size_; + int star_gap_; + protected: virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw); @@ -67,8 +70,6 @@ protected: bool editable_; float rating_; int focused_star_; - int star_size_; - int star_gap_; }; } // namespace unity |
