[Libreoffice-commits] core.git: toolkit/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jul 20 18:39:44 UTC 2020
toolkit/source/awt/vclxtoolkit.cxx | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
New commits:
commit 4d41b22135904e81f847c1cbf00abc82a414095f
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 20 15:29:29 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jul 20 20:38:55 2020 +0200
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 at redhat.com>
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;
More information about the Libreoffice-commits
mailing list