diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
commit | c8e0e909b4a8d18319fc65434a10dc446434817c (patch) | |
tree | eee91e7d2ce229dd043811eae8f1e2bd78061916 /wx+/toggle_button.h | |
parent | 5.2 (diff) | |
download | FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2 FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip |
5.3
Diffstat (limited to 'wx+/toggle_button.h')
-rw-r--r-- | wx+/toggle_button.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wx+/toggle_button.h b/wx+/toggle_button.h index cce7f5b2..74f90974 100644 --- a/wx+/toggle_button.h +++ b/wx+/toggle_button.h @@ -27,9 +27,9 @@ public: } void init(const wxBitmap& activeBmp, - const wxString& activeTooltip, const wxBitmap& inactiveBmp, - const wxString& inactiveTooltip); + const wxString& activeTooltip, + const wxString& inactiveTooltip = wxString()); void setActive(bool value); bool isActive() const { return active; } @@ -60,14 +60,14 @@ private: //######################## implementation ######################## inline void ToggleButton::init(const wxBitmap& activeBmp, - const wxString& activeTooltip, const wxBitmap& inactiveBmp, + const wxString& activeTooltip, const wxString& inactiveTooltip) { m_activeBmp = activeBmp; m_activeTooltip = activeTooltip; m_inactiveBmp = inactiveBmp; - m_inactiveTooltip = inactiveTooltip; + m_inactiveTooltip = inactiveTooltip.empty() ? activeTooltip : inactiveTooltip; //load resources setActive(active); |