diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-17 12:12:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-17 20:18:14 +0100 |
commit | dca52ec998946d3e5213190d04cdf98bace50e2c (patch) | |
tree | 19ba6f527d1f4b9b98e3245206134d9b8e4a60b3 /cui | |
parent | 357d0010058f57a9ec79f0c7d084eeeb3e1edb14 (diff) |
show degree symbol in DialControl linked spinbuttons
Change-Id: I792755f043109173606a78e947d5dc01f78c6849
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86982
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/align.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/transfrm.hxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/align.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/transfrm.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/inc/align.hxx b/cui/source/inc/align.hxx index 03af4f943db9..ebfdd984d3b2 100644 --- a/cui/source/inc/align.hxx +++ b/cui/source/inc/align.hxx @@ -89,7 +89,7 @@ private: std::unique_ptr<weld::ComboBox> m_xLbVerAlign; std::unique_ptr<weld::Label> m_xFtRotate; - std::unique_ptr<weld::SpinButton> m_xNfRotate; + std::unique_ptr<weld::MetricSpinButton> m_xNfRotate; std::unique_ptr<weld::Label> m_xFtRefEdge; std::unique_ptr<weld::CheckButton> m_xCbStacked; std::unique_ptr<weld::CheckButton> m_xCbAsianMode; diff --git a/cui/source/inc/transfrm.hxx b/cui/source/inc/transfrm.hxx index c83f0bf60030..3c5506ef3c4e 100644 --- a/cui/source/inc/transfrm.hxx +++ b/cui/source/inc/transfrm.hxx @@ -182,7 +182,7 @@ private: std::unique_ptr<weld::MetricSpinButton> m_xMtrPosY; std::unique_ptr<weld::CustomWeld> m_xCtlRect; std::unique_ptr<weld::Widget> m_xFlAngle; - std::unique_ptr<weld::SpinButton> m_xNfAngle; + std::unique_ptr<weld::MetricSpinButton> m_xNfAngle; std::unique_ptr<weld::CustomWeld> m_xCtlAngle; public: diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx index 33cce4de3795..9c0886097fe1 100644 --- a/cui/source/tabpages/align.cxx +++ b/cui/source/tabpages/align.cxx @@ -112,7 +112,7 @@ AlignmentTabPage::AlignmentTabPage(weld::Container* pPage, weld::DialogControlle , m_xLbVerAlign(m_xBuilder->weld_combo_box("comboboxVertAlign")) //text rotation , m_xFtRotate(m_xBuilder->weld_label("labelDegrees")) - , m_xNfRotate(m_xBuilder->weld_spin_button("spinDegrees")) + , m_xNfRotate(m_xBuilder->weld_metric_spin_button("spinDegrees", FieldUnit::DEGREE)) , m_xFtRefEdge(m_xBuilder->weld_label("labelRefEdge")) //Asian mode , m_xCbStacked(m_xBuilder->weld_check_button("checkVertStack")) diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx index 5dc45a108ff8..aad88fb32555 100644 --- a/cui/source/tabpages/transfrm.cxx +++ b/cui/source/tabpages/transfrm.cxx @@ -176,7 +176,7 @@ SvxAngleTabPage::SvxAngleTabPage(weld::Container* pPage, weld::DialogController* , m_xMtrPosY(m_xBuilder->weld_metric_spin_button("MTR_FLD_POS_Y", FieldUnit::CM)) , m_xCtlRect(new weld::CustomWeld(*m_xBuilder, "CTL_RECT", m_aCtlRect)) , m_xFlAngle(m_xBuilder->weld_widget("FL_ANGLE")) - , m_xNfAngle(m_xBuilder->weld_spin_button("NF_ANGLE")) + , m_xNfAngle(m_xBuilder->weld_metric_spin_button("NF_ANGLE", FieldUnit::DEGREE)) , m_xCtlAngle(new weld::CustomWeld(*m_xBuilder, "CTL_ANGLE", m_aCtlAngle)) { // calculate PoolUnit |