summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-08-28 21:00:07 +0200
committerMontel Laurent <[email protected]>2015-08-28 23:06:41 +0200
commit2ccd3d3a9eedca1ba0e4fd377c15a79ab5253ab8 (patch)
tree75686f8470a337b2400c9880615594e800171ed0
parent219ad37dcd8bd6c4cffb0b74250f75b5eadd3f06 (diff)
Reduce exporting class
-rw-r--r--messagelist/core/model.h5
-rw-r--r--messagelist/core/modelinvariantindex.h3
-rw-r--r--messagelist/core/storagemodelbase.h4
-rw-r--r--messagelist/core/view.h3
-rw-r--r--messagelist/core/widgetbase.h4
-rw-r--r--messagelist/messagelistutil.h22
-rw-r--r--messagelist/utils/configureaggregationsdialog.h4
-rw-r--r--messagelist/utils/configurethemesdialog.h5
8 files changed, 18 insertions, 32 deletions
diff --git a/messagelist/core/model.h b/messagelist/core/model.h
index 8735dc49..268b75b 100644
--- a/messagelist/core/model.h
+++ b/messagelist/core/model.h
@@ -32,9 +32,6 @@
#include <time.h> // time_t
-#include <messagelist/messagelist_export.h>
-
-
namespace MessageList
{
@@ -71,7 +68,7 @@ class ModelPrivate;
* StorageModel must offer a consistent rappresentation of a "flat" folder containing
* messages.
*/
-class MESSAGELIST_EXPORT Model : public QAbstractItemModel
+class Model : public QAbstractItemModel
{
friend class Item;
friend class ItemPrivate;
diff --git a/messagelist/core/modelinvariantindex.h b/messagelist/core/modelinvariantindex.h
index 03b05f9..7b39fb5 100644
--- a/messagelist/core/modelinvariantindex.h
+++ b/messagelist/core/modelinvariantindex.h
@@ -23,7 +23,6 @@
#include <qglobal.h> // defines uint, at least.
-#include <messagelist/messagelist_export.h>
namespace MessageList
{
@@ -41,7 +40,7 @@ class RowShift;
*
* This class is meant to be used together with ModelInvariantRowMapper.
*/
-class MESSAGELIST_EXPORT ModelInvariantIndex
+class ModelInvariantIndex
{
friend class ModelInvariantRowMapper;
friend class ModelInvariantRowMapperPrivate;
diff --git a/messagelist/core/storagemodelbase.h b/messagelist/core/storagemodelbase.h
index 7d40f5c..c687143 100644
--- a/messagelist/core/storagemodelbase.h
+++ b/messagelist/core/storagemodelbase.h
@@ -23,8 +23,6 @@
#include <QAbstractItemModel>
-#include <messagelist/messagelist_export.h>
-
namespace Akonadi
{
class MessageStatus;
@@ -42,7 +40,7 @@ class MessageItem;
* The QAbstractItemModel based interface that you need
* to provide for your storage to work with MessageList.
*/
-class MESSAGELIST_EXPORT StorageModel : public QAbstractItemModel
+class StorageModel : public QAbstractItemModel
{
Q_OBJECT
diff --git a/messagelist/core/view.h b/messagelist/core/view.h
index 1c59c2e..c2de1f8 100644
--- a/messagelist/core/view.h
+++ b/messagelist/core/view.h
@@ -26,7 +26,6 @@
#include <QPoint>
#include <messagelist/core/enums.h>
-#include <messagelist/messagelist_export.h>
#include <messagelist/core/widgets/quicksearchline.h>
class QMenu;
@@ -60,7 +59,7 @@ class Widget;
* based on QTreeView, has a Model that manipulates the underlying message storage
* and a Delegate that is responsable of painting the items.
*/
-class MESSAGELIST_EXPORT View : public QTreeView
+class View : public QTreeView
{
friend class Model;
friend class ModelPrivate;
diff --git a/messagelist/core/widgetbase.h b/messagelist/core/widgetbase.h
index ca8555b..a2a8094 100644
--- a/messagelist/core/widgetbase.h
+++ b/messagelist/core/widgetbase.h
@@ -29,8 +29,6 @@
#include <messagelist/core/sortorder.h>
#include <messagelist/core/widgets/quicksearchline.h>
-#include <messagelist/messagelist_export.h>
-
class KLineEdit;
class QActionGroup;
class KComboBox;
@@ -57,7 +55,7 @@ class View;
* Provides a widget which has the messagelist and the most important helper widgets,
* like the search line and the comboboxes for changing status filtering, aggregation etc.
*/
-class MESSAGELIST_EXPORT Widget : public QWidget
+class Widget : public QWidget
{
friend class View;
diff --git a/messagelist/messagelistutil.h b/messagelist/messagelistutil.h
index 82542ae..b8c5629 100644
--- a/messagelist/messagelistutil.h
+++ b/messagelist/messagelistutil.h
@@ -34,21 +34,21 @@ namespace MessageList
{
namespace Util
{
-MESSAGELIST_EXPORT QString messageSortingConfigName();
-MESSAGELIST_EXPORT QString messageSortDirectionConfigName();
-MESSAGELIST_EXPORT QString groupSortingConfigName();
-MESSAGELIST_EXPORT QString groupSortDirectionConfigName();
-MESSAGELIST_EXPORT QString messageUniqueIdConfigName();
-MESSAGELIST_EXPORT QString storageModelSortOrderGroup();
-MESSAGELIST_EXPORT QString storageModelThemesGroup();
-MESSAGELIST_EXPORT QString storageModelAggregationsGroup();
-MESSAGELIST_EXPORT QString setForStorageModelConfigName();
-MESSAGELIST_EXPORT QString storageModelSelectedMessageGroup();
+QString messageSortingConfigName();
+QString messageSortDirectionConfigName();
+QString groupSortingConfigName();
+QString groupSortDirectionConfigName();
+QString messageUniqueIdConfigName();
+QString storageModelSortOrderGroup();
+QString storageModelThemesGroup();
+QString storageModelAggregationsGroup();
+QString setForStorageModelConfigName();
+QString storageModelSelectedMessageGroup();
MESSAGELIST_EXPORT void deleteConfig(const QString &collectionId);
MESSAGELIST_EXPORT QColor unreadDefaultMessageColor();
MESSAGELIST_EXPORT QColor importantDefaultMessageColor();
MESSAGELIST_EXPORT QColor todoDefaultMessageColor();
-MESSAGELIST_EXPORT void fillViewMenu(QMenu *menu, QObject *receiver);
+void fillViewMenu(QMenu *menu, QObject *receiver);
/// Returns the first few lines of the actual email text if available.
MESSAGELIST_EXPORT QString contentSummary(const Akonadi::Item &item);
diff --git a/messagelist/utils/configureaggregationsdialog.h b/messagelist/utils/configureaggregationsdialog.h
index e2f945a..4e224ed 100644
--- a/messagelist/utils/configureaggregationsdialog.h
+++ b/messagelist/utils/configureaggregationsdialog.h
@@ -25,8 +25,6 @@
#include <QListWidget>
-#include <messagelist/messagelist_export.h>
-
namespace MessageList
{
@@ -47,7 +45,7 @@ namespace Utils
* This is managed by MessageList::Manager. Take a look at it first
* if you want to display this dialog.
*/
-class MESSAGELIST_EXPORT ConfigureAggregationsDialog : public QDialog
+class ConfigureAggregationsDialog : public QDialog
{
Q_OBJECT
diff --git a/messagelist/utils/configurethemesdialog.h b/messagelist/utils/configurethemesdialog.h
index 8e0267e..b072fa8 100644
--- a/messagelist/utils/configurethemesdialog.h
+++ b/messagelist/utils/configurethemesdialog.h
@@ -25,16 +25,13 @@
#include <QListWidget>
-#include <messagelist/messagelist_export.h>
-
-
namespace MessageList
{
namespace Utils
{
-class MESSAGELIST_EXPORT ConfigureThemesDialog : public QDialog
+class ConfigureThemesDialog : public QDialog
{
Q_OBJECT