Skip to content
Permalink
Browse files

Add Qt5 support

  • Loading branch information
m-kuhn committed Nov 7, 2014
1 parent 97e7969 commit 78c519546a4e365ac7e40d81e5a71deca37ae51c
Showing with 462 additions and 130 deletions.
  1. +37 −15 CMakeLists.txt
  2. +245 −0 cmake/modules/ECMQt4To5Porting.cmake
  3. +0 −1 src/app/main.cpp
  4. +18 −4 src/core/CMakeLists.txt
  5. +1 −1 src/core/composer/qgscomposerattributetablemodel.cpp
  6. +1 −1 src/core/composer/qgscomposerattributetablemodelv2.cpp
  7. +4 −0 src/core/qgis.h
  8. +1 −1 src/core/qgsexpressionlexer.ll
  9. +2 −0 src/core/qgsmaprendererparalleljob.cpp
  10. +20 −0 src/core/qgsproviderregistry.cpp
  11. +10 −0 src/core/qgsproviderregistry.h
  12. +1 −1 src/core/qgsspatialindex.cpp
  13. +1 −1 src/core/qgsspatialindex.h
  14. +1 −1 src/core/symbology-ng/qgscptcityarchive.cpp
  15. +2 −3 src/gui/qgisgui.h
  16. +0 −2 src/gui/qgsactionmenu.cpp
  17. +1 −0 src/gui/qgscolorwidgets.cpp
  18. +1 −0 src/gui/qgsfiledropedit.cpp
  19. +1 −1 src/gui/qgsmapcanvasitem.cpp
  20. +1 −1 src/gui/symbology-ng/characterwidget.cpp
  21. +2 −2 src/gui/symbology-ng/qgsbrushstylecombobox.cpp
  22. +4 −4 src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.cpp
  23. +4 −4 src/gui/symbology-ng/qgsgraduatedsymbolrendererv2widget.cpp
  24. +2 −2 src/gui/symbology-ng/qgspenstylecombobox.cpp
  25. +9 −0 src/plugins/evis/eventbrowser/evisimagedisplaywidget.cpp
  26. +7 −0 src/plugins/evis/eventbrowser/evisimagedisplaywidget.h
  27. +3 −2 src/providers/postgres/qgspostgresprovider.cpp
  28. +1 −1 tests/bench/main.cpp
  29. +2 −2 tests/src/analysis/testopenstreetmap.cpp
  30. +1 −1 tests/src/analysis/testqgsvectoranalyzer.cpp
  31. +1 −1 tests/src/analysis/testqgszonalstatistics.cpp
  32. +1 −1 tests/src/app/testqgisappclipboard.cpp
  33. +1 −1 tests/src/core/regression1141.cpp
  34. +1 −1 tests/src/core/regression992.cpp
  35. +1 −1 tests/src/core/test_template.cpp
  36. +1 −1 tests/src/core/testcontrastenhancements.cpp
  37. +1 −1 tests/src/core/testmaprendererjob.cpp
  38. +1 −1 tests/src/core/testqgsapplication.cpp
  39. +2 −2 tests/src/core/testqgsatlascomposition.cpp
  40. +1 −1 tests/src/core/testqgsblendmodes.cpp
  41. +1 −1 tests/src/core/testqgsclipper.cpp
  42. +1 −1 tests/src/core/testqgscolorscheme.cpp
  43. +1 −1 tests/src/core/testqgscolorschemeregistry.cpp
  44. +1 −1 tests/src/core/testqgscomposerdd.cpp
  45. +1 −1 tests/src/core/testqgscomposereffects.cpp
  46. +1 −1 tests/src/core/testqgscomposergroup.cpp
  47. +1 −1 tests/src/core/testqgscomposerhtml.cpp
  48. +1 −1 tests/src/core/testqgscomposerlabel.cpp
  49. +1 −1 tests/src/core/testqgscomposermap.cpp
  50. +1 −1 tests/src/core/testqgscomposermapgrid.cpp
  51. +1 −1 tests/src/core/testqgscomposermapoverview.cpp
  52. +1 −1 tests/src/core/testqgscomposermodel.cpp
  53. +1 −1 tests/src/core/testqgscomposermultiframe.cpp
  54. +1 −1 tests/src/core/testqgscomposerobject.cpp
  55. +1 −1 tests/src/core/testqgscomposerpaper.cpp
  56. +1 −1 tests/src/core/testqgscomposerpicture.cpp
  57. +1 −1 tests/src/core/testqgscomposerrotation.cpp
  58. +1 −1 tests/src/core/testqgscomposerscalebar.cpp
  59. +1 −1 tests/src/core/testqgscomposershapes.cpp
  60. +1 −1 tests/src/core/testqgscomposertable.cpp
  61. +1 −1 tests/src/core/testqgscomposertablev2.cpp
  62. +1 −1 tests/src/core/testqgscomposerutils.cpp
  63. +1 −1 tests/src/core/testqgscomposition.cpp
  64. +1 −1 tests/src/core/testqgscoordinatereferencesystem.cpp
  65. +1 −1 tests/src/core/testqgscoordinatetransform.cpp
  66. +1 −1 tests/src/core/testqgsdatadefined.cpp
  67. +1 −1 tests/src/core/testqgsdataitem.cpp
  68. +1 −1 tests/src/core/testqgsdiagram.cpp
  69. +1 −1 tests/src/core/testqgsdiagramexpression.cpp
  70. +1 −1 tests/src/core/testqgsdistancearea.cpp
  71. +1 −1 tests/src/core/testqgsexpression.cpp
  72. +1 −1 tests/src/core/testqgsgeometry.cpp
  73. +1 −1 tests/src/core/testqgsgeometryimport.cpp
  74. +1 −1 tests/src/core/testqgsgradients.cpp
  75. +1 −1 tests/src/core/testqgsinvertedpolygonrenderer.cpp
  76. +1 −1 tests/src/core/testqgslegendrenderer.cpp
  77. +1 −1 tests/src/core/testqgsmaplayer.cpp
  78. +1 −1 tests/src/core/testqgsmaprenderer.cpp
  79. +1 −1 tests/src/core/testqgsnetworkcontentfetcher.cpp
  80. +1 −1 tests/src/core/testqgsogcutils.cpp
  81. +1 −1 tests/src/core/testqgspoint.cpp
  82. +1 −1 tests/src/core/testqgsproject.cpp
  83. +1 −1 tests/src/core/testqgsrasterfilewriter.cpp
  84. +1 −1 tests/src/core/testqgsrasterfill.cpp
  85. +1 −1 tests/src/core/testqgsrasterlayer.cpp
  86. +1 −1 tests/src/core/testqgsrastersublayer.cpp
  87. +1 −1 tests/src/core/testqgsrectangle.cpp
  88. +1 −1 tests/src/core/testqgsrenderers.cpp
  89. +1 −1 tests/src/core/testqgsrulebasedrenderer.cpp
  90. +1 −1 tests/src/core/testqgsshapeburst.cpp
  91. +1 −1 tests/src/core/testqgsspatialindex.cpp
  92. +1 −1 tests/src/core/testqgsstylev2.cpp
  93. +1 −1 tests/src/core/testqgsvectordataprovider.cpp
  94. +1 −1 tests/src/core/testqgsvectorfilewriter.cpp
  95. +1 −1 tests/src/core/testqgsvectorlayer.cpp
  96. +1 −1 tests/src/core/testqgsvectorlayercache.cpp
  97. +1 −1 tests/src/core/testqgsvectorlayerjoinbuffer.cpp
  98. +1 −1 tests/src/core/testziplayer.cpp
  99. +1 −1 tests/src/gui/testprojectionissues.cpp
  100. +1 −1 tests/src/gui/testqgsdualview.cpp
  101. +1 −1 tests/src/gui/testqgsmapcanvas.cpp
  102. +1 −1 tests/src/gui/testqgsmaptoolzoom.cpp
  103. +1 −1 tests/src/gui/testqgsquickprint.cpp
  104. +1 −1 tests/src/gui/testqgsrasterhistogram.cpp
  105. +1 −1 tests/src/gui/testqgsrubberband.cpp
  106. +2 −2 tests/src/gui/testqgsscalecombobox.cpp
  107. +1 −1 tests/src/providers/testqgswcsprovider.cpp
@@ -219,20 +219,44 @@ SET (HAVE_MSSQL TRUE)
#############################################################
# search for Qt4
SET(QT_MIN_VERSION 4.7.0)
FIND_PACKAGE(Qt4 ${QT_MIN_VERSION} REQUIRED)
SET (ENABLE_QT5 FALSE CACHE BOOL "If enabled will try to find Qt5 before looking for Qt4")
IF (ENABLE_QT5)
FIND_PACKAGE(Qt5Core QUIET)
FIND_PACKAGE(Qt5Gui REQUIRED)
FIND_PACKAGE(Qt5Widgets REQUIRED)
FIND_PACKAGE(Qt5Network REQUIRED)
FIND_PACKAGE(Qt5Xml REQUIRED)
FIND_PACKAGE(Qt5Svg REQUIRED)
FIND_PACKAGE(Qt5Concurrent REQUIRED)
FIND_PACKAGE(Qt5PrintSupport REQUIRED)
FIND_PACKAGE(Qt5WebKit REQUIRED)
FIND_PACKAGE(Qt5WebKitWidgets REQUIRED)
FIND_PACKAGE(Qt5Test REQUIRED)
FIND_PACKAGE(Qt5UiTools REQUIRED)
FIND_PACKAGE(Qt5Script REQUIRED)
FIND_PACKAGE(Qt5Sql REQUIRED)
SET(QT5_BUILD TRUE)

INCLUDE("cmake/modules/ECMQt4To5Porting.cmake")
ELSE()
FIND_PACKAGE(Qt4 ${QT_MIN_VERSION} REQUIRED)
SET(QT_USE_QTXML 1)
SET(QT_USE_QTNETWORK 1)
SET(QT_USE_QTSVG 1)
SET(QT_USE_QTSQL 1)
SET(QT_USE_QTWEBKIT 1)
IF (WITH_CUSTOM_WIDGETS)
SET(QT_USE_QTDESIGNER 1)
ENDIF (WITH_CUSTOM_WIDGETS)

IF (NOT QT_QTXML_FOUND OR NOT QT_QTNETWORK_FOUND OR NOT QT_QTSVG_FOUND OR NOT QT_QTSQL_FOUND OR NOT QT_QTWEBKIT_FOUND OR (WITH_CUSTOM_WIDGETS AND NOT QT_QTDESIGNER_FOUND))
MESSAGE(SEND_ERROR "Some Qt4 modules haven't been found!")
ENDIF (NOT QT_QTXML_FOUND OR NOT QT_QTNETWORK_FOUND OR NOT QT_QTSVG_FOUND OR NOT QT_QTSQL_FOUND OR NOT QT_QTWEBKIT_FOUND OR (WITH_CUSTOM_WIDGETS AND NOT QT_QTDESIGNER_FOUND))

INCLUDE( ${QT_USE_FILE} )
ENDIF()

MESSAGE(STATUS "Found Qt version: ${QTVERSION}")
SET(QT_USE_QTXML 1)
SET(QT_USE_QTNETWORK 1)
SET(QT_USE_QTSVG 1)
SET(QT_USE_QTSQL 1)
SET(QT_USE_QTWEBKIT 1)
IF (WITH_CUSTOM_WIDGETS)
SET(QT_USE_QTDESIGNER 1)
ENDIF (WITH_CUSTOM_WIDGETS)

IF (NOT QT_QTXML_FOUND OR NOT QT_QTNETWORK_FOUND OR NOT QT_QTSVG_FOUND OR NOT QT_QTSQL_FOUND OR NOT QT_QTWEBKIT_FOUND OR (WITH_CUSTOM_WIDGETS AND NOT QT_QTDESIGNER_FOUND))
MESSAGE(SEND_ERROR "Some Qt4 modules haven't been found!")
ENDIF (NOT QT_QTXML_FOUND OR NOT QT_QTNETWORK_FOUND OR NOT QT_QTSVG_FOUND OR NOT QT_QTSQL_FOUND OR NOT QT_QTWEBKIT_FOUND OR (WITH_CUSTOM_WIDGETS AND NOT QT_QTDESIGNER_FOUND))

IF (WITH_QTMOBILITY)
FIND_PACKAGE(QtMobility 1.1.0)
@@ -282,8 +306,6 @@ IF (SUPPRESS_QT_WARNINGS)
INCLUDE_DIRECTORIES(SYSTEM ${QT_INCLUDE_DIR})
ENDIF (SUPPRESS_QT_WARNINGS)

INCLUDE( ${QT_USE_FILE} )

# Disable automatic conversion from QString to ASCII 8-bit strings (char *)
# (Keeps code compatible with Qt/Mac/64bit)
ADD_DEFINITIONS(-DQT_NO_CAST_TO_ASCII)
@@ -0,0 +1,245 @@
#=============================================================================
# Copyright 2005-2011 Kitware, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# * Neither the name of Kitware, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#=============================================================================

# The automoc_qt4 macro is superceded by CMAKE_AUTOMOC from CMake 2.8.6
# A Qt 5 version is not provided by CMake or Qt.

include(MacroAddFileDependencies)

MACRO (QT4_GET_MOC_FLAGS _moc_flags)
SET(${_moc_flags})
GET_DIRECTORY_PROPERTY(_inc_DIRS INCLUDE_DIRECTORIES)

FOREACH(_current ${_inc_DIRS})
IF("${_current}" MATCHES "\\.framework/?$")
STRING(REGEX REPLACE "/[^/]+\\.framework" "" framework_path "${_current}")
SET(${_moc_flags} ${${_moc_flags}} "-F${framework_path}")
ELSE("${_current}" MATCHES "\\.framework/?$")
SET(${_moc_flags} ${${_moc_flags}} "-I${_current}")
ENDIF("${_current}" MATCHES "\\.framework/?$")
ENDFOREACH(_current ${_inc_DIRS})

GET_DIRECTORY_PROPERTY(_defines COMPILE_DEFINITIONS)
FOREACH(_current ${_defines})
SET(${_moc_flags} ${${_moc_flags}} "-D${_current}")
ENDFOREACH(_current ${_defines})

IF(Q_OS_WIN)
SET(${_moc_flags} ${${_moc_flags}} -DWIN32)
ENDIF(Q_OS_WIN)

ENDMACRO(QT4_GET_MOC_FLAGS)

# helper macro to set up a moc rule
MACRO (QT4_CREATE_MOC_COMMAND infile outfile moc_flags moc_options)
# For Windows, create a parameters file to work around command line length limit
IF (WIN32)
# Pass the parameters in a file. Set the working directory to
# be that containing the parameters file and reference it by
# just the file name. This is necessary because the moc tool on
# MinGW builds does not seem to handle spaces in the path to the
# file given with the @ syntax.
GET_FILENAME_COMPONENT(_moc_outfile_name "${outfile}" NAME)
GET_FILENAME_COMPONENT(_moc_outfile_dir "${outfile}" PATH)
IF(_moc_outfile_dir)
SET(_moc_working_dir WORKING_DIRECTORY ${_moc_outfile_dir})
ENDIF(_moc_outfile_dir)
SET (_moc_parameters_file ${outfile}_parameters)
SET (_moc_parameters ${moc_flags} ${moc_options} -o "${outfile}" "${infile}")
STRING (REPLACE ";" "\n" _moc_parameters "${_moc_parameters}")
FILE (WRITE ${_moc_parameters_file} "${_moc_parameters}")
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_MOC_EXECUTABLE} @${_moc_outfile_name}_parameters
DEPENDS ${infile}
${_moc_working_dir}
VERBATIM)
ELSE (WIN32)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_MOC_EXECUTABLE}
ARGS ${moc_flags} ${moc_options} -o ${outfile} ${infile}
DEPENDS ${infile} VERBATIM)
ENDIF (WIN32)
ENDMACRO (QT4_CREATE_MOC_COMMAND)


MACRO(QT4_AUTOMOC)
QT4_GET_MOC_FLAGS(_moc_INCS)

SET(_matching_FILES )
FOREACH (_current_FILE ${ARGN})

GET_FILENAME_COMPONENT(_abs_FILE ${_current_FILE} ABSOLUTE)
# if "SKIP_AUTOMOC" is set to true, we will not handle this file here.
# This is required to make uic work correctly:
# we need to add generated .cpp files to the sources (to compile them),
# but we cannot let automoc handle them, as the .cpp files don't exist yet when
# cmake is run for the very first time on them -> however the .cpp files might
# exist at a later run. at that time we need to skip them, so that we don't add two
# different rules for the same moc file
GET_SOURCE_FILE_PROPERTY(_skip ${_abs_FILE} SKIP_AUTOMOC)

IF ( NOT _skip AND EXISTS ${_abs_FILE} )

FILE(READ ${_abs_FILE} _contents)

GET_FILENAME_COMPONENT(_abs_PATH ${_abs_FILE} PATH)

STRING(REGEX MATCHALL "# *include +[^ ]+\\.moc[\">]" _match "${_contents}")
IF(_match)
FOREACH (_current_MOC_INC ${_match})
STRING(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC "${_current_MOC_INC}")

GET_FILENAME_COMPONENT(_basename ${_current_MOC} NAME_WE)
IF(EXISTS ${_abs_PATH}/${_basename}.hpp)
SET(_header ${_abs_PATH}/${_basename}.hpp)
ELSE(EXISTS ${_abs_PATH}/${_basename}.hpp)
SET(_header ${_abs_PATH}/${_basename}.h)
ENDIF(EXISTS ${_abs_PATH}/${_basename}.hpp)
SET(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC})
QT4_CREATE_MOC_COMMAND(${_header} ${_moc} "${_moc_INCS}" "")
MACRO_ADD_FILE_DEPENDENCIES(${_abs_FILE} ${_moc})
ENDFOREACH (_current_MOC_INC)
ENDIF(_match)
ENDIF ( NOT _skip AND EXISTS ${_abs_FILE} )
ENDFOREACH (_current_FILE)
ENDMACRO(QT4_AUTOMOC)


# Portability helpers.

set(QT_QTGUI_LIBRARIES
${Qt5Gui_LIBRARIES}
${Qt5Widgets_LIBRARIES}
${Qt5PrintSupport_LIBRARIES}
${Qt5Svg_LIBRARIES}
)

set(QT_INCLUDES
${Qt5Gui_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${Qt5PrintSupport_INCLUDE_DIRS}
${Qt5Svg_INCLUDE_DIRS}
)
set(QT_QTGUI_LIBRARY ${QT_QTGUI_LIBRARIES})

set(_qt_modules
Core
Declarative
Widgets
Script
ScriptTools
Network
Test
Designer
Concurrent
Xml
XmlPatterns
UiTools
Qml
Quick1
WebKit
WebKitWidgets
Sql
OpenGL
)

foreach(_module ${_qt_modules})
string(TOUPPER ${_module} _module_upper)
set(QT_QT${_module_upper}_LIBRARIES ${Qt5${_module}_LIBRARIES})
set(QT_QT${_module_upper}_LIBRARY ${QT_QT${_module_upper}_LIBRARIES})
list(APPEND QT_INCLUDES ${Qt5${_module}_INCLUDE_DIRS})
set(QT_QT${_module_upper}_FOUND ${Qt5${_module}_FOUND})
endforeach()

list(APPEND QT_QTCORE_LIBRARIES ${Qt5Concurrent_LIBRARIES})
list(APPEND QT_QTCORE_LIBRARY ${Qt5Concurrent_LIBRARIES})

list(APPEND QT_QTWEBKIT_LIBRARIES ${Qt5WebKitWidgets_LIBRARIES})
list(APPEND QT_QTWEBKIT_LIBRARY ${Qt5WebKitWidgets_LIBRARIES})

set(QT_QTDECLARATIVE_LIBRARIES ${Qt5Quick1_LIBRARIES})
set(QT_QTDECLARATIVE_LIBRARY ${Qt5Quick1_LIBRARIES})

set(QT_LRELEASE_EXECUTABLE lrelease-qt5)
set(QT_LUPDATE_EXECUTABLE lupdate-qt5)

set(QT_INSTALL_PREFIX ${_qt5Core_install_prefix})

get_target_property(QT_QMAKE_EXECUTABLE Qt5::qmake LOCATION)
set(QT_RCC_EXECUTABLE Qt5::rcc LOCATION)
if (TARGET Qt5::uic)
get_target_property(QT_UIC_EXECUTABLE Qt5::uic LOCATION)
endif()


if (TARGET Qt5::qdbuscpp2xml)
get_target_property(QT_QDBUSCPP2XML_EXECUTABLE Qt5::qdbuscpp2xml LOCATION)
endif()

if (TARGET Qt5::qdbusxml2cpp)
get_target_property(QT_QDBUSXML2CPP_EXECUTABLE Qt5::qdbusxml2cpp LOCATION)
endif()

add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)

macro(qt4_wrap_ui)
qt5_wrap_ui(${ARGN})
endmacro()

macro(qt4_wrap_cpp)
qt5_wrap_cpp(${ARGN})
endmacro()

macro(qt4_generate_moc)
qt5_generate_moc(${ARGN})
endmacro()

macro(qt4_add_dbus_adaptor)
qt5_add_dbus_adaptor(${ARGN})
endmacro()

macro(qt4_add_dbus_interfaces)
qt5_add_dbus_interfaces(${ARGN})
endmacro()

macro(qt4_add_dbus_interface)
qt5_add_dbus_interface(${ARGN})
endmacro()

macro(qt4_generate_dbus_interface)
qt5_generate_dbus_interface(${ARGN})
endmacro()

macro(qt4_add_resources)
qt5_add_resources(${ARGN})
endmacro()

@@ -29,7 +29,6 @@
#include <QString>
#include <QStringList>
#include <QStyle>
#include <QPlastiqueStyle>
#include <QTranslator>
#include <QImageReader>
#include <QMessageBox>
@@ -94,7 +94,6 @@ SET(QGIS_CORE_SRCS
qgsgeometryvalidator.cpp
qgsgml.cpp
qgsgmlschema.cpp
qgshttptransaction.cpp
qgslabel.cpp
qgslabelattributes.cpp
qgslabelsearchtree.cpp
@@ -268,9 +267,14 @@ SET(QGIS_CORE_SRCS
raster/qgssinglebandpseudocolorrenderer.cpp
raster/qgsbrightnesscontrastfilter.cpp
raster/qgshuesaturationfilter.cpp

)

IF (NOT QT5_BUILD)
SET(QGIS_CORE_SRCS ${QGIS_CORE_SRCS}
qgshttptransaction.cpp
)
ENDIF (NOT QT5_BUILD)

IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# spatialindex headers produce warnings
SET_SOURCE_FILES_PROPERTIES(qgsspatialindex.cpp PROPERTIES COMPILE_FLAGS -Wno-overloaded-virtual)
@@ -351,7 +355,6 @@ SET(QGIS_CORE_MOC_HDRS
qgsdataprovider.h
qgsgml.h
qgsgmlschema.h
qgshttptransaction.h
qgsmaplayer.h
qgsmaplayerlegend.h
qgsmaplayerregistry.h
@@ -428,6 +431,12 @@ SET(QGIS_CORE_MOC_HDRS
layertree/qgslayertreeregistrybridge.h
)

IF (NOT QT5_BUILD)
SET(QGIS_CORE_MOC_HDRS ${QGIS_CORE_MOC_HDRS}
qgshttptransaction.h
)
ENDIF (NOT QT5_BUILD)

IF (WITH_INTERNAL_QEXTSERIALPORT)
SET(QGIS_CORE_MOC_HDRS ${QGIS_CORE_MOC_HDRS}
gps/qextserialport/qextserialport.h
@@ -493,7 +502,6 @@ SET(QGIS_CORE_HDRS
qgsgml.h
qgsgmlschema.h
qgsgeometrycache.h
qgshttptransaction.h
qgslabel.h
qgslabelattributes.h
qgslabelsearchtree.h
@@ -664,6 +672,12 @@ SET(QGIS_CORE_HDRS
layertree/qgslayertreeutils.h
)

IF (NOT QT5_BUILD)
SET(QGIS_CORE_HDRS ${QGIS_CORE_HDRS}
qgshttptransaction.h
)
ENDIF (NOT QT5_BUILD)

IF (QT_MOBILITY_LOCATION_FOUND)
SET(QGIS_CORE_HDRS ${QGIS_CORE_HDRS}
gps/qgsqtlocationconnection.h
@@ -188,7 +188,7 @@ bool QgsComposerAttributeTableColumnModel::setData( const QModelIndex& index, co
if ( column->heading().isEmpty() || ( column->heading() == column->attribute() ) )
{
column->setHeading( value.toString() );
emit dataChanged( createIndex( index.row(), 1, 0 ), createIndex( index.row(), 1, 0 ) );
emit dataChanged( createIndex( index.row(), 1 ), createIndex( index.row(), 1 ) );
}
column->setAttribute( value.toString() );
emit dataChanged( index, index );

0 comments on commit 78c5195

Please sign in to comment.
You can’t perform that action at this time.