summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source')
-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;