summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-20 15:29:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-20 20:38:55 +0200
commit4d41b22135904e81f847c1cbf00abc82a414095f (patch)
treebddecee4ad0e6653672e70e24216f67422b69230 /toolkit
parentc39621e557df334edaf5fcc0321f223e6a4e35d2 (diff)
SVTXDateField is preferred ahead of VCLXDateField
SVTXDateField is supposed to intercept and get used before VCLXDateField Change-Id: Ia1ff2cd362e86a6a1118bc24dff8b6bce50e8bf2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99083 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index eb5273cde27d..267a9fced788 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -701,7 +701,7 @@ ComponentInfo const aComponentInfos [] =
{ OUStringLiteral("currencybox"), WindowType::CURRENCYBOX },
{ OUStringLiteral("currencyfield"), WindowType::CURRENCYFIELD },
{ OUStringLiteral("datebox"), WindowType::DATEBOX },
- { OUStringLiteral("datefield"), WindowType::DATEFIELD },
+ { OUStringLiteral("datefield"), WindowType::CONTROL },
{ OUStringLiteral("dialog"), WindowType::DIALOG },
{ OUStringLiteral("dockingarea"), WindowType::DOCKINGAREA },
{ OUStringLiteral("dockingwindow"), WindowType::DOCKINGWINDOW },
@@ -1460,12 +1460,6 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
case WindowType::DATEBOX:
pNewWindow = VclPtr<DateBox>::Create( pParent, nWinBits );
break;
- case WindowType::DATEFIELD:
- pNewWindow = VclPtr<DateField>::Create( pParent, nWinBits );
- static_cast<DateField*>(pNewWindow.get())->EnableEmptyFieldValue( true );
- *ppNewComp = new VCLXDateField;
- static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( static_cast<FormatterBase*>(static_cast<DateField*>(pNewWindow.get())) );
- break;
case WindowType::DOCKINGAREA:
pNewWindow = VclPtr<DockingAreaWindow>::Create( pParent );
break;