From 9d74b995fb421ef9e5bc90f8ae087e651fc02a5a Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 26 Jun 2016 22:10:29 +0300 Subject: [PATCH] BinEditor: Export BinEditorWidget Change-Id: I62bfaccc15447118591697fc67d85963388e3978 Reviewed-by: hjk --- src/plugins/bineditor/bineditor.pro | 3 +++ src/plugins/bineditor/bineditor.qbs | 1 + src/plugins/bineditor/bineditor_global.h | 34 ++++++++++++++++++++++++ src/plugins/bineditor/bineditorwidget.h | 3 ++- 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/plugins/bineditor/bineditor_global.h diff --git a/src/plugins/bineditor/bineditor.pro b/src/plugins/bineditor/bineditor.pro index a75804a4bb3..3dde3eaf67d 100644 --- a/src/plugins/bineditor/bineditor.pro +++ b/src/plugins/bineditor/bineditor.pro @@ -1,8 +1,11 @@ include(../../qtcreatorplugin.pri) +DEFINES += BINEDITOR_LIBRARY + HEADERS += bineditorplugin.h \ bineditorwidget.h \ bineditorconstants.h \ + bineditor_global.h \ markup.h SOURCES += bineditorplugin.cpp \ diff --git a/src/plugins/bineditor/bineditor.qbs b/src/plugins/bineditor/bineditor.qbs index 3367f873fc9..8d2138598d4 100644 --- a/src/plugins/bineditor/bineditor.qbs +++ b/src/plugins/bineditor/bineditor.qbs @@ -14,6 +14,7 @@ QtcPlugin { "bineditorwidget.cpp", "bineditorwidget.h", "bineditorconstants.h", + "bineditor_global.h", "bineditorplugin.cpp", "bineditorplugin.h", "markup.cpp", diff --git a/src/plugins/bineditor/bineditor_global.h b/src/plugins/bineditor/bineditor_global.h new file mode 100644 index 00000000000..cfd032e3f03 --- /dev/null +++ b/src/plugins/bineditor/bineditor_global.h @@ -0,0 +1,34 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +****************************************************************************/ + +#pragma once + +#include + +#if defined(BINEDITOR_LIBRARY) +# define BINEDITOR_EXPORT Q_DECL_EXPORT +#else +# define BINEDITOR_EXPORT Q_DECL_IMPORT +#endif diff --git a/src/plugins/bineditor/bineditorwidget.h b/src/plugins/bineditor/bineditorwidget.h index 45bfb3bac32..dd54b53c7fb 100644 --- a/src/plugins/bineditor/bineditorwidget.h +++ b/src/plugins/bineditor/bineditorwidget.h @@ -25,6 +25,7 @@ #pragma once +#include "bineditor_global.h" #include "markup.h" #include @@ -46,7 +47,7 @@ namespace TextEditor { class FontSettings; } namespace BinEditor { -class BinEditorWidget : public QAbstractScrollArea +class BINEDITOR_EXPORT BinEditorWidget : public QAbstractScrollArea { Q_OBJECT Q_PROPERTY(bool modified READ isModified WRITE setModified DESIGNABLE false)