summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-11-28 22:21:57 +0100
committerJan Holesovsky <kendy@collabora.com>2018-12-10 12:37:51 +0100
commit693f6481d961357426e2ca4337d4a73ed8dfaa20 (patch)
tree61524d88f2669df76788b9e34014e266697e7210 /include
parent8852f1170aae61471f04528de44db5da9ac2490e (diff)
custom widgets: Rename 'stock' to 'action'.
If the button has this property, it means it is located in the action area, not that it is a stock button per se. Change-Id: Ia57ad24d8cd4ff1d7b74d7ef82da0f352fe3deb3
Diffstat (limited to 'include')
-rw-r--r--include/vcl/button.hxx10
-rw-r--r--include/vcl/salnativewidgets.hxx4
2 files changed, 7 insertions, 7 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx
index b2e8a6223db9..fbba11e5ef81 100644
--- a/include/vcl/button.hxx
+++ b/include/vcl/button.hxx
@@ -163,14 +163,14 @@ public:
virtual bool set_property(const OString &rKey, const OUString &rValue) override;
virtual void ShowFocus(const tools::Rectangle& rRect) override;
- void setStock(bool bIsStock)
+ void setAction(bool bIsAction)
{
- mbIsStock = bIsStock;
+ mbIsAction = bIsAction;
}
- bool isStock()
+ bool isAction()
{
- return mbIsStock;
+ return mbIsAction;
}
protected:
@@ -208,7 +208,7 @@ private:
SymbolType meSymbol;
TriState meState;
bool mbPressed;
- bool mbIsStock;
+ bool mbIsAction;
};
inline void PushButton::Check( bool bCheck )
diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx
index 0caa4b880fdf..42ebde7401de 100644
--- a/include/vcl/salnativewidgets.hxx
+++ b/include/vcl/salnativewidgets.hxx
@@ -458,7 +458,7 @@ public:
: ImplControlValue( ControlType::Pushbutton, 0 )
, mbBevelButton(false)
, mbSingleLine(true)
- , mbIsStock(false)
+ , mbIsAction(false)
{}
virtual ~PushButtonValue() override;
@@ -466,7 +466,7 @@ public:
bool mbBevelButton:1; // only used on OSX
bool mbSingleLine:1; // only used on OSX
- bool mbIsStock:1;
+ bool mbIsAction:1;
};