set export macro for QSint

This commit is contained in:
wmayer 2015-07-07 11:33:21 +02:00
parent 36241de2c6
commit bf97878f37
11 changed files with 39 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#add_subdirectory(Icons)
if(WIN32)
add_definitions(-DFCGui -DQIIS_MAKEDLL -DOVR_OS_WIN32 -DQUARTER_INTERNAL -DQUARTER_MAKE_DLL -DCOIN_DLL)
add_definitions(-DFCGui -DQIIS_MAKEDLL -DQSINT_MAKEDLL -DOVR_OS_WIN32 -DQUARTER_INTERNAL -DQUARTER_MAKE_DLL -DCOIN_DLL)
endif(WIN32)
IF(CMAKE_BUILD_TYPE)

View File

@ -159,7 +159,7 @@ namespace QSint
\endcode
*/
class ActionBox : public QFrame
class QSINT_EXPORT ActionBox : public QFrame
{
Q_OBJECT

View File

@ -11,6 +11,7 @@
#include <QTimer>
#include <QWidget>
#include <QBoxLayout>
#include "qsint_global.h"
namespace QSint
@ -31,7 +32,7 @@ class ActionPanelScheme;
It can contain arbitrary widgets as well.
*/
class ActionGroup : public QWidget
class QSINT_EXPORT ActionGroup : public QWidget
{
Q_OBJECT

View File

@ -9,6 +9,7 @@
#define ACTIONLABEL_H
#include <QToolButton>
#include "qsint_global.h"
namespace QSint
@ -64,7 +65,7 @@ namespace QSint
\endcode
*/
class ActionLabel : public QToolButton
class QSINT_EXPORT ActionLabel : public QToolButton
{
Q_OBJECT

View File

@ -9,6 +9,7 @@
#define ACTIONPANEL_H
#include <QFrame>
#include "qsint_global.h"
namespace QSint
@ -34,7 +35,7 @@ class ActionGroup;
WinVistaPanelScheme (Windows Vista variation), MacPanelScheme (MacOS variation),
AndroidPanelScheme (Android variation).
*/
class ActionPanel : public QFrame
class QSINT_EXPORT ActionPanel : public QFrame
{
typedef QFrame BaseClass;

View File

@ -12,6 +12,7 @@
#include <QtCore/QSize>
#include <QtGui/QPixmap>
#include "qsint_global.h"
namespace QSint
@ -24,7 +25,7 @@ namespace QSint
\image html ActionPanel1.png Default ActionPanel scheme
*/
class ActionPanelScheme
class QSINT_EXPORT ActionPanelScheme
{
public:
/** \enum TaskPanelFoldEffect

View File

@ -22,7 +22,7 @@ namespace QSint
\image html ActionPanel5.png Example of the scheme
*/
class AndroidPanelScheme : public ActionPanelScheme
class QSINT_EXPORT AndroidPanelScheme : public ActionPanelScheme
{
public:
AndroidPanelScheme();

View File

@ -21,7 +21,7 @@ namespace QSint
\image html ActionPanel6.png Example of the scheme
*/
class MacPanelScheme : public ActionPanelScheme
class QSINT_EXPORT MacPanelScheme : public ActionPanelScheme
{
public:
explicit MacPanelScheme();

View File

@ -0,0 +1,24 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#ifndef QSINT_GLOBAL_H
#define QSINT_GLOBAL_H
#include <qglobal.h>
#ifdef QSINT_STATICLIB
# undef QSINT_SHAREDLIB
# define QSINT_EXPORT
#else
# ifdef QSINT_MAKEDLL
# define QSINT_EXPORT Q_DECL_EXPORT
# else
# define QSINT_EXPORT Q_DECL_IMPORT
# endif
#endif
#endif // QSINT_GLOBAL_H

View File

@ -22,7 +22,7 @@ namespace QSint
\image html ActionPanel4.png Example of the scheme
*/
class WinVistaPanelScheme : public ActionPanelScheme
class QSINT_EXPORT WinVistaPanelScheme : public ActionPanelScheme
{
public:
WinVistaPanelScheme();

View File

@ -21,7 +21,7 @@ namespace QSint
\image html ActionPanel2.png Example of the scheme
*/
class WinXPPanelScheme : public ActionPanelScheme
class QSINT_EXPORT WinXPPanelScheme : public ActionPanelScheme
{
public:
WinXPPanelScheme();
@ -40,7 +40,7 @@ public:
\image html ActionPanel3.png Example of the scheme
*/
class WinXPPanelScheme2 : public ActionPanelScheme
class QSINT_EXPORT WinXPPanelScheme2 : public ActionPanelScheme
{
public:
WinXPPanelScheme2();