wip
This commit is contained in:
parent
6c3d261ab5
commit
78d4eadf3b
@ -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>
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user