[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.2/kdebase/workspace/libs/ksysguard
From:       Patrick Spendrin <ps_ml () gmx ! de>
Date:       2009-01-28 23:50:16
Message-ID: 1233186616.828894.1760.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 918023 by sengels:

disable the export on msvc - since there is no library built, no export is needed as well.
it is a bit stupid but there is no other way atm.

 M  +10 -1     processcore/processes.h  
 M  +9 -1      processui/ProcessFilter.h  
 M  +9 -1      processui/ProcessModel.h  
 M  +9 -1      processui/ksysguardprocesslist.h  


--- branches/KDE/4.2/kdebase/workspace/libs/ksysguard/processcore/processes.h #918022:918023
@@ -27,6 +27,15 @@
 #include "process.h"
 #include <QtCore/QHash>
 
+#ifdef Q_CC_MSVC
+// this workaround is needed to make krunner link under msvc
+// please keep it this way even if you port this library to have a _export.h header file
+#define KSYSGUARDCORE_EXPORT
+#else
+#define KSYSGUARDCORE_EXPORT KDE_EXPORT
+#endif
+
+
 namespace KSysGuard
 {
     class AbstractProcesses;
@@ -50,7 +59,7 @@
      *
      * @author John Tapsell <tapsell@kde.org>
      */
-    class KDE_EXPORT Processes : public QObject
+    class KSYSGUARDCORE_EXPORT Processes : public QObject
     {
     Q_OBJECT
 
--- branches/KDE/4.2/kdebase/workspace/libs/ksysguard/processui/ProcessFilter.h #918022:918023
@@ -30,7 +30,15 @@
 
 class QModelIndex;
 
-class KDE_EXPORT ProcessFilter : public QSortFilterProxyModel
+#ifdef Q_CC_MSVC
+// this workaround is needed to make krunner link under msvc
+// please keep it this way even if you port this library to have a _export.h header file
+#define KSYSGUARD_EXPORT
+#else
+#define KSYSGUARD_EXPORT KDE_EXPORT
+#endif
+
+class KSYSGUARD_EXPORT ProcessFilter : public QSortFilterProxyModel
 {
 	Q_OBJECT
 	Q_ENUMS(State)
--- branches/KDE/4.2/kdebase/workspace/libs/ksysguard/processui/ProcessModel.h #918022:918023
@@ -34,7 +34,15 @@
 }
 
 class ProcessModelPrivate;
-class KDE_EXPORT ProcessModel : public QAbstractItemModel
+#ifdef Q_CC_MSVC
+// this workaround is needed to make krunner link under msvc
+// please keep it this way even if you port this library to have a _export.h header file
+#define KSYSGUARD_EXPORT
+#else
+#define KSYSGUARD_EXPORT KDE_EXPORT
+#endif
+
+class KSYSGUARD_EXPORT ProcessModel : public QAbstractItemModel
 {
 	Q_OBJECT
 	Q_ENUMS(Units)
--- branches/KDE/4.2/kdebase/workspace/libs/ksysguard/processui/ksysguardprocesslist.h #918022:918023
@@ -30,6 +30,14 @@
 #include "ProcessFilter.h"
 #include "processes.h"
 
+#ifdef Q_CC_MSVC
+// this workaround is needed to make krunner link under msvc
+// please keep it this way even if you port this library to have a _export.h header file
+#define KSYSGUARD_EXPORT
+#else
+#define KSYSGUARD_EXPORT KDE_EXPORT
+#endif
+
 class QShowEvent;
 class QHideEvent;
 class QLineEdit;
@@ -44,7 +52,7 @@
  * update rate and the process filter.  The buttons are used to force
  * an immediate update and to kill a process.
  */
-class KDE_EXPORT KSysGuardProcessList : public QWidget
+class KSYSGUARD_EXPORT KSysGuardProcessList : public QWidget
 {
 	Q_OBJECT
 	Q_PROPERTY( bool showTotalsInTree READ showTotals WRITE setShowTotals )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic