31 #ifndef SWRI_CONSOLE_NODE_LIST_MODEL_H_ 32 #define SWRI_CONSOLE_NODE_LIST_MODEL_H_ 37 #include <QAbstractListModel> 50 std::string
nodeName(
const QModelIndex &index)
const;
52 virtual int rowCount(
const QModelIndex &parent)
const;
53 virtual QVariant
data(
const QModelIndex &index,
int role)
const;
65 std::map<std::string, size_t>
data_;
69 #endif // SWRI_CONSOLE_NODE_LIST_MODEL_H_ std::vector< std::string > ordering_
virtual int rowCount(const QModelIndex &parent) const
std::string nodeName(const QModelIndex &index) const
NodeListModel(LogDatabase *db)
std::map< std::string, size_t > data_
virtual QVariant data(const QModelIndex &index, int role) const
void handleDatabaseCleared()
void handleMessagesAdded()