+// return pixList.at(index.row());
+// return (uint)dbIndex.at(index.row());
+//It could be that this is fucking things up...
+#if 0
+ if (role == Qt::DecorationRole)
+ return list.at(index.row()).label;
+ else if (role == Qt::DisplayRole)
+ return (uint)list.at(index.row()).dbIndex;
+ else if (role == Qt::EditRole)
+ return list.at(index.row()).filename;
+ else if (role == Qt::WhatsThisRole)
+ return (uint)list.at(index.row()).fileSize;
+ else
+ return QVariant();
+#else
+ if (role == FLM_LABEL)
+ return list.at(index.row()).label;
+ else if (role == FLM_INDEX)
+ return (uint)list.at(index.row()).dbIndex;
+ else if (role == FLM_FILENAME)
+ return list.at(index.row()).filename;
+ else if (role == FLM_FILESIZE)
+ return (uint)list.at(index.row()).fileSize;
+
+ return QVariant();
+#endif