tdf#125922 rename kde5 to kf5 + plasma5

Just as the gtk3 plugin isn't named GNOME, rename kde5 to kf5, as
it is based on the KDE frameworks 5 libraries.

This also includes:
* a convenience alias to load the kf5 VCL plugin in case someone
  requests the kde5 plugin.
* keep convenience kde5 configure switch, but warn about it
* rename detected desktop from kde5 to plasma5

Change-Id: I6764a05b81a5edbf284484c234fee2649aacf735
Reviewed-on: https://gerrit.libreoffice.org/75313
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
This commit is contained in:
Jan-Marek Glogowski 2019-07-09 15:28:29 +00:00
parent 49d17d392b
commit d3c6ac6d0f
53 changed files with 224 additions and 233 deletions

View File

@ -298,9 +298,9 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,gnome, \
)) ))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,kde, \ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,kde, \
$(if $(ENABLE_KDE5),kde5be1) \ $(if $(ENABLE_KF5),kf5be1) \
$(if $(USING_X11), \ $(if $(USING_X11), \
$(if $(ENABLE_KDE5),vclplug_kde5) \ $(if $(ENABLE_KF5),vclplug_kf5) \
$(if $(ENABLE_QT5),vclplug_qt5) \ $(if $(ENABLE_QT5),vclplug_qt5) \
$(if $(ENABLE_GTK3_KDE5),vclplug_gtk3_kde5) \ $(if $(ENABLE_GTK3_KDE5),vclplug_gtk3_kde5) \
) \ ) \
@ -314,7 +314,7 @@ endif
ifeq ($(OS),HAIKU) ifeq ($(OS),HAIKU)
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,haiku, \ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,haiku, \
$(if $(ENABLE_QT5),vclplug_qt5) \ $(if $(ENABLE_QT5),vclplug_qt5) \
$(if $(ENABLE_KDE5),vclplug_kde5) \ $(if $(ENABLE_KF5),vclplug_kf5) \
)) ))
endif endif

View File

@ -3076,9 +3076,9 @@ endef
endif # SYSTEM_POSTGRESQL endif # SYSTEM_POSTGRESQL
ifeq ($(ENABLE_KDE5),TRUE) ifeq ($(ENABLE_KF5),TRUE)
define gb_LinkTarget__use_kde5 define gb_LinkTarget__use_kf5
$(call gb_LinkTarget_set_include,$(1),\ $(call gb_LinkTarget_set_include,$(1),\
$(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(KF5_CFLAGS)))) \ $(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(KF5_CFLAGS)))) \
$$(INCLUDE) \ $$(INCLUDE) \
@ -3094,13 +3094,13 @@ $(call gb_LinkTarget_add_libs,$(1),\
endef endef
else # !ENABLE_KDE5 else # !ENABLE_KF5
define gb_LinkTarget__use_kde5 define gb_LinkTarget__use_kf5
endef endef
endif # ENABLE_KDE5 endif # ENABLE_KF5

View File

@ -121,8 +121,8 @@ local file="$1"
*/libavmediagst.so) */libavmediagst.so)
whitelist="${whitelist} ${gtk3whitelist} ${gstreamerwhitelist}" whitelist="${whitelist} ${gtk3whitelist} ${gstreamerwhitelist}"
;; ;;
*/libvclplug_kde5lo.so|*/libkde5be1lo.so) */libvclplug_kf5lo.so|*/libkf5be1lo.so)
if [ "$ENABLE_KDE5" = TRUE ]; then if [ "$ENABLE_KF5" = TRUE ]; then
whitelist="${whitelist} ${qt5whitelist} ${kf5whitelist}" whitelist="${whitelist} ${qt5whitelist} ${kf5whitelist}"
fi fi
;; ;;

View File

@ -840,10 +840,10 @@ vcl/unx/gtk/gloactiongroup.cxx:30
GLOAction parent_instance GObject GLOAction parent_instance GObject
vcl/unx/gtk/glomenu.cxx:20 vcl/unx/gtk/glomenu.cxx:20
GLOMenu parent_instance const GMenuModel GLOMenu parent_instance const GMenuModel
vcl/unx/kde5/KDE5FilePicker.hxx:32 vcl/unx/kf5/KF5FilePicker.hxx:32
KDE5FilePicker _layout class QGridLayout * KF5FilePicker _layout class QGridLayout *
vcl/unx/kde5/KDE5FilePicker.hxx:34 vcl/unx/kf5/KF5FilePicker.hxx:34
KDE5FilePicker allowRemoteUrls _Bool KF5FilePicker allowRemoteUrls _Bool
writerfilter/source/dmapper/PropertyMap.hxx:198 writerfilter/source/dmapper/PropertyMap.hxx:198
writerfilter::dmapper::SectionPropertyMap m_nDebugSectionNumber sal_Int32 writerfilter::dmapper::SectionPropertyMap m_nDebugSectionNumber sal_Int32
xmloff/source/text/XMLTextListBlockContext.hxx:35 xmloff/source/text/XMLTextListBlockContext.hxx:35

View File

@ -762,8 +762,8 @@ vcl/unx/gtk3/gtk3gtkinst.cxx:3532
CrippledViewport viewport GtkViewport CrippledViewport viewport GtkViewport
vcl/unx/gtk/a11y/atkhypertext.cxx:29 vcl/unx/gtk/a11y/atkhypertext.cxx:29
HyperLink atk_hyper_link const AtkHyperlink HyperLink atk_hyper_link const AtkHyperlink
vcl/unx/kde5/KDE5FilePicker.hxx:34 vcl/unx/kf5/KF5FilePicker.hxx:34
KDE5FilePicker allowRemoteUrls _Bool KF5FilePicker allowRemoteUrls _Bool
writerfilter/source/ooxml/OOXMLStreamImpl.hxx:43 writerfilter/source/ooxml/OOXMLStreamImpl.hxx:43
writerfilter::ooxml::OOXMLStreamImpl mxFastParser css::uno::Reference<css::xml::sax::XFastParser> writerfilter::ooxml::OOXMLStreamImpl mxFastParser css::uno::Reference<css::xml::sax::XFastParser>
writerperfect/inc/WPFTEncodingDialog.hxx:37 writerperfect/inc/WPFTEncodingDialog.hxx:37

View File

@ -167,7 +167,7 @@ export ENABLE_PDFIMPORT=@ENABLE_PDFIMPORT@
export ENABLE_PDFIUM=@ENABLE_PDFIUM@ export ENABLE_PDFIUM=@ENABLE_PDFIUM@
export ENABLE_POPPLER=@ENABLE_POPPLER@ export ENABLE_POPPLER=@ENABLE_POPPLER@
export ENABLE_QT5=@ENABLE_QT5@ export ENABLE_QT5=@ENABLE_QT5@
export ENABLE_KDE5=@ENABLE_KDE5@ export ENABLE_KF5=@ENABLE_KF5@
export ENABLE_GTK3_KDE5=@ENABLE_GTK3_KDE5@ export ENABLE_GTK3_KDE5=@ENABLE_GTK3_KDE5@
export ENABLE_RANDR=@ENABLE_RANDR@ export ENABLE_RANDR=@ENABLE_RANDR@
export ENABLE_RELEASE_BUILD=@ENABLE_RELEASE_BUILD@ export ENABLE_RELEASE_BUILD=@ENABLE_RELEASE_BUILD@

View File

@ -10,7 +10,7 @@ Settings about which desktops have support enabled.
#define ENABLE_GTK 0 #define ENABLE_GTK 0
#define ENABLE_GTK3 0 #define ENABLE_GTK3 0
#define ENABLE_GTK3_KDE5 0 #define ENABLE_GTK3_KDE5 0
#define ENABLE_KDE5 0 #define ENABLE_KF5 0
#define ENABLE_QT5 0 #define ENABLE_QT5 0
#define ENABLE_GSTREAMER_1_0 0 #define ENABLE_GSTREAMER_1_0 0

View File

@ -616,7 +616,7 @@ solaris*)
linux-gnu*|k*bsd*-gnu*) linux-gnu*|k*bsd*-gnu*)
test_gtk=yes test_gtk=yes
build_gstreamer_1_0=yes build_gstreamer_1_0=yes
test_kde5=yes test_kf5=yes
test_gtk3_kde5=yes test_gtk3_kde5=yes
test_gdb_index=yes test_gdb_index=yes
test_split_debug=yes test_split_debug=yes
@ -710,7 +710,7 @@ darwin*) # macOS or iOS
freebsd*) freebsd*)
test_gtk=yes test_gtk=yes
build_gstreamer_1_0=yes build_gstreamer_1_0=yes
test_kde5=yes test_kf5=yes
test_gtk3_kde5=yes test_gtk3_kde5=yes
test_freetype=yes test_freetype=yes
AC_MSG_CHECKING([the FreeBSD operating system release]) AC_MSG_CHECKING([the FreeBSD operating system release])
@ -738,7 +738,7 @@ freebsd*)
*netbsd*) *netbsd*)
test_gtk=yes test_gtk=yes
build_gstreamer_1_0=yes build_gstreamer_1_0=yes
test_kde5=yes test_kf5=yes
test_gtk3_kde5=yes test_gtk3_kde5=yes
test_freetype=yes test_freetype=yes
PTHREAD_LIBS="-pthread -lpthread" PTHREAD_LIBS="-pthread -lpthread"
@ -763,7 +763,7 @@ openbsd*)
dragonfly*) dragonfly*)
test_gtk=yes test_gtk=yes
build_gstreamer_1_0=yes build_gstreamer_1_0=yes
test_kde5=yes test_kf5=yes
test_gtk3_kde5=yes test_gtk3_kde5=yes
test_freetype=yes test_freetype=yes
PTHREAD_LIBS="-pthread" PTHREAD_LIBS="-pthread"
@ -785,7 +785,7 @@ linux-android*)
test_fontconfig=no test_fontconfig=no
test_freetype=no test_freetype=no
test_gtk=no test_gtk=no
test_kde5=no test_kf5=no
test_gtk3_kde5=no test_gtk3_kde5=no
test_randr=no test_randr=no
test_xrender=no test_xrender=no
@ -1271,15 +1271,20 @@ AC_ARG_ENABLE(qt5,
available.]), available.]),
,) ,)
AC_ARG_ENABLE(kde5, AC_ARG_ENABLE(kf5,
AS_HELP_STRING([--enable-kde5], AS_HELP_STRING([--enable-kf5],
[Determines whether to use Qt5/KF5 vclplug on platforms where Qt5 and [Determines whether to use Qt5/KF5 vclplug on platforms where Qt5 and
KF5 are available.]), KF5 are available.]),
,) ,)
AC_ARG_ENABLE(kde5,
AS_HELP_STRING([--enable-kde5],
[Compatibility switch for the kde5 => kf5 rename. Use --enable-kf5!])
,)
AC_ARG_ENABLE(gtk3_kde5, AC_ARG_ENABLE(gtk3_kde5,
AS_HELP_STRING([--enable-gtk3-kde5], AS_HELP_STRING([--enable-gtk3-kde5],
[Determines whether to use Gtk3 vclplug with KDE file dialogs on [Determines whether to use Gtk3 vclplug with KF5 file dialogs on
platforms where Gtk3, Qt5 and Plasma is available.]), platforms where Gtk3, Qt5 and Plasma is available.]),
,) ,)
@ -4911,7 +4916,7 @@ if test "$USING_X11" != TRUE; then
test_dbus=no test_dbus=no
test_gtk=no test_gtk=no
build_gstreamer_1_0=no build_gstreamer_1_0=no
test_kde5=no test_kf5=no
test_qt5=no test_qt5=no
test_gtk3_kde5=no test_gtk3_kde5=no
enable_cairo_canvas=no enable_cairo_canvas=no
@ -4919,16 +4924,22 @@ fi
if test "$OS" = "HAIKU"; then if test "$OS" = "HAIKU"; then
enable_cairo_canvas=yes enable_cairo_canvas=yes
test_kde5=yes test_kf5=yes
fi fi
if test "$test_kde5" = "yes"; then if test "x$enable_kde5" = "xyes"; then
AC_MSG_WARN([The kde5 VCL plugin was renamed to kf5. Please update your configuration to use --enable-kf5, as --enable-kde5 will be removed after the next major release!])
add_warning "The kde5 VCL plugin was renamed to kf5. Please update your configuration to use --enable-kf5, as --enable-kde5 will be removed after the next major release!"
test_kf5=yes
fi
if test "$test_kf5" = "yes"; then
test_qt5=yes test_qt5=yes
fi fi
if test "$test_kde5" = "yes" -a "$enable_kde5" = "yes"; then if test "$test_kf5" = "yes"; then
if test "$enable_qt5" = "no"; then if test "$enable_qt5" = "no"; then
AC_MSG_ERROR([KDE5 support depends on QT5, so it conflicts with --disable-qt5]) AC_MSG_ERROR([KF5 support depends on QT5, so it conflicts with --disable-qt5])
else else
enable_qt5=yes enable_qt5=yes
fi fi
@ -10461,13 +10472,13 @@ if test "x$enable_qt5" = "xyes"; then
fi fi
AC_SUBST(ENABLE_QT5) AC_SUBST(ENABLE_QT5)
ENABLE_KDE5="" ENABLE_KF5=""
if test "x$enable_kde5" = "xyes"; then if test "x$enable_kf5" = "xyes"; then
ENABLE_KDE5="TRUE" ENABLE_KF5="TRUE"
AC_DEFINE(ENABLE_KDE5) AC_DEFINE(ENABLE_KF5)
R="$R kde5" R="$R kf5"
fi fi
AC_SUBST(ENABLE_KDE5) AC_SUBST(ENABLE_KF5)
ENABLE_GTK3_KDE5="" ENABLE_GTK3_KDE5=""
if test "x$enable_gtk3_kde5" = "xyes"; then if test "x$enable_gtk3_kde5" = "xyes"; then
@ -11246,7 +11257,7 @@ AC_SUBST(ENABLE_SCRIPTING_JAVASCRIPT)
AC_SUBST(SYSTEM_RHINO) AC_SUBST(SYSTEM_RHINO)
AC_SUBST(RHINO_JAR) AC_SUBST(RHINO_JAR)
# This is only used in Qt5/KDE5 checks to determine if /usr/lib64 # This is only used in Qt5/KF5 checks to determine if /usr/lib64
# paths should be added to library search path. So lets put all 64-bit # paths should be added to library search path. So lets put all 64-bit
# platforms there. # platforms there.
supports_multilib= supports_multilib=
@ -11271,7 +11282,7 @@ MOC5="moc"
QT5_GOBJECT_CFLAGS="" QT5_GOBJECT_CFLAGS=""
QT5_GOBJECT_LIBS="" QT5_GOBJECT_LIBS=""
QT5_HAVE_GOBJECT="" QT5_HAVE_GOBJECT=""
if test \( "$test_kde5" = "yes" -a "$ENABLE_KDE5" = "TRUE" \) -o \ if test \( "$test_kf5" = "yes" -a "$ENABLE_KF5" = "TRUE" \) -o \
\( "$test_qt5" = "yes" -a "$ENABLE_QT5" = "TRUE" \) -o \ \( "$test_qt5" = "yes" -a "$ENABLE_QT5" = "TRUE" \) -o \
\( "$test_gtk3_kde5" = "yes" -a "$ENABLE_GTK3_KDE5" = "TRUE" \) \( "$test_gtk3_kde5" = "yes" -a "$ENABLE_GTK3_KDE5" = "TRUE" \)
then then
@ -11369,14 +11380,13 @@ AC_SUBST(QT5_GOBJECT_LIBS)
AC_SUBST(QT5_HAVE_GOBJECT) AC_SUBST(QT5_HAVE_GOBJECT)
dnl =================================================================== dnl ===================================================================
dnl KDE5 Integration dnl KF5 Integration
dnl =================================================================== dnl ===================================================================
KF5_CFLAGS="" KF5_CFLAGS=""
KF5_LIBS="" KF5_LIBS=""
KF5_CONFIG="kf5-config" KF5_CONFIG="kf5-config"
if test \( "$test_kde5" = "yes" -a "$ENABLE_KDE5" = "TRUE" \) -o \ if test \( "$test_kf5" = "yes" -a "$ENABLE_KF5" = "TRUE" \) -o \
\( "$test_kf5" = "yes" -a "$ENABLE_KF5" = "TRUE" \) -o \
\( "$test_gtk3_kde5" = "yes" -a "$ENABLE_GTK3_KDE5" = "TRUE" \) \( "$test_gtk3_kde5" = "yes" -a "$ENABLE_GTK3_KDE5" = "TRUE" \)
then then
if test "$OS" = "HAIKU"; then if test "$OS" = "HAIKU"; then

View File

@ -206,16 +206,6 @@ namespace
{ {
OUString impl_SystemFileOpenServiceName() OUString impl_SystemFileOpenServiceName()
{ {
const OUString &rDesktopEnvironment = Application::GetDesktopEnvironment();
if ( rDesktopEnvironment.equalsIgnoreAsciiCase("kde5") )
{
#if ENABLE_KDE5
return OUString("com.sun.star.ui.dialogs.KDE5FilePicker" );
#else
return OUString();
#endif
}
#if defined(_WIN32) #if defined(_WIN32)
return OUString("com.sun.star.ui.dialogs.SystemFilePicker"); return OUString("com.sun.star.ui.dialogs.SystemFilePicker");
#elif defined MACOSX #elif defined MACOSX

View File

@ -18,7 +18,7 @@
--with-external-dict-dir=/usr/share/hunspell --with-external-dict-dir=/usr/share/hunspell
--enable-dbus --enable-dbus
--enable-extension-integration --enable-extension-integration
# --enable-kde5 # --enable-kf5
--enable-gstreamer-1-0 --enable-gstreamer-1-0
--enable-evolution2 --enable-evolution2
--enable-gio --enable-gio

View File

@ -1,4 +1,4 @@
--enable-dbgutil --enable-dbgutil
--enable-kde5 --enable-kf5
CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CC=/opt/rh/devtoolset-7/root/usr/bin/gcc
CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ CXX=/opt/rh/devtoolset-7/root/usr/bin/g++

View File

@ -1,3 +1,3 @@
--enable-kde5 --enable-kf5
CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CC=/opt/rh/devtoolset-7/root/usr/bin/gcc
CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ CXX=/opt/rh/devtoolset-7/root/usr/bin/g++

View File

@ -1,4 +1,4 @@
--enable-dbgutil --enable-dbgutil
--enable-compiler-plugins --enable-compiler-plugins
COMPILER_PLUGINS_CXX=ccache g++ -std=c++11 COMPILER_PLUGINS_CXX=ccache g++ -std=c++11
--enable-kde5 --enable-kf5

View File

@ -1,3 +1,3 @@
CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CC=/opt/rh/devtoolset-7/root/usr/bin/gcc
CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ CXX=/opt/rh/devtoolset-7/root/usr/bin/g++
--enable-kde5 --enable-kf5

View File

@ -13,7 +13,7 @@
--enable-dbus --enable-dbus
--enable-extension-integration --enable-extension-integration
--enable-gtk3 --enable-gtk3
--enable-kde5 --enable-kf5
--enable-evolution2 --enable-evolution2
--enable-scripting-beanshell --enable-scripting-beanshell
--enable-scripting-javascript --enable-scripting-javascript

View File

@ -21,7 +21,7 @@
--enable-extension-integration --enable-extension-integration
--enable-odk --enable-odk
--enable-gtk3-kde5 --enable-gtk3-kde5
--enable-kde5 --enable-kf5
--enable-gstreamer-1-0 --enable-gstreamer-1-0
--enable-evolution2 --enable-evolution2
--enable-gio --enable-gio

View File

@ -11,7 +11,7 @@
--disable-gtk --disable-gtk
--disable-gtk3 --disable-gtk3
--disable-qt5 --disable-qt5
--disable-kde5 --disable-kf5
--disable-odk --disable-odk
--disable-online-update --disable-online-update
--enable-pdfimport --enable-pdfimport

View File

@ -1,6 +1,6 @@
--disable-dbus --disable-dbus
--disable-epm --disable-epm
--disable-kde5 --disable-kf5
--disable-nss-module --disable-nss-module
--disable-odk --disable-odk
--enable-ext-wiki-publisher --enable-ext-wiki-publisher

View File

@ -19,7 +19,7 @@
--disable-database-connectivity --disable-database-connectivity
--disable-dconf --disable-dconf
--disable-extensions --disable-extensions
--disable-kde5 --disable-kf5
--disable-odk --disable-odk
--disable-openssl --disable-openssl
--disable-pdfium --disable-pdfium

View File

@ -19,7 +19,7 @@
--disable-database-connectivity --disable-database-connectivity
--disable-dconf --disable-dconf
--disable-extensions --disable-extensions
--disable-kde5 --disable-kf5
--disable-odk --disable-odk
--disable-openssl --disable-openssl
--disable-pdfium --disable-pdfium

View File

@ -479,7 +479,7 @@ certain functionality.
@li @c vcl.helper @li @c vcl.helper
@li @c vcl.icontest @li @c vcl.icontest
@li @c vcl.ios.clipboard @li @c vcl.ios.clipboard
@li @c vcl.kde5 - KDE5 @li @c vcl.kf5 - KF5
@li @c vcl.layout - Widget layout @li @c vcl.layout - Widget layout
@li @c vcl.lazydelete @li @c vcl.lazydelete
@li @c vcl.opengl @li @c vcl.opengl

View File

@ -207,8 +207,8 @@ $(eval $(call gb_Rdb_add_components,services,\
$(if $(ENABLE_VLC), \ $(if $(ENABLE_VLC), \
avmedia/source/vlc/avmediavlc \ avmedia/source/vlc/avmediavlc \
) \ ) \
$(if $(ENABLE_KDE5), \ $(if $(ENABLE_KF5), \
shell/source/backends/kde5be/kde5be1 \ shell/source/backends/kf5be/kf5be1 \
) \ ) \
$(if $(ENABLE_ONLINE_UPDATE), \ $(if $(ENABLE_ONLINE_UPDATE), \
extensions/source/update/check/updchk.uno \ extensions/source/update/check/updchk.uno \

View File

@ -35,7 +35,7 @@ $(eval $(call gb_InstallScript_use_modules,setup_osl,\
$(if $(filter TRUE,$(ENABLE_EVOAB2) $(ENABLE_GIO) $(ENABLE_GTK) $(ENABLE_GTK3)),\ $(if $(filter TRUE,$(ENABLE_EVOAB2) $(ENABLE_GIO) $(ENABLE_GTK) $(ENABLE_GTK3)),\
scp2/gnome \ scp2/gnome \
) \ ) \
$(if $(filter TRUE,$(ENABLE_QT5) $(ENABLE_KDE5) $(ENABLE_GTK3_KDE5)),\ $(if $(filter TRUE,$(ENABLE_QT5) $(ENABLE_KF5) $(ENABLE_GTK3_KDE5)),\
scp2/kde \ scp2/kde \
) \ ) \
$(if $(filter TRUE,$(ENABLE_ONLINE_UPDATE)),\ $(if $(filter TRUE,$(ENABLE_ONLINE_UPDATE)),\

View File

@ -39,7 +39,7 @@ $(eval $(call gb_Module_add_targets,scp2,\
$(if $(filter TRUE,$(ENABLE_EVOAB2) $(ENABLE_GIO) $(ENABLE_GTK) $(ENABLE_GTK3)),\ $(if $(filter TRUE,$(ENABLE_EVOAB2) $(ENABLE_GIO) $(ENABLE_GTK) $(ENABLE_GTK3)),\
InstallModule_gnome \ InstallModule_gnome \
) \ ) \
$(if $(filter TRUE,$(ENABLE_QT5) $(ENABLE_KDE5) $(ENABLE_GTK3_KDE5)),\ $(if $(filter TRUE,$(ENABLE_QT5) $(ENABLE_KF5) $(ENABLE_GTK3_KDE5)),\
InstallModule_kde \ InstallModule_kde \
) \ ) \
)) ))

View File

@ -7,32 +7,32 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
# #
$(eval $(call gb_Library_Library,kde5be1)) $(eval $(call gb_Library_Library,kf5be1))
$(eval $(call gb_Library_use_sdk_api,kde5be1)) $(eval $(call gb_Library_use_sdk_api,kf5be1))
$(eval $(call gb_Library_use_externals,kde5be1,\ $(eval $(call gb_Library_use_externals,kf5be1,\
boost_headers \ boost_headers \
kde5 \ kf5 \
)) ))
$(eval $(call gb_Library_use_libraries,kde5be1,\ $(eval $(call gb_Library_use_libraries,kf5be1,\
cppu \ cppu \
cppuhelper \ cppuhelper \
sal \ sal \
)) ))
$(eval $(call gb_Library_set_componentfile,kde5be1,shell/source/backends/kde5be/kde5be1)) $(eval $(call gb_Library_set_componentfile,kf5be1,shell/source/backends/kf5be/kf5be1))
$(eval $(call gb_Library_add_exception_objects,kde5be1,\ $(eval $(call gb_Library_add_exception_objects,kf5be1,\
shell/source/backends/kde5be/kde5access \ shell/source/backends/kf5be/kf5access \
shell/source/backends/kde5be/kde5backend \ shell/source/backends/kf5be/kf5backend \
)) ))
# Workaround for clang+icecream (clang's -frewrite-includes # Workaround for clang+icecream (clang's -frewrite-includes
# doesn't handle Qt5's QT_HAS_INCLUDE that Qt5 uses for <chrono>). # doesn't handle Qt5's QT_HAS_INCLUDE that Qt5 uses for <chrono>).
ifeq ($(COM_IS_CLANG),TRUE) ifeq ($(COM_IS_CLANG),TRUE)
$(eval $(call gb_Library_add_cxxflags,kde5be1, \ $(eval $(call gb_Library_add_cxxflags,kf5be1, \
-include chrono \ -include chrono \
)) ))
endif endif

View File

@ -30,9 +30,9 @@ $(eval $(call gb_Module_add_targets,shell,\
endif endif
endif endif
ifeq ($(ENABLE_KDE5),TRUE) ifeq ($(ENABLE_KF5),TRUE)
$(eval $(call gb_Module_add_targets,shell,\ $(eval $(call gb_Module_add_targets,shell,\
Library_kde5be \ Library_kf5be \
)) ))
endif endif

View File

@ -304,11 +304,9 @@ css::uno::Reference< css::uno::XInterface > createInstance(
// Fall back to the default if the specific backend is not available: // Fall back to the default if the specific backend is not available:
css::uno::Reference< css::uno::XInterface > backend; css::uno::Reference< css::uno::XInterface > backend;
if ( desktop == "KDE5" ) { if (desktop == "PLASMA5")
backend = createBackend( backend = createBackend(context,
context, "com.sun.star.configuration.backend.KF5Backend");
"com.sun.star.configuration.backend.KDE5Backend");
}
return backend.is() return backend.is()
? backend : static_cast< cppu::OWeakObject * >(new Default); ? backend : static_cast< cppu::OWeakObject * >(new Default);
} }

View File

@ -19,7 +19,7 @@
#include <sal/config.h> #include <sal/config.h>
#include "kde5access.hxx" #include "kf5access.hxx"
#include <QtGui/QFont> #include <QtGui/QFont>
#include <QtCore/QString> #include <QtCore/QString>
@ -40,7 +40,7 @@
#include <rtl/string.h> #include <rtl/string.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
namespace kde5access namespace kf5access
{ {
namespace namespace
{ {

View File

@ -17,8 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SHELL_SOURCE_BACKENDS_KDE5BE_KDE5ACCESS_HXX #ifndef INCLUDED_SHELL_SOURCE_BACKENDS_KF5BE_KF5ACCESS_HXX
#define INCLUDED_SHELL_SOURCE_BACKENDS_KDE5BE_KDE5ACCESS_HXX #define INCLUDED_SHELL_SOURCE_BACKENDS_KF5BE_KF5ACCESS_HXX
#include <sal/config.h> #include <sal/config.h>
@ -38,7 +38,7 @@ class Any;
} }
} }
namespace kde5access namespace kf5access
{ {
css::beans::Optional<css::uno::Any> getValue(OUString const& id); css::beans::Optional<css::uno::Any> getValue(OUString const& id);
} }

View File

@ -52,18 +52,18 @@
#include <osl/process.h> #include <osl/process.h>
#include <osl/thread.h> #include <osl/thread.h>
#include "kde5access.hxx" #include "kf5access.hxx"
namespace namespace
{ {
OUString getServiceImplementationName() OUString getServiceImplementationName()
{ {
return OUString("com.sun.star.comp.configuration.backend.KDE5Backend"); return OUString("com.sun.star.comp.configuration.backend.KF5Backend");
} }
css::uno::Sequence<OUString> getServiceSupportedServiceNames() css::uno::Sequence<OUString> getServiceSupportedServiceNames()
{ {
OUString name("com.sun.star.configuration.backend.KDE5Backend"); OUString name("com.sun.star.configuration.backend.KF5Backend");
return css::uno::Sequence<OUString>(&name, 1); return css::uno::Sequence<OUString>(&name, 1);
} }
@ -159,14 +159,14 @@ void readKDESettings(std::map<OUString, css::beans::Optional<css::uno::Any>>& rS
for (const OUString& aKey : aKeys) for (const OUString& aKey : aKeys)
{ {
css::beans::Optional<css::uno::Any> aValue = kde5access::getValue(aKey); css::beans::Optional<css::uno::Any> aValue = kf5access::getValue(aKey);
std::pair<OUString, css::beans::Optional<css::uno::Any>> elem std::pair<OUString, css::beans::Optional<css::uno::Any>> elem
= std::make_pair(aKey, aValue); = std::make_pair(aKey, aValue);
rSettings.insert(elem); rSettings.insert(elem);
} }
} }
// init the QApplication when we load the kde5backend into a non-Qt vclplug (e.g. Gtk3KDE5) // init the QApplication when we load the kf5backend into a non-Qt vclplug (e.g. gtk3_kde5)
// TODO: use a helper process to read these values without linking to Qt directly? // TODO: use a helper process to read these values without linking to Qt directly?
// TODO: share this code somehow with Qt5Instance.cxx? // TODO: share this code somehow with Qt5Instance.cxx?
void initQApp(std::map<OUString, css::beans::Optional<css::uno::Any>>& rSettings) void initQApp(std::map<OUString, css::beans::Optional<css::uno::Any>>& rSettings)
@ -212,7 +212,7 @@ Service::Service()
OUString desktop; OUString desktop;
context->getValueByName("system.desktop-environment") >>= desktop; context->getValueByName("system.desktop-environment") >>= desktop;
if (desktop == "KDE5") if (desktop == "PLASMA5")
{ {
if (!qApp) // no qt event loop yet if (!qApp) // no qt event loop yet
{ {
@ -271,7 +271,7 @@ static cppu::ImplementationEntry const services[]
} }
extern "C" SAL_DLLPUBLIC_EXPORT void* extern "C" SAL_DLLPUBLIC_EXPORT void*
kde5be1_component_getFactory(char const* pImplName, void* pServiceManager, void* pRegistryKey) kf5be1_component_getFactory(char const* pImplName, void* pServiceManager, void* pRegistryKey)
{ {
return cppu::component_getFactoryHelper(pImplName, pServiceManager, pRegistryKey, services); return cppu::component_getFactoryHelper(pImplName, pServiceManager, pRegistryKey, services);
} }

View File

@ -18,8 +18,8 @@
--> -->
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" <component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
prefix="kde5be1" xmlns="http://openoffice.org/2010/uno-components"> prefix="kf5be1" xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.configuration.backend.KDE5Backend"> <implementation name="com.sun.star.comp.configuration.backend.KF5Backend">
<service name="com.sun.star.configuration.backend.KDE5Backend"/> <service name="com.sun.star.configuration.backend.KF5Backend"/>
</implementation> </implementation>
</component> </component>

View File

@ -39,9 +39,7 @@ static OUString FilePicker_getSystemPickerServiceName()
{ {
#ifdef UNX #ifdef UNX
OUString aDesktopEnvironment (Application::GetDesktopEnvironment()); OUString aDesktopEnvironment (Application::GetDesktopEnvironment());
if (aDesktopEnvironment.equalsIgnoreAsciiCase("kde5")) if (aDesktopEnvironment.equalsIgnoreAsciiCase("macosx"))
return OUString ("com.sun.star.ui.dialogs.KDE5FilePicker");
else if (aDesktopEnvironment.equalsIgnoreAsciiCase("macosx"))
return OUString ("com.sun.star.ui.dialogs.AquaFilePicker"); return OUString ("com.sun.star.ui.dialogs.AquaFilePicker");
else else
return OUString ("com.sun.star.ui.dialogs.SystemFilePicker"); return OUString ("com.sun.star.ui.dialogs.SystemFilePicker");
@ -113,9 +111,7 @@ static OUString FolderPicker_getSystemPickerServiceName()
{ {
#ifdef UNX #ifdef UNX
OUString aDesktopEnvironment (Application::GetDesktopEnvironment()); OUString aDesktopEnvironment (Application::GetDesktopEnvironment());
if (aDesktopEnvironment.equalsIgnoreAsciiCase("kde5")) if (aDesktopEnvironment.equalsIgnoreAsciiCase("macosx"))
return OUString("com.sun.star.ui.dialogs.KDEFolderPicker");
else if (aDesktopEnvironment.equalsIgnoreAsciiCase("macosx"))
return OUString("com.sun.star.ui.dialogs.AquaFolderPicker"); return OUString("com.sun.star.ui.dialogs.AquaFolderPicker");
#endif #endif
return OUString("com.sun.star.ui.dialogs.SystemFolderPicker"); return OUString("com.sun.star.ui.dialogs.SystemFolderPicker");

View File

@ -7,14 +7,14 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
# #
$(eval $(call gb_CustomTarget_CustomTarget,vcl/unx/kde5)) $(eval $(call gb_CustomTarget_CustomTarget,vcl/unx/kf5))
$(call gb_CustomTarget_get_target,vcl/unx/kde5) : \ $(call gb_CustomTarget_get_target,vcl/unx/kf5) : \
$(call gb_CustomTarget_get_workdir,vcl/unx/kde5)/KDE5FilePicker.moc $(call gb_CustomTarget_get_workdir,vcl/unx/kf5)/KF5FilePicker.moc
$(call gb_CustomTarget_get_workdir,vcl/unx/kde5)/%.moc : \ $(call gb_CustomTarget_get_workdir,vcl/unx/kf5)/%.moc : \
$(SRCDIR)/vcl/unx/kde5/%.hxx \ $(SRCDIR)/vcl/unx/kf5/%.hxx \
| $(call gb_CustomTarget_get_workdir,vcl/unx/kde5)/.dir | $(call gb_CustomTarget_get_workdir,vcl/unx/kf5)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MOC,1) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MOC,1)
$(MOC5) $< -o $@ $(MOC5) $< -o $@

View File

@ -68,7 +68,7 @@ $(eval $(call gb_Executable_use_libraries,lo_kde5filepicker,\
$(eval $(call gb_Executable_use_externals,lo_kde5filepicker,\ $(eval $(call gb_Executable_use_externals,lo_kde5filepicker,\
boost_headers \ boost_headers \
epoxy \ epoxy \
kde5 \ kf5 \
dbus \ dbus \
)) ))

View File

@ -603,7 +603,7 @@ $(eval $(call gb_Library_add_libs,vcl,\
)) ))
$(eval $(call gb_Library_add_exception_objects,vcl, \ $(eval $(call gb_Library_add_exception_objects,vcl, \
$(if $(or $(ENABLE_QT5),$(ENABLE_KDE5)),vcl/source/app/salplug) \ $(if $(or $(ENABLE_QT5),$(ENABLE_KF5)),vcl/source/app/salplug) \
)) ))
$(eval $(call gb_Library_use_externals,vcl,\ $(eval $(call gb_Library_use_externals,vcl,\

View File

@ -17,23 +17,23 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 . # the License at http://www.apache.org/licenses/LICENSE-2.0 .
# #
$(eval $(call gb_Library_Library,vclplug_kde5)) $(eval $(call gb_Library_Library,vclplug_kf5))
$(eval $(call gb_Library_use_custom_headers,vclplug_kde5,vcl/unx/kde5)) $(eval $(call gb_Library_use_custom_headers,vclplug_kf5,vcl/unx/kf5))
$(eval $(call gb_Library_set_include,vclplug_kde5,\ $(eval $(call gb_Library_set_include,vclplug_kf5,\
$$(INCLUDE) \ $$(INCLUDE) \
-I$(SRCDIR)/vcl/inc \ -I$(SRCDIR)/vcl/inc \
-I$(SRCDIR)/vcl/inc/qt5 \ -I$(SRCDIR)/vcl/inc/qt5 \
)) ))
$(eval $(call gb_Library_add_defs,vclplug_kde5,\ $(eval $(call gb_Library_add_defs,vclplug_kf5,\
-DVCLPLUG_KDE5_IMPLEMENTATION \ -DVCLPLUG_KF5_IMPLEMENTATION \
)) ))
$(eval $(call gb_Library_use_sdk_api,vclplug_kde5)) $(eval $(call gb_Library_use_sdk_api,vclplug_kf5))
$(eval $(call gb_Library_use_libraries,vclplug_kde5,\ $(eval $(call gb_Library_use_libraries,vclplug_kf5,\
vclplug_qt5 \ vclplug_qt5 \
vcl \ vcl \
tl \ tl \
@ -51,41 +51,41 @@ $(eval $(call gb_Library_use_libraries,vclplug_kde5,\
sal \ sal \
)) ))
$(eval $(call gb_Library_use_externals,vclplug_kde5,\ $(eval $(call gb_Library_use_externals,vclplug_kf5,\
boost_headers \ boost_headers \
cairo \ cairo \
graphite \ graphite \
harfbuzz \ harfbuzz \
icuuc \ icuuc \
kde5 \ kf5 \
epoxy \ epoxy \
)) ))
ifneq ($(QT5_HAVE_GLIB),) ifneq ($(QT5_HAVE_GLIB),)
$(eval $(call gb_Library_add_cxxflags,vclplug_kde5,\ $(eval $(call gb_Library_add_cxxflags,vclplug_kf5,\
$(QT5_GLIB_CFLAGS) \ $(QT5_GLIB_CFLAGS) \
)) ))
$(eval $(call gb_Library_add_libs,vclplug_kde5,\ $(eval $(call gb_Library_add_libs,vclplug_kf5,\
$(QT5_GLIB_LIBS) \ $(QT5_GLIB_LIBS) \
)) ))
endif endif
$(eval $(call gb_Library_add_cxxflags,vclplug_kde5,\ $(eval $(call gb_Library_add_cxxflags,vclplug_kf5,\
$(KF5_CFLAGS) \ $(KF5_CFLAGS) \
)) ))
$(eval $(call gb_Library_add_libs,vclplug_kde5,\ $(eval $(call gb_Library_add_libs,vclplug_kf5,\
$(KF5_LIBS) \ $(KF5_LIBS) \
)) ))
$(eval $(call gb_Library_add_exception_objects,vclplug_kde5,\ $(eval $(call gb_Library_add_exception_objects,vclplug_kf5,\
vcl/unx/kde5/KDE5FilePicker2 \ vcl/unx/kf5/KF5FilePicker \
vcl/unx/kde5/KDE5SalFrame \ vcl/unx/kf5/KF5SalFrame \
vcl/unx/kde5/KDE5SalInstance \ vcl/unx/kf5/KF5SalInstance \
)) ))
ifeq ($(OS),LINUX) ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_libs,vclplug_kde5,\ $(eval $(call gb_Library_add_libs,vclplug_kf5,\
-lm \ -lm \
-ldl \ -ldl \
)) ))
@ -94,7 +94,7 @@ endif
# Workaround for clang+icecream (clang's -frewrite-includes # Workaround for clang+icecream (clang's -frewrite-includes
# doesn't handle Qt5's QT_HAS_INCLUDE that Qt5 uses for <chrono>). # doesn't handle Qt5's QT_HAS_INCLUDE that Qt5 uses for <chrono>).
ifeq ($(COM_IS_CLANG),TRUE) ifeq ($(COM_IS_CLANG),TRUE)
$(eval $(call gb_Library_add_cxxflags,vclplug_kde5, \ $(eval $(call gb_Library_add_cxxflags,vclplug_kf5, \
-include chrono \ -include chrono \
)) ))
endif endif

View File

@ -77,10 +77,10 @@ $(eval $(call gb_Module_add_targets,vcl,\
Library_vclplug_gtk3 \ Library_vclplug_gtk3 \
)) ))
endif endif
ifneq ($(ENABLE_KDE5),) ifneq ($(ENABLE_KF5),)
$(eval $(call gb_Module_add_targets,vcl,\ $(eval $(call gb_Module_add_targets,vcl,\
CustomTarget_kde5_moc \ CustomTarget_kf5_moc \
Library_vclplug_kde5 \ Library_vclplug_kf5 \
)) ))
endif endif
ifneq ($(ENABLE_QT5),) ifneq ($(ENABLE_QT5),)
@ -119,10 +119,10 @@ $(eval $(call gb_Module_add_targets,vcl,\
Library_vclplug_qt5 \ Library_vclplug_qt5 \
)) ))
endif endif
ifneq ($(ENABLE_KDE5),) ifneq ($(ENABLE_KF5),)
$(eval $(call gb_Module_add_targets,vcl,\ $(eval $(call gb_Module_add_targets,vcl,\
CustomTarget_kde5_moc \ CustomTarget_kf5_moc \
Library_vclplug_kde5 \ Library_vclplug_kf5 \
)) ))
endif endif
endif endif

View File

@ -38,8 +38,8 @@ unx/
+ GTK2 support + GTK2 support
gtk3/ gtk3/
+ GTK3 support + GTK3 support
kde5/ kf5/
+ KDE5 support + KF5 support
gtk3_kde5/ gtk3_kde5/
+ GTK3 support with KDE5 file pickers (alternative to native kde5 one) + GTK3 support with KDE5 file pickers (alternative to native kde5 one)
generic/ generic/

View File

@ -31,7 +31,7 @@ enum SAL_DLLPUBLIC_RTTI DesktopType {
DESKTOP_UNITY, DESKTOP_UNITY,
DESKTOP_XFCE, DESKTOP_XFCE,
DESKTOP_MATE, DESKTOP_MATE,
DESKTOP_KDE5, DESKTOP_PLASMA5,
DESKTOP_LXQT DESKTOP_LXQT
}; // keep in sync with desktop_strings[] in salplug.cxx }; // keep in sync with desktop_strings[] in salplug.cxx

View File

@ -27,7 +27,7 @@ enum GenericUnixSalDataType
{ {
SAL_DATA_GTK, SAL_DATA_GTK,
SAL_DATA_GTK3, SAL_DATA_GTK3,
SAL_DATA_KDE5, SAL_DATA_KF5,
SAL_DATA_UNX, SAL_DATA_UNX,
SAL_DATA_SVP, SAL_DATA_SVP,
SAL_DATA_ANDROID, SAL_DATA_ANDROID,

View File

@ -35,10 +35,10 @@
#define VCLPLUG_GTK_PUBLIC SAL_DLLPUBLIC_IMPORT #define VCLPLUG_GTK_PUBLIC SAL_DLLPUBLIC_IMPORT
#endif #endif
#if defined VCLPLUG_KDE5_IMPLEMENTATION #if defined VCLPLUG_KF5_IMPLEMENTATION
#define VCLPLUG_KDE5_PUBLIC SAL_DLLPUBLIC_EXPORT #define VCLPLUG_KF5_PUBLIC SAL_DLLPUBLIC_EXPORT
#else #else
#define VCLPLUG_KDE5_PUBLIC SAL_DLLPUBLIC_IMPORT #define VCLPLUG_KF5_PUBLIC SAL_DLLPUBLIC_IMPORT
#endif #endif
#if defined VCLPLUG_OSX_IMPLEMENTATION #if defined VCLPLUG_OSX_IMPLEMENTATION

View File

@ -75,8 +75,8 @@ IconThemeSelectorTest::BreezeIsReturnedForKde5Desktop()
{ {
std::vector<vcl::IconThemeInfo> themes = GetFakeInstalledThemes(); std::vector<vcl::IconThemeInfo> themes = GetFakeInstalledThemes();
vcl::IconThemeSelector s; vcl::IconThemeSelector s;
OUString r = s.SelectIconThemeForDesktopEnvironment(themes, "kde5"); OUString r = s.SelectIconThemeForDesktopEnvironment(themes, "plasma5");
CPPUNIT_ASSERT_EQUAL_MESSAGE("'breeze' theme is returned for kde5 desktop", OUString("breeze"), r); CPPUNIT_ASSERT_EQUAL_MESSAGE("'breeze' theme is returned for Plasma 5 desktop", OUString("breeze"), r);
} }
void void

View File

@ -1062,14 +1062,14 @@ KeyIndicatorState Qt5Frame::GetIndicatorState() { return KeyIndicatorState(); }
void Qt5Frame::SimulateKeyPress(sal_uInt16 nKeyCode) void Qt5Frame::SimulateKeyPress(sal_uInt16 nKeyCode)
{ {
SAL_WARN("vcl.kde5", "missing simulate keypress " << nKeyCode); SAL_WARN("vcl.qt5", "missing simulate keypress " << nKeyCode);
} }
void Qt5Frame::SetParent(SalFrame* pNewParent) { m_pParent = static_cast<Qt5Frame*>(pNewParent); } void Qt5Frame::SetParent(SalFrame* pNewParent) { m_pParent = static_cast<Qt5Frame*>(pNewParent); }
bool Qt5Frame::SetPluginParent(SystemParentData* /*pNewParent*/) bool Qt5Frame::SetPluginParent(SystemParentData* /*pNewParent*/)
{ {
//FIXME: no SetPluginParent impl. for kde5 //FIXME: no SetPluginParent impl. for qt5
return false; return false;
} }

View File

@ -55,7 +55,7 @@ IconThemeSelector::GetIconThemeForDesktopEnvironment(const OUString& desktopEnvi
return OUString("colibre"); return OUString("colibre");
#else #else
OUString r; OUString r;
if ( desktopEnvironment.equalsIgnoreAsciiCase("kde5") || if ( desktopEnvironment.equalsIgnoreAsciiCase("plasma5") ||
desktopEnvironment.equalsIgnoreAsciiCase("lxqt") ) { desktopEnvironment.equalsIgnoreAsciiCase("lxqt") ) {
r = "breeze"; r = "breeze";
} }

View File

@ -65,11 +65,14 @@ SalInstance* tryInstance( const OUString& rModuleBase, bool bForce = false )
#endif #endif
SalInstance* pInst = nullptr; SalInstance* pInst = nullptr;
OUString aUsedModuleBase(rModuleBase);
if (aUsedModuleBase == "kde5")
aUsedModuleBase = "kf5";
OUString aModule( OUString aModule(
#ifdef SAL_DLLPREFIX #ifdef SAL_DLLPREFIX
SAL_DLLPREFIX SAL_DLLPREFIX
#endif #endif
"vclplug_" + rModuleBase + "lo" SAL_DLLEXTENSION ); "vclplug_" + aUsedModuleBase + "lo" SAL_DLLEXTENSION );
osl::Module aMod; osl::Module aMod;
if (aMod.loadRelative(reinterpret_cast<oslGenericFunction>(&tryInstance), aModule, SAL_LOADMODULE_GLOBAL)) if (aMod.loadRelative(reinterpret_cast<oslGenericFunction>(&tryInstance), aModule, SAL_LOADMODULE_GLOBAL))
@ -92,7 +95,7 @@ SalInstance* tryInstance( const OUString& rModuleBase, bool bForce = false )
* So make sure libgtk+ & co are still mapped into memory when * So make sure libgtk+ & co are still mapped into memory when
* atk-bridge's atexit handler gets called. * atk-bridge's atexit handler gets called.
*/ */
if( rModuleBase == "gtk" || rModuleBase == "gtk3" || rModuleBase == "gtk3_kde5" || rModuleBase == "win" ) if( aUsedModuleBase == "gtk" || aUsedModuleBase == "gtk3" || aUsedModuleBase == "gtk3_kde5" || aUsedModuleBase == "win" )
{ {
pCloseModule = nullptr; pCloseModule = nullptr;
} }
@ -145,8 +148,8 @@ SalInstance* autodetect_plugin()
{ {
static const char* const pKDEFallbackList[] = static const char* const pKDEFallbackList[] =
{ {
#if ENABLE_KDE5 #if ENABLE_KF5
"kde5", "kf5",
#endif #endif
#if ENABLE_GTK3_KDE5 #if ENABLE_GTK3_KDE5
"gtk3_kde5", "gtk3_kde5",
@ -181,8 +184,7 @@ SalInstance* autodetect_plugin()
desktop == DESKTOP_XFCE || desktop == DESKTOP_XFCE ||
desktop == DESKTOP_MATE ) desktop == DESKTOP_MATE )
pList = pStandardFallbackList; pList = pStandardFallbackList;
else if( desktop == DESKTOP_KDE5 || else if (desktop == DESKTOP_PLASMA5 || desktop == DESKTOP_LXQT)
desktop == DESKTOP_LXQT )
pList = pKDEFallbackList; pList = pKDEFallbackList;
SalInstance* pInst = nullptr; SalInstance* pInst = nullptr;
@ -257,7 +259,7 @@ SalInstance *CreateSalInstance()
#ifdef MACOSX #ifdef MACOSX
"osx" "osx"
#else #else
"gtk3", "gtk", "kde5", "gen" "gtk3", "gtk", "kf5", "gen"
#endif #endif
#endif #endif
}; };
@ -314,7 +316,7 @@ const OUString& SalGetDesktopEnvironment()
// Order to match desktops.hxx' DesktopType // Order to match desktops.hxx' DesktopType
static const char * const desktop_strings[] = { static const char * const desktop_strings[] = {
"none", "unknown", "GNOME", "UNITY", "none", "unknown", "GNOME", "UNITY",
"XFCE", "MATE", "KDE5", "LXQT" }; "XFCE", "MATE", "PLASMA5", "LXQT" };
static OUString aDesktopEnvironment; static OUString aDesktopEnvironment;
if( aDesktopEnvironment.isEmpty()) if( aDesktopEnvironment.isEmpty())
{ {

View File

@ -115,15 +115,11 @@ static bool is_gnome_desktop( Display* pDisplay )
return ret; return ret;
} }
static bool is_plasma5_desktop()
static bool is_kde5_desktop()
{ {
static const char * pFullVersion = getenv( "KDE_FULL_SESSION" ); static const char* pFullVersion = getenv("KDE_FULL_SESSION");
static const char * pSessionVersion = getenv( "KDE_SESSION_VERSION" ); static const char* pSessionVersion = getenv("KDE_SESSION_VERSION");
if ( pFullVersion && pSessionVersion && strcmp(pSessionVersion, "5") == 0) return pFullVersion && pSessionVersion && (0 == strcmp(pSessionVersion, "5"));
return true;
return false;
} }
extern "C" extern "C"
@ -139,8 +135,8 @@ DESKTOP_DETECTOR_PUBLIC DesktopType get_desktop_environment()
if ( aOver.equalsIgnoreAsciiCase( "lxqt" ) ) if ( aOver.equalsIgnoreAsciiCase( "lxqt" ) )
return DESKTOP_LXQT; return DESKTOP_LXQT;
if ( aOver.equalsIgnoreAsciiCase( "kde5" ) ) if (aOver.equalsIgnoreAsciiCase("plasma5") || aOver.equalsIgnoreAsciiCase("plasma"))
return DESKTOP_KDE5; return DESKTOP_PLASMA5;
if ( aOver.equalsIgnoreAsciiCase( "gnome" ) ) if ( aOver.equalsIgnoreAsciiCase( "gnome" ) )
return DESKTOP_GNOME; return DESKTOP_GNOME;
if ( aOver.equalsIgnoreAsciiCase( "gnome-wayland" ) ) if ( aOver.equalsIgnoreAsciiCase( "gnome-wayland" ) )
@ -197,9 +193,8 @@ DESKTOP_DETECTOR_PUBLIC DesktopType get_desktop_environment()
else if ( aDesktopSession.equalsIgnoreAsciiCase( "lxqt" ) ) else if ( aDesktopSession.equalsIgnoreAsciiCase( "lxqt" ) )
return DESKTOP_LXQT; return DESKTOP_LXQT;
if (is_plasma5_desktop())
if ( is_kde5_desktop() ) return DESKTOP_PLASMA5;
return DESKTOP_KDE5;
// tdf#121275 if we still can't tell, and WAYLAND_DISPLAY // tdf#121275 if we still can't tell, and WAYLAND_DISPLAY
// is set, default to gtk3 // is set, default to gtk3

View File

@ -68,7 +68,7 @@ void KDE5FilePicker::enableFolderMode()
// and then confirming would return "foo" rather than "foo/bar"; // and then confirming would return "foo" rather than "foo/bar";
// on the other hand, non-native file dialog needs 'QFileDialog::Directory' // on the other hand, non-native file dialog needs 'QFileDialog::Directory'
// and doesn't allow folder selection otherwise // and doesn't allow folder selection otherwise
if (Application::GetDesktopEnvironment() != "KDE5") if (Application::GetDesktopEnvironment() != "PLASMA5")
{ {
_dialog->setFileMode(QFileDialog::Directory); _dialog->setFileMode(QFileDialog::Directory);
} }
@ -248,7 +248,7 @@ void KDE5FilePicker::setupCustomWidgets()
// dialog there in order not to lose the custom controls and insert the custom // dialog there in order not to lose the custom controls and insert the custom
// widget in the layout returned by QFileDialog::layout() // widget in the layout returned by QFileDialog::layout()
// (which returns nullptr for native file dialogs) // (which returns nullptr for native file dialogs)
if (Application::GetDesktopEnvironment() == "KDE5") if (Application::GetDesktopEnvironment() == "PLASMA5")
{ {
qApp->installEventFilter(this); qApp->installEventFilter(this);
} }

View File

@ -17,8 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include "KDE5FilePicker.hxx" #include "KF5FilePicker.hxx"
#include <KDE5FilePicker.moc> #include <KF5FilePicker.moc>
#include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp> #include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp>
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
@ -41,17 +41,17 @@ uno::Sequence<OUString> FilePicker_getSupportedServiceNames()
uno::Sequence<OUString> aRet(4); uno::Sequence<OUString> aRet(4);
aRet[0] = "com.sun.star.ui.dialogs.FilePicker"; aRet[0] = "com.sun.star.ui.dialogs.FilePicker";
aRet[1] = "com.sun.star.ui.dialogs.SystemFilePicker"; aRet[1] = "com.sun.star.ui.dialogs.SystemFilePicker";
aRet[2] = "com.sun.star.ui.dialogs.KDE5FilePicker"; aRet[2] = "com.sun.star.ui.dialogs.KF5FilePicker";
aRet[3] = "com.sun.star.ui.dialogs.KDE5FolderPicker"; aRet[3] = "com.sun.star.ui.dialogs.KF5FolderPicker";
return aRet; return aRet;
} }
} }
// KDE5FilePicker // KF5FilePicker
KDE5FilePicker::KDE5FilePicker(css::uno::Reference<css::uno::XComponentContext> const& context, KF5FilePicker::KF5FilePicker(css::uno::Reference<css::uno::XComponentContext> const& context,
QFileDialog::FileMode eMode) QFileDialog::FileMode eMode)
// Native kde5 filepicker does not add file extension automatically // Native kf5 filepicker does not add file extension automatically
: Qt5FilePicker(context, eMode, true, true) : Qt5FilePicker(context, eMode, true, true)
, _layout(new QGridLayout(m_pExtraControls)) , _layout(new QGridLayout(m_pExtraControls))
, allowRemoteUrls(false) , allowRemoteUrls(false)
@ -78,7 +78,7 @@ KDE5FilePicker::KDE5FilePicker(css::uno::Reference<css::uno::XComponentContext>
qApp->installEventFilter(this); qApp->installEventFilter(this);
} }
sal_Int16 SAL_CALL KDE5FilePicker::execute() sal_Int16 SAL_CALL KF5FilePicker::execute()
{ {
SolarMutexGuard g; SolarMutexGuard g;
auto* pSalInst(static_cast<Qt5Instance*>(GetSalData()->m_pInstance)); auto* pSalInst(static_cast<Qt5Instance*>(GetSalData()->m_pInstance));
@ -101,8 +101,8 @@ sal_Int16 SAL_CALL KDE5FilePicker::execute()
} }
// XFilePickerControlAccess // XFilePickerControlAccess
void SAL_CALL KDE5FilePicker::setValue(sal_Int16 controlId, sal_Int16 nControlAction, void SAL_CALL KF5FilePicker::setValue(sal_Int16 controlId, sal_Int16 nControlAction,
const uno::Any& value) const uno::Any& value)
{ {
if (CHECKBOX_AUTOEXTENSION == controlId) if (CHECKBOX_AUTOEXTENSION == controlId)
// We ignore this one and rely on QFileDialog to provide the functionality // We ignore this one and rely on QFileDialog to provide the functionality
@ -111,7 +111,7 @@ void SAL_CALL KDE5FilePicker::setValue(sal_Int16 controlId, sal_Int16 nControlAc
Qt5FilePicker::setValue(controlId, nControlAction, value); Qt5FilePicker::setValue(controlId, nControlAction, value);
} }
uno::Any SAL_CALL KDE5FilePicker::getValue(sal_Int16 controlId, sal_Int16 nControlAction) uno::Any SAL_CALL KF5FilePicker::getValue(sal_Int16 controlId, sal_Int16 nControlAction)
{ {
SolarMutexGuard g; SolarMutexGuard g;
auto* pSalInst(static_cast<Qt5Instance*>(GetSalData()->m_pInstance)); auto* pSalInst(static_cast<Qt5Instance*>(GetSalData()->m_pInstance));
@ -136,7 +136,7 @@ uno::Any SAL_CALL KDE5FilePicker::getValue(sal_Int16 controlId, sal_Int16 nContr
return Qt5FilePicker::getValue(controlId, nControlAction); return Qt5FilePicker::getValue(controlId, nControlAction);
} }
void SAL_CALL KDE5FilePicker::enableControl(sal_Int16 controlId, sal_Bool enable) void SAL_CALL KF5FilePicker::enableControl(sal_Int16 controlId, sal_Bool enable)
{ {
if (CHECKBOX_AUTOEXTENSION == controlId) if (CHECKBOX_AUTOEXTENSION == controlId)
// We ignore this one and rely on QFileDialog to provide the functionality // We ignore this one and rely on QFileDialog to provide the functionality
@ -145,7 +145,7 @@ void SAL_CALL KDE5FilePicker::enableControl(sal_Int16 controlId, sal_Bool enable
Qt5FilePicker::enableControl(controlId, enable); Qt5FilePicker::enableControl(controlId, enable);
} }
void SAL_CALL KDE5FilePicker::setLabel(sal_Int16 controlId, const OUString& label) void SAL_CALL KF5FilePicker::setLabel(sal_Int16 controlId, const OUString& label)
{ {
if (CHECKBOX_AUTOEXTENSION == controlId) if (CHECKBOX_AUTOEXTENSION == controlId)
// We ignore this one and rely on QFileDialog to provide the functionality // We ignore this one and rely on QFileDialog to provide the functionality
@ -154,7 +154,7 @@ void SAL_CALL KDE5FilePicker::setLabel(sal_Int16 controlId, const OUString& labe
Qt5FilePicker::setLabel(controlId, label); Qt5FilePicker::setLabel(controlId, label);
} }
OUString SAL_CALL KDE5FilePicker::getLabel(sal_Int16 controlId) OUString SAL_CALL KF5FilePicker::getLabel(sal_Int16 controlId)
{ {
// We ignore this one and rely on QFileDialog to provide the functionality // We ignore this one and rely on QFileDialog to provide the functionality
if (CHECKBOX_AUTOEXTENSION == controlId) if (CHECKBOX_AUTOEXTENSION == controlId)
@ -163,9 +163,9 @@ OUString SAL_CALL KDE5FilePicker::getLabel(sal_Int16 controlId)
return Qt5FilePicker::getLabel(controlId); return Qt5FilePicker::getLabel(controlId);
} }
void KDE5FilePicker::addCustomControl(sal_Int16 controlId) void KF5FilePicker::addCustomControl(sal_Int16 controlId)
{ {
// native kde5 filepicker has its own autoextension checkbox, // native kf5 filepicker has its own autoextension checkbox,
// therefore avoid adding yet another one // therefore avoid adding yet another one
if (controlId == CHECKBOX_AUTOEXTENSION) if (controlId == CHECKBOX_AUTOEXTENSION)
return; return;
@ -174,22 +174,22 @@ void KDE5FilePicker::addCustomControl(sal_Int16 controlId)
} }
// XServiceInfo // XServiceInfo
OUString SAL_CALL KDE5FilePicker::getImplementationName() OUString SAL_CALL KF5FilePicker::getImplementationName()
{ {
return OUString("com.sun.star.ui.dialogs.KDE5FilePicker"); return OUString("com.sun.star.ui.dialogs.KF5FilePicker");
} }
sal_Bool SAL_CALL KDE5FilePicker::supportsService(const OUString& ServiceName) sal_Bool SAL_CALL KF5FilePicker::supportsService(const OUString& ServiceName)
{ {
return cppu::supportsService(this, ServiceName); return cppu::supportsService(this, ServiceName);
} }
uno::Sequence<OUString> SAL_CALL KDE5FilePicker::getSupportedServiceNames() uno::Sequence<OUString> SAL_CALL KF5FilePicker::getSupportedServiceNames()
{ {
return FilePicker_getSupportedServiceNames(); return FilePicker_getSupportedServiceNames();
} }
bool KDE5FilePicker::eventFilter(QObject* o, QEvent* e) bool KF5FilePicker::eventFilter(QObject* o, QEvent* e)
{ {
if (e->type() == QEvent::Show && o->isWidgetType()) if (e->type() == QEvent::Show && o->isWidgetType())
{ {

View File

@ -23,7 +23,7 @@
class QGridLayout; class QGridLayout;
class KDE5FilePicker : public Qt5FilePicker class KF5FilePicker : public Qt5FilePicker
{ {
Q_OBJECT Q_OBJECT
@ -34,8 +34,8 @@ protected:
bool allowRemoteUrls; bool allowRemoteUrls;
public: public:
explicit KDE5FilePicker(css::uno::Reference<css::uno::XComponentContext> const& context, explicit KF5FilePicker(css::uno::Reference<css::uno::XComponentContext> const& context,
QFileDialog::FileMode); QFileDialog::FileMode);
// XExecutableDialog functions // XExecutableDialog functions
virtual sal_Int16 SAL_CALL execute() override; virtual sal_Int16 SAL_CALL execute() override;

View File

@ -28,7 +28,7 @@
#include <KConfigGroup> #include <KConfigGroup>
#include <KSharedConfig> #include <KSharedConfig>
#include "KDE5SalFrame.hxx" #include "KF5SalFrame.hxx"
#include <tools/color.hxx> #include <tools/color.hxx>
@ -42,7 +42,7 @@
#include <boost/optional.hpp> #include <boost/optional.hpp>
KDE5SalFrame::KDE5SalFrame(KDE5SalFrame* pParent, SalFrameStyleFlags nState, bool bUseCairo) KF5SalFrame::KF5SalFrame(KF5SalFrame* pParent, SalFrameStyleFlags nState, bool bUseCairo)
: Qt5Frame(pParent, nState, bUseCairo) : Qt5Frame(pParent, nState, bUseCairo)
, m_bGraphicsInUse(false) , m_bGraphicsInUse(false)
{ {
@ -101,13 +101,13 @@ static vcl::Font toFont(const QFont& rQFont, const css::lang::Locale& rLocale)
else else
aInfo.m_eWidth = WIDTH_ULTRA_EXPANDED; aInfo.m_eWidth = WIDTH_ULTRA_EXPANDED;
SAL_INFO("vcl.kde5", "font name BEFORE system match: \"" << aInfo.m_aFamilyName << "\""); SAL_INFO("vcl.kf5", "font name BEFORE system match: \"" << aInfo.m_aFamilyName << "\"");
// match font to e.g. resolve "Sans" // match font to e.g. resolve "Sans"
psp::PrintFontManager::get().matchFont(aInfo, rLocale); psp::PrintFontManager::get().matchFont(aInfo, rLocale);
SAL_INFO("vcl.kde5", "font match " << (aInfo.m_nID != 0 ? "succeeded" : "failed") SAL_INFO("vcl.kf5", "font match " << (aInfo.m_nID != 0 ? "succeeded" : "failed")
<< ", name AFTER: \"" << aInfo.m_aFamilyName << "\""); << ", name AFTER: \"" << aInfo.m_aFamilyName << "\"");
// font height // font height
int nPointHeight = qFontInfo.pointSize(); int nPointHeight = qFontInfo.pointSize();
@ -130,7 +130,7 @@ static vcl::Font toFont(const QFont& rQFont, const css::lang::Locale& rLocale)
/** Implementation of KDE integration's main method. /** Implementation of KDE integration's main method.
*/ */
void KDE5SalFrame::UpdateSettings(AllSettings& rSettings) void KF5SalFrame::UpdateSettings(AllSettings& rSettings)
{ {
Qt5Frame::UpdateSettings(rSettings); Qt5Frame::UpdateSettings(rSettings);
@ -196,26 +196,26 @@ void KDE5SalFrame::UpdateSettings(AllSettings& rSettings)
rSettings.SetStyleSettings(style); rSettings.SetStyleSettings(style);
} }
SalGraphics* KDE5SalFrame::AcquireGraphics() SalGraphics* KF5SalFrame::AcquireGraphics()
{ {
if (m_bGraphicsInUse) if (m_bGraphicsInUse)
return nullptr; return nullptr;
m_bGraphicsInUse = true; m_bGraphicsInUse = true;
if (!m_pKDE5Graphics.get()) if (!m_pKF5Graphics.get())
{ {
m_pKDE5Graphics.reset(new Qt5SvpGraphics(this)); m_pKF5Graphics.reset(new Qt5SvpGraphics(this));
Qt5Frame::InitQt5SvpGraphics(m_pKDE5Graphics.get()); Qt5Frame::InitQt5SvpGraphics(m_pKF5Graphics.get());
} }
return m_pKDE5Graphics.get(); return m_pKF5Graphics.get();
} }
void KDE5SalFrame::ReleaseGraphics(SalGraphics* pSalGraph) void KF5SalFrame::ReleaseGraphics(SalGraphics* pSalGraph)
{ {
(void)pSalGraph; (void)pSalGraph;
assert(pSalGraph == m_pKDE5Graphics.get()); assert(pSalGraph == m_pKF5Graphics.get());
m_bGraphicsInUse = false; m_bGraphicsInUse = false;
} }

View File

@ -26,14 +26,14 @@
class QWidget; class QWidget;
class KDE5SalFrame : public Qt5Frame class KF5SalFrame : public Qt5Frame
{ {
private: private:
std::unique_ptr<Qt5SvpGraphics> m_pKDE5Graphics; std::unique_ptr<Qt5SvpGraphics> m_pKF5Graphics;
bool m_bGraphicsInUse; bool m_bGraphicsInUse;
public: public:
KDE5SalFrame(KDE5SalFrame* pParent, SalFrameStyleFlags nStyle, bool bUseCairo); KF5SalFrame(KF5SalFrame* pParent, SalFrameStyleFlags nStyle, bool bUseCairo);
virtual SalGraphics* AcquireGraphics() override; virtual SalGraphics* AcquireGraphics() override;
virtual void ReleaseGraphics(SalGraphics* pGraphics) override; virtual void ReleaseGraphics(SalGraphics* pGraphics) override;

View File

@ -27,39 +27,39 @@
#include <Qt5Data.hxx> #include <Qt5Data.hxx>
#include "KDE5FilePicker.hxx" #include "KF5FilePicker.hxx"
#include "KDE5SalFrame.hxx" #include "KF5SalFrame.hxx"
#include "KDE5SalInstance.hxx" #include "KF5SalInstance.hxx"
using namespace com::sun::star; using namespace com::sun::star;
KDE5SalInstance::KDE5SalInstance(std::unique_ptr<QApplication>& pQApp) KF5SalInstance::KF5SalInstance(std::unique_ptr<QApplication>& pQApp)
: Qt5Instance(pQApp, true) : Qt5Instance(pQApp, true)
{ {
ImplSVData* pSVData = ImplGetSVData(); ImplSVData* pSVData = ImplGetSVData();
pSVData->maAppData.mxToolkitName = OUString("kde5"); pSVData->maAppData.mxToolkitName = OUString("kf5");
} }
SalFrame* KDE5SalInstance::CreateFrame(SalFrame* pParent, SalFrameStyleFlags nState) SalFrame* KF5SalInstance::CreateFrame(SalFrame* pParent, SalFrameStyleFlags nState)
{ {
SalFrame* pRet(nullptr); SalFrame* pRet(nullptr);
RunInMainThread(std::function([&pRet, pParent, nState]() { RunInMainThread(std::function([&pRet, pParent, nState]() {
pRet = new KDE5SalFrame(static_cast<KDE5SalFrame*>(pParent), nState, true); pRet = new KF5SalFrame(static_cast<KF5SalFrame*>(pParent), nState, true);
})); }));
assert(pRet); assert(pRet);
return pRet; return pRet;
} }
bool KDE5SalInstance::hasNativeFileSelection() const bool KF5SalInstance::hasNativeFileSelection() const
{ {
if (Application::GetDesktopEnvironment() == "KDE5") if (Application::GetDesktopEnvironment() == "PLASMA5")
return true; return true;
return Qt5Instance::hasNativeFileSelection(); return Qt5Instance::hasNativeFileSelection();
} }
Qt5FilePicker* Qt5FilePicker*
KDE5SalInstance::createPicker(css::uno::Reference<css::uno::XComponentContext> const& context, KF5SalInstance::createPicker(css::uno::Reference<css::uno::XComponentContext> const& context,
QFileDialog::FileMode eMode) QFileDialog::FileMode eMode)
{ {
if (!IsMainThread()) if (!IsMainThread())
{ {
@ -70,16 +70,16 @@ KDE5SalInstance::createPicker(css::uno::Reference<css::uno::XComponentContext> c
return pPicker; return pPicker;
} }
// In order to insert custom controls, KDE5FilePicker currently relies on KFileWidget // In order to insert custom controls, KF5FilePicker currently relies on KFileWidget
// being used in the native file picker, which is only the case for KDE Plasma. // being used in the native file picker, which is only the case for KDE Plasma.
// Therefore, return the plain qt5 one in order to not lose custom controls. // Therefore, return the plain qt5 one in order to not lose custom controls.
if (Application::GetDesktopEnvironment() == "KDE5") if (Application::GetDesktopEnvironment() == "PLASMA5")
return new KDE5FilePicker(context, eMode); return new KF5FilePicker(context, eMode);
return Qt5Instance::createPicker(context, eMode); return Qt5Instance::createPicker(context, eMode);
} }
extern "C" { extern "C" {
VCLPLUG_KDE5_PUBLIC SalInstance* create_SalInstance() VCLPLUG_KF5_PUBLIC SalInstance* create_SalInstance()
{ {
std::unique_ptr<char* []> pFakeArgv; std::unique_ptr<char* []> pFakeArgv;
std::unique_ptr<int> pFakeArgc; std::unique_ptr<int> pFakeArgc;
@ -89,7 +89,7 @@ VCLPLUG_KDE5_PUBLIC SalInstance* create_SalInstance()
std::unique_ptr<QApplication> pQApp std::unique_ptr<QApplication> pQApp
= Qt5Instance::CreateQApplication(*pFakeArgc, pFakeArgv.get()); = Qt5Instance::CreateQApplication(*pFakeArgc, pFakeArgv.get());
KDE5SalInstance* pInstance = new KDE5SalInstance(pQApp); KF5SalInstance* pInstance = new KF5SalInstance(pQApp);
pInstance->MoveFakeCmdlineArgs(pFakeArgv, pFakeArgc, aFakeArgvFreeable); pInstance->MoveFakeCmdlineArgs(pFakeArgv, pFakeArgc, aFakeArgvFreeable);
new Qt5Data(pInstance); new Qt5Data(pInstance);

View File

@ -21,7 +21,7 @@
#include <qt5/Qt5Instance.hxx> #include <qt5/Qt5Instance.hxx>
class KDE5SalInstance final : public Qt5Instance class KF5SalInstance final : public Qt5Instance
{ {
bool hasNativeFileSelection() const override; bool hasNativeFileSelection() const override;
Qt5FilePicker* createPicker(css::uno::Reference<css::uno::XComponentContext> const& context, Qt5FilePicker* createPicker(css::uno::Reference<css::uno::XComponentContext> const& context,
@ -30,7 +30,7 @@ class KDE5SalInstance final : public Qt5Instance
SalFrame* CreateFrame(SalFrame* pParent, SalFrameStyleFlags nStyle) override; SalFrame* CreateFrame(SalFrame* pParent, SalFrameStyleFlags nStyle) override;
public: public:
explicit KDE5SalInstance(std::unique_ptr<QApplication>& pQApp); explicit KF5SalInstance(std::unique_ptr<QApplication>& pQApp);
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */