fix windows build

This commit is contained in:
Juergen E. Fischer 2014-04-05 01:19:50 +02:00
parent 72b3812a0f
commit 8bd80f43c5
4 changed files with 3 additions and 6 deletions

View File

@ -70,7 +70,7 @@ public:
QString sortKeyAttributeName() const;
void setSortKeyAttributeName( QString fieldName );
int sortKeyAttributeIndex() const /Deprecated/;
void setSortKeyAttributeIndex( int idx ) /Deprecated/;

View File

@ -11,7 +11,7 @@ class QgsMapLayerModel : QAbstractItemModel
%TypeHeaderCode
#include "qgsmaplayermodel.h"
%End
public:
static const int LayerIdRole;

View File

@ -19,9 +19,6 @@
#include "qgslogger.h"
const int QgsFieldModel::FieldIndexRole = Qt::UserRole + 1;
const int QgsFieldModel::FieldNameRole = Qt::UserRole + 2;
QgsFieldModel::QgsFieldModel( QObject *parent )
: QAbstractItemModel( parent )
, mLayer( NULL )

View File

@ -32,7 +32,7 @@ class GUI_EXPORT QgsFieldModel : public QAbstractItemModel
{
Q_OBJECT
public:
static const int FieldNameRole, FieldIndexRole;
enum { FieldNameRole = Qt::UserRole + 1, FieldIndexRole = Qt::UserRole + 2 };
/**
* @brief QgsFieldModel creates a model to display the fields of a given layer