This commit is contained in:
Uwe Rathmann 2022-07-14 11:52:25 +02:00
parent 6c3d261ab5
commit 78d4eadf3b
2 changed files with 31 additions and 2 deletions

View File

@ -12,11 +12,41 @@
#include <QskAnimationHint.h> #include <QskAnimationHint.h>
#include <QGuiApplication> #include <QGuiApplication>
#include <QDebug> #include <QByteArray>
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define STRING(x) STRINGIFY(x) #define STRING(x) STRINGIFY(x)
#if defined( PLUGIN_PATH )
#include <QByteArray>
#include <QDir>
#define STRINGIFY(x) #x
#define STRING(x) STRINGIFY(x)
static int initPluginPath()
{
const char env[] = "QT_PLUGIN_PATH";
QByteArray value = qgetenv( env );
if ( !value.isEmpty() )
{
if ( QChar( value.at( value.size() - 1 ) ) != QDir::listSeparator() )
value += QDir::listSeparator().toLatin1();
}
value += STRING( PLUGIN_PATH );
qputenv( env, value );
return 0;
}
// some plugins are loaded before entering QCoreApplication
static bool pluginPath = initPluginPath();
#endif // PLUGIN_PATH
#if defined( ENSURE_SKINS ) #if defined( ENSURE_SKINS )
#include <squiek/QskSquiekSkinFactory.h> #include <squiek/QskSquiekSkinFactory.h>

View File

@ -19,7 +19,6 @@ HEADERS += \
SOURCES += \ SOURCES += \
SkinnyNamespace.cpp \ SkinnyNamespace.cpp \
SkinnyPlugin.cpp \
SkinnyShapeFactory.cpp \ SkinnyShapeFactory.cpp \
SkinnyShapeProvider.cpp \ SkinnyShapeProvider.cpp \
SkinnyShortcut.cpp SkinnyShortcut.cpp