fix windows build

This commit is contained in:
Juergen E. Fischer 2017-10-01 01:09:50 +02:00
parent 92af1dacaf
commit df71901a32
3 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,7 @@
class QgsDiagramLayerSettings
{
%Docstring

View File

@ -757,8 +757,8 @@ while ($LINE_IDX < $LINE_COUNT){
if ( $LINE =~ m/^(\s*)Q_DECLARE_FLAGS\(\s*(.*?)\s*,\s*(.*?)\s*\)\s*$/ ){
my $ACTUAL_CLASS = $CLASSNAME[$#CLASSNAME];
dbg_info("Declare flags: $ACTUAL_CLASS");
$LINE = "$1typedef QFlags<$ACTUAL_CLASS::$3> $2;\n";
$QFLAG_HASH{"$ACTUAL_CLASS::$2"} = "$ACTUAL_CLASS::$3";
$LINE = "$1typedef QFlags<${ACTUAL_CLASS}::$3> $2;\n";
$QFLAG_HASH{"${ACTUAL_CLASS}::$2"} = "${ACTUAL_CLASS}::$3";
}
# catch Q_DECLARE_OPERATORS_FOR_FLAGS
if ( $LINE =~ m/^(\s*)Q_DECLARE_OPERATORS_FOR_FLAGS\(\s*(.*?)\s*\)\s*$/ ){

View File

@ -32,7 +32,8 @@
#include "qgspropertycollection.h"
#include "qgsdatadefinedsizelegend.h"
class QgsDiagram;
#include "diagram/qgsdiagram.h"
class QgsDiagramRenderer;
class QgsFeature;
class QgsRenderContext;