13 #include <QStandardItem>
14 #include <QSortFilterProxyModel>
17 #include "ui_treeview.h"
20 #include "graph_model.h"
50 QSortFilterProxyModel* new_model_dependents,
51 QSortFilterProxyModel* new_model_depenencies,
52 QSortFilterProxyModel* new_model_both,
53 std::string root_name);
106 std::vector<QTreeView*> treeViews;
109 QAbstractItemView::SelectionMode selection_mode_;
112 QList<QModelIndex> expanded_items_;
void onCustomContextMenu(const QPoint &point)
Definition: treeview.cc:163
int column_index(QString str)
Definition: treeview.cc:91
void select_row_in_treeview(std::string item, bool last)
Definition: treeview.cc:272
TreeView(QWidget *parent=0)
Definition: treeview.cc:5
QSortFilterProxyModel * model_dependents()
Definition: treeview.cc:67
QSortFilterProxyModel * model_both()
Definition: treeview.cc:59
Definition: ui_treeview.h:202
void keyPressEvent(QKeyEvent *event)
Definition: treeview.cc:112
void item_action(QAction *action)
Definition: treeview.cc:214
QSortFilterProxyModel * model_dependencies()
Definition: treeview.cc:63
void mouseEvent(QModelIndex item)
Definition: treeview.cc:132
void expand_item_in_graph(std::string item_name, bool last)
void item_selected_in_treeview(std::string item_name, bool first, bool multiple)
void expand_row(QModelIndex item)
Definition: treeview.cc:75
void treeview_column_action(QAction *action)
Definition: treeview.cc:80
Definition: treeview.h:26
void deselect_all_rows_in_treeview()
Definition: treeview.cc:315
void exclude_item_in_graph(std::string item_name, bool last)
std::vector< QTreeView * > tree_views()
Definition: treeview.cc:71
void resize_columns_to_fit()
Definition: treeview.cc:102
void setModel(QSortFilterProxyModel *new_model_dependents, QSortFilterProxyModel *new_model_depenencies, QSortFilterProxyModel *new_model_both, std::string root_name)
Definition: treeview.cc:36
void keyReleaseEvent(QKeyEvent *event)
Definition: treeview.cc:125
void focus_item_in_graph(std::string item_name)
void contract_item_in_graph(std::string item_name, bool last)