summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxpathview_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxpathview_p.h')
-rw-r--r--src/declarative/fx/qfxpathview_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxpathview_p.h b/src/declarative/fx/qfxpathview_p.h
index eb5a1b1..801bdb8 100644
--- a/src/declarative/fx/qfxpathview_p.h
+++ b/src/declarative/fx/qfxpathview_p.h
@@ -106,7 +106,7 @@ public:
}
bool isValid() const {
- return model && model->count() > 0 && model->delegate() && path;
+ return model && model->count() > 0 && model->isValid() && path;
}
int calcCurrentIndex();
@@ -140,7 +140,7 @@ public:
int pathOffset;
int requestedIndex;
QList<QFxItem *> items;
- QFxVisualItemModel *model;
+ QFxVisualModel *model;
QVariant modelVariant;
enum MovementReason { Other, Key, Mouse };
MovementReason moveReason;