Commit 7039480c authored by Anthony Léonard's avatar Anthony Léonard Committed by Olivier SOLDANO

define LRC_IMPORT for DLL import on win32

This patch is meant to be used with corresponding LRC patch fixing
DLL symbols export/import. With LRC_IMPORT defined, Q_DECL_IMPORT is
automatically specified on every class of LRC which are, respectively,
declared Q_DECL_EXPORT during LRC build.

One exception is AccountSerializationAdapter which is exported from
the client and not LRC.

This patch fixes new style's connect() (functor-based) which were not
possible at all with signals introduced with LRC. Especially, it
enables connecting signals with lambda's and compile-time checking of
signals connection.

Change-Id: Ie4f68038b2ba1a524c7a63126fcb0660e3d8cd85
Reviewed-by: default avatarOlivier Soldano <olivier.soldano@savoirfairelinux.com>
parent 29678709
......@@ -23,6 +23,7 @@ DEFINES += VERSION=\\\"$$VERSION\\\"
DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\"
DEFINES += NIGHTLY_VERSION=\\\"$$NIGHTLY_VERSION\\\"
DEFINES += RING_CLIENT_BUILD_DATE=\"\\\"$$RING_CLIENT_BUILD_DATE\\\"\"
DEFINES += LRC_IMPORT
BUILD=$${BUILD}
TARGET = Ring
......
......@@ -34,7 +34,7 @@ class Account;
*
* * QLineEdit
*/
class LIB_EXPORT AccountSerializationAdapter : public QObject
class Q_DECL_EXPORT AccountSerializationAdapter : public QObject
{
Q_OBJECT
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment