Show marked files in database view
This commit is contained in:
+6
-1
@@ -27,11 +27,16 @@ class FITSFileModel : public QSqlQueryModel
|
||||
QString m_sort;
|
||||
QStringList m_key;
|
||||
QStringList m_value;
|
||||
QSet<QString> m_markedFiles;
|
||||
Database *m_database;
|
||||
public:
|
||||
explicit FITSFileModel(QObject *parent = nullptr);
|
||||
explicit FITSFileModel(Database *database, QObject *parent = nullptr);
|
||||
void sort(int column, Qt::SortOrder order) override;
|
||||
void setColumns(const QStringList &columns);
|
||||
void setFilter(const QStringList &key, const QStringList &value);
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
void filesMarked(const QModelIndexList &indexes);
|
||||
void filesUnmarked(const QModelIndexList &indexes);
|
||||
protected:
|
||||
void prepareQuery();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user