missing include
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "ui_material_map_editor.h"
|
||||
#include "gltexture_manager.h"
|
||||
#include "glmaterial.h"
|
||||
#include <qad_types.h>
|
||||
|
||||
|
||||
MaterialMapEditor::MaterialMapEditor(QWidget * parent): QWidget(parent) {
|
||||
|
||||
@@ -17,13 +17,20 @@
|
||||
*/
|
||||
|
||||
#include "propertyeditor.h"
|
||||
#include "qpointedit.h"
|
||||
#include "qrectedit.h"
|
||||
#include "colorbutton.h"
|
||||
#include "clineedit.h"
|
||||
#include <QPainter>
|
||||
#include <QCheckBox>
|
||||
#include <QApplication>
|
||||
|
||||
|
||||
QWidget * Delegate::widgetForProperty(QWidget * parent, const QModelIndex & index) const {
|
||||
QWidget * w = 0;
|
||||
QWidget * w = nullptr;
|
||||
int type = 0;
|
||||
QVariant value = index.data(Qt::UserRole);
|
||||
if (index.data(Qt::UserRole + 2).toString() == "__flags") return 0;
|
||||
if (index.data(Qt::UserRole + 2).toString() == "__flags") return nullptr;
|
||||
if (index.data(Qt::UserRole + 1).toString() == "__flag") {
|
||||
qulonglong key = index.data(Qt::UserRole).toULongLong();
|
||||
value = index.parent().data(Qt::UserRole);
|
||||
|
||||
Reference in New Issue
Block a user