summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-13 15:14:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-15 15:00:17 +0200
commit0abbf64dc1ebe9f12523a69ce1cfd25fe189d869 (patch)
tree33707dcc5f9e634305a99e1721363bfbd5e90893 /svtools
parent288b9f7edd26458e3a71aad9f96279ec9ef00931 (diff)
weld TimeControl
Change-Id: Idb19639eb39bc83fb8bdc7c2181bf63e9c522d18 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98670 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/ebbcontrols.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx
index 400f0fb581fe..ba90f7f5a3a2 100644
--- a/svtools/source/brwbox/ebbcontrols.cxx
+++ b/svtools/source/brwbox/ebbcontrols.cxx
@@ -457,6 +457,16 @@ namespace svt
InitFormattedControlBase();
}
+ TimeControl::TimeControl(BrowserDataWin* pParent, bool bSpinVariant)
+ : FormattedControlBase(pParent, bSpinVariant)
+ {
+ if (bSpinVariant)
+ m_xEntryFormatter.reset(new weld::TimeFormatter(*m_xSpinButton));
+ else
+ m_xEntryFormatter.reset(new weld::TimeFormatter(*m_xEntry));
+ InitFormattedControlBase();
+ }
+
EditCellController::EditCellController(EditControlBase* pEdit)
: CellController(pEdit)
, m_pEditImplementation(new EntryImplementation(*pEdit))