diff options
| author | Geoff Lankow <geoff@darktrojan.net> | 2018-02-09 08:06:51 +0000 |
|---|---|---|
| committer | Geoff Lankow <geoff@darktrojan.net> | 2018-07-02 23:09:56 +0000 |
| commit | b06d2c86a864fcf25fdf8963b59134a9827d2df6 (patch) | |
| tree | 34c3e4583926ebc99b7fe705de1274a4a6bea76a /src/ui/widget/scalar.cpp | |
| parent | CI/AppVeyor: Remove --ask switch (diff) | |
| download | inkscape-b06d2c86a864fcf25fdf8963b59134a9827d2df6.tar.gz inkscape-b06d2c86a864fcf25fdf8963b59134a9827d2df6.zip | |
Reduce width of Transform dialog by making spinbuttons narrower
Diffstat (limited to 'src/ui/widget/scalar.cpp')
| -rw-r--r-- | src/ui/widget/scalar.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/widget/scalar.cpp b/src/ui/widget/scalar.cpp index a3fff0c8c..58afa9726 100644 --- a/src/ui/widget/scalar.cpp +++ b/src/ui/widget/scalar.cpp @@ -130,6 +130,12 @@ void Scalar::setValue(double value, bool setProg) static_cast<SpinButton*>(_widget)->set_value(value); } +void Scalar::setWidthChars(uint chars) +{ + g_assert(_widget != NULL); + static_cast<SpinButton*>(_widget)->set_width_chars(chars); +} + void Scalar::update() { g_assert(_widget != nullptr); |
