diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-04-03 12:21:08 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-04-04 21:50:11 +0900 |
commit | cf43b676044773414fd35172e5e98422a555ede5 (patch) | |
tree | bc3677872e113b764d9fe6fe7c989a48fe421ef1 /include/tools/gen.hxx | |
parent | d41e6052aaf31b918ce3e0316c44f19513015b65 (diff) |
tdf#124155 change "gradient tab page" - increment & angle slider
Remove slider for increments as the increments should better be
left to "auto" and rarely modified (setting a value means it will
use a limitied amount of increments, but auto effectively means
as much as it is needed and can use the native backend for
drawing).
OTOH use a slider for setting the "angle" as it is already present
in hatch tab page. Angle needs a slider as it is usually one of
the main properties of a gradient (especially linear).
Increase the tab pages a bit (10px on every side) to have a bit of
breating space for all the widgets.
Reviewed-on: https://gerrit.libreoffice.org/70175
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 994b41a6c69d20637dcb95894c385f5c0102d600)
Change-Id: I66167fe2c97b53bc3627237279332bdd59fb03d7
Diffstat (limited to 'include/tools/gen.hxx')
-rw-r--r-- | include/tools/gen.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index c4dd2e6fd02b..77e90a266245 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -195,6 +195,12 @@ public: long getHeight() const { return Height(); } void setWidth(long nWidth) { Width() = nWidth; } void setHeight(long nHeight) { Height() = nHeight; } + + void extendBy(long x, long y) + { + nA += x; + nB += y; + } }; inline bool operator ==(Size const & s1, Size const & s2) |