diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-04-03 12:21:08 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-04-03 11:41:14 +0200 |
commit | 994b41a6c69d20637dcb95894c385f5c0102d600 (patch) | |
tree | 0a2fbd977c7a8d764507660cc5c104ca2538c135 /include | |
parent | b81ea32945d553a712d651fe472ece921ac64d10 (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.
Change-Id: I66167fe2c97b53bc3627237279332bdd59fb03d7
Reviewed-on: https://gerrit.libreoffice.org/70175
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-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 5d6ff5ea66b8..0d9a81ebdcee 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -197,6 +197,12 @@ public: void setWidth(long nWidth) { nA = nWidth; } void setHeight(long nHeight) { nB = nHeight; } + void extendBy(long x, long y) + { + nA += x; + nB += y; + } + Pair const & toPair() const { return *this; } Pair & toPair() { return *this; } |