diff --git a/src/profile/CMakeLists.txt b/src/profile/CMakeLists.txt index cbf7f036..34fb583b 100644 --- a/src/profile/CMakeLists.txt +++ b/src/profile/CMakeLists.txt @@ -12,7 +12,8 @@ OBJECT ProfileModel.cpp ${konsoleprofile_SRCS} ) - +generate_export_header(konsoleprofile BASE_NAME konsoleprofile) +target_include_directories(konsoleprofile PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries( konsoleprofile ${konsole_LIBS} diff --git a/src/profile/Profile.h b/src/profile/Profile.h index 7f58eeb1..de2a209e 100644 --- a/src/profile/Profile.h +++ b/src/profile/Profile.h @@ -30,7 +30,7 @@ #include // Konsole -#include "konsoleprivate_export.h" +#include "konsoleprofile_export.h" namespace Konsole { class ProfileGroup; @@ -53,7 +53,7 @@ class ProfileGroup; * Profiles can be loaded from disk using ProfileReader instances * and saved to disk using ProfileWriter instances. */ -class KONSOLEPRIVATE_EXPORT Profile : public QSharedData +class KONSOLEPROFILE_EXPORT Profile : public QSharedData { Q_GADGET diff --git a/src/profile/ProfileCommandParser.h b/src/profile/ProfileCommandParser.h index a64da3c4..2ac44545 100644 --- a/src/profile/ProfileCommandParser.h +++ b/src/profile/ProfileCommandParser.h @@ -23,7 +23,7 @@ #define PROFILECOMMANDPARSER_H // Konsole -#include "konsoleprivate_export.h" +#include "konsoleprofile_export.h" #include "Profile.h" class QVariant; @@ -48,7 +48,7 @@ namespace Konsole * Icon=konsole;Directory=/home/bob * @endcode */ - class KONSOLEPRIVATE_EXPORT ProfileCommandParser + class KONSOLEPROFILE_EXPORT ProfileCommandParser { public: /** diff --git a/src/profile/ProfileGroup.h b/src/profile/ProfileGroup.h index bf327c01..c9b7ade0 100644 --- a/src/profile/ProfileGroup.h +++ b/src/profile/ProfileGroup.h @@ -23,7 +23,7 @@ #define PROFILEGROUP_H // Konsole -#include "konsoleprivate_export.h" +#include "konsoleprofile_export.h" #include "Profile.h" // Qt @@ -48,7 +48,7 @@ namespace Konsole * The Profile::Name and Profile::Path properties are unique to individual * profiles, setting these properties on a ProfileGroup has no effect. */ - class KONSOLEPRIVATE_EXPORT ProfileGroup : public Profile + class KONSOLEPROFILE_EXPORT ProfileGroup : public Profile { public: using Ptr = QExplicitlySharedDataPointer; diff --git a/src/profile/ProfileList.h b/src/profile/ProfileList.h index 1c2a4dfc..683bba0a 100644 --- a/src/profile/ProfileList.h +++ b/src/profile/ProfileList.h @@ -27,7 +27,7 @@ // Konsole #include "Profile.h" -#include "konsoleprivate_export.h" +#include "konsoleprofile_export.h" class QAction; class QActionGroup; @@ -45,7 +45,7 @@ namespace Konsole { * The user-data associated with each session can be passed to the createProfile() method of the * SessionManager to create a new terminal session. */ -class KONSOLEPRIVATE_EXPORT ProfileList : public QObject +class KONSOLEPROFILE_EXPORT ProfileList : public QObject { Q_OBJECT diff --git a/src/profile/ProfileManager.h b/src/profile/ProfileManager.h index f6ac8fa1..df00d3a6 100644 --- a/src/profile/ProfileManager.h +++ b/src/profile/ProfileManager.h @@ -39,7 +39,7 @@ namespace Konsole { * Manages profiles which specify various settings for terminal sessions * and their displays. */ -class KONSOLEPRIVATE_EXPORT ProfileManager : public QObject +class KONSOLEPROFILE_EXPORT ProfileManager : public QObject { Q_OBJECT diff --git a/src/profile/ProfileReader.h b/src/profile/ProfileReader.h index c2be4873..18a73cfd 100644 --- a/src/profile/ProfileReader.h +++ b/src/profile/ProfileReader.h @@ -28,7 +28,7 @@ class KConfig; namespace Konsole { /** Interface for all classes which can load profile settings from a file. */ -class KONSOLEPRIVATE_EXPORT ProfileReader +class KONSOLEPROFILE_EXPORT ProfileReader { public: ProfileReader(); diff --git a/src/profile/ProfileWriter.h b/src/profile/ProfileWriter.h index 9340aeab..c3da5cdb 100644 --- a/src/profile/ProfileWriter.h +++ b/src/profile/ProfileWriter.h @@ -28,7 +28,7 @@ class KConfig; namespace Konsole { /** Interface for all classes which can write profile settings to a file. */ -class KONSOLEPRIVATE_EXPORT ProfileWriter +class KONSOLEPROFILE_EXPORT ProfileWriter { public: ProfileWriter();