Fixed issues with libGroupView on Windows.

This commit is contained in:
Andrew 2013-03-13 13:42:41 -05:00
parent 8864c7ebdc
commit fd1e3bb814
4 changed files with 9 additions and 7 deletions

View File

@ -4,7 +4,7 @@ set(CMAKE_AUTOMOC ON)
# Find Qt
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Widgets REQUIRED)
# Include Qt headers.
include_directories(${Qt5Base_INCLUDE_DIRS})
@ -38,4 +38,4 @@ include_directories(${CMAKE_BINARY_DIR}/include)
add_definitions(-DLIBGROUPVIEW_LIBRARY)
add_library(libGroupView SHARED ${LIBGROUPVIEW_SOURCES} ${LIBGROUPVIEW_HEADERS})
qt5_use_modules(libGroupView Core Gui)
qt5_use_modules(libGroupView Core Widgets)

View File

@ -24,7 +24,8 @@
#include <QSortFilterProxyModel>
#include <kdeui_export.h>
//#include <kdeui_export.h>
#include <libgroupview_config.h>
class QItemSelection;
@ -42,7 +43,7 @@ class QItemSelection;
*
* @author Rafael Fernández López <ereslibre@kde.org>
*/
class KDEUI_EXPORT KCategorizedSortFilterProxyModel
class LIBGROUPVIEW_EXPORT KCategorizedSortFilterProxyModel
: public QSortFilterProxyModel
{
public:

View File

@ -23,7 +23,8 @@
#include <QListView>
#include <kdeui_export.h>
//#include <kdeui_export.h>
#include <libgroupview_config.h>
class KCategoryDrawer;
@ -75,7 +76,7 @@ class KCategoryDrawer;
*
* @author Rafael Fernández López <ereslibre@kde.org>
*/
class KDEUI_EXPORT KCategorizedView
class LIBGROUPVIEW_EXPORT KCategorizedView
: public QListView
{
Q_OBJECT

View File

@ -33,7 +33,7 @@
#include "kcategorizedview_p.h"
#include <math.h> // trunc on C99 compliant systems
#include <kdefakes.h> // trunc for not C99 compliant systems
//#include <kdefakes.h> // trunc for not C99 compliant systems
#include <QPainter>
#include <QScrollBar>