summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-04-03 12:21:08 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-08-29 20:10:57 +0900
commitd50f6e37eadf04b0d8bd28a32983f2abd6bd9fcd (patch)
treeb889c158f22286a0e22d9167f5468c35c00de86f /include/tools
parent5ae6a4042841a65db993d9c67aa0162b9b25be0f (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')
-rw-r--r--include/tools/gen.hxx6
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; }