summaryrefslogtreecommitdiff
path: root/vcl/unx/kde5
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-10-27 10:04:02 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-11-06 12:05:31 +0100
commit88945965d55192b3c1b3b62227d3e48f0bfd8da2 (patch)
tree90fff9f410e19c79c7fa90c094a70afa081d5e20 /vcl/unx/kde5
parent7cf778c4f37b5eecfc11db5d5d7e70cd8e66c748 (diff)
KF5 seperate Qt5 detection from KF5
Splits the configure checks into a Qt5 and KF5 specific part. Change-Id: I0a616ba031e1f7fd0385219ac48179adb4bdaf14
Diffstat (limited to 'vcl/unx/kde5')
-rw-r--r--vcl/unx/kde5/KDE5XLib.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/unx/kde5/KDE5XLib.cxx b/vcl/unx/kde5/KDE5XLib.cxx
index 32a80ad8644a..a9c43ee7c752 100644
--- a/vcl/unx/kde5/KDE5XLib.cxx
+++ b/vcl/unx/kde5/KDE5XLib.cxx
@@ -26,7 +26,7 @@
#include <QtX11Extras/QX11Info>
-#include "config_kde5.h"
+#include "config_qt5.h"
#include "KDE5XLib.hxx"
#include "VCLKDE5Application.hxx"
@@ -45,7 +45,7 @@
#undef Bool
-#if KF5_HAVE_GLIB
+#if QT5_HAVE_GLIB
//#include "KDE4FilePicker.hxx"
#include "tst_exclude_socket_notifiers.moc"
#include "tst_exclude_posted_events.moc"
@@ -177,7 +177,7 @@ void KDE5XLib::Init()
//KApplication::setQuitOnLastWindowClosed(false);
-#if KF5_HAVE_GLIB
+#if QT5_HAVE_GLIB
m_isGlibEventLoopType = QAbstractEventDispatcher::instance()->inherits( "QEventDispatcherGlib" );
// Using KDE dialogs (and their nested event loops) works only with a proper event loop integration
// that will release SolarMutex when waiting for more events.
@@ -201,7 +201,7 @@ void KDE5XLib::Init()
// needs to be unlocked shortly before entering the main sleep (e.g. select()) and locked
// immediately after. So we need to know which event loop implementation is used and
// hook accordingly.
-#if KF5_HAVE_GLIB
+#if QT5_HAVE_GLIB
#include <glib.h>
static GPollFunc old_gpoll = nullptr;
@@ -238,7 +238,7 @@ void KDE5XLib::setupEventLoop()
QAbstractEventDispatcher *qDispatcher = QAbstractEventDispatcher::instance();
//qDispatcher->installNativeEventFilter( this );
-#if KF5_HAVE_GLIB
+#if QT5_HAVE_GLIB
if( m_isGlibEventLoopType )
{
old_gpoll = g_main_context_get_poll_func( nullptr );
@@ -392,7 +392,7 @@ using namespace com::sun::star;
uno::Reference< ui::dialogs::XFilePicker2 > KDE5XLib::createFilePicker(
const uno::Reference< uno::XComponentContext >& xMSF )
{
-#if KF5_HAVE_GLIB
+#if QT5_HAVE_GLIB
if( qApp->thread() != QThread::currentThread()) {
SalYieldMutexReleaser aReleaser;
return Q_EMIT createFilePickerSignal( xMSF );