Fix broken build of qt4 version
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sat, 24 May 2014 05:16:49 +0000 (13:16 +0800)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sat, 24 May 2014 05:16:49 +0000 (13:16 +0800)
CMakeLists.txt
configdialog/lxqtpageselectwidget.cpp

index b772f56..ca506cb 100644 (file)
@@ -139,9 +139,9 @@ endif()
 
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
-set(CMAKE_AUTOMOC ON)
 
 if(USE_QT5)
+    set(CMAKE_AUTOMOC ON)
     find_package(Qt5Widgets REQUIRED QUIET)
     find_package(Qt5DBus REQUIRED QUIET)
     find_package(Qt5X11Extras REQUIRED QUIET)
index 2155f05..7755ef1 100644 (file)
@@ -29,7 +29,7 @@
 #include "lxqtpageselectwidget.h"
 #include <QDebug>
 #include <QStyledItemDelegate>
-#include <QtWidgets>
+#include <QScrollBar>
 
 using namespace LxQt;