summaryrefslogtreecommitdiff
path: root/wx+/toggle_button.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:49 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:49 +0200
commitc8e0e909b4a8d18319fc65434a10dc446434817c (patch)
treeeee91e7d2ce229dd043811eae8f1e2bd78061916 /wx+/toggle_button.h
parent5.2 (diff)
downloadFreeFileSync-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.h8
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);
bgstack15