Skip to content
Snippets Groups Projects
Commit a647bcf3 authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

GtkQTreeModel: remove warning about multiple columns

This warning is useless and the wrapper works for models with
multiple columns, at least in the cases currently implemented in
LRC.

Change-Id: If0bfb819f77099946df9d87ad54820562ddf9993
parent f6078223
No related branches found
No related tags found
No related merge requests found
...@@ -441,10 +441,8 @@ gtk_q_tree_model_new(QAbstractItemModel *model, size_t n_columns, ...) ...@@ -441,10 +441,8 @@ gtk_q_tree_model_new(QAbstractItemModel *model, size_t n_columns, ...)
/* we have to assume only one column */ /* we have to assume only one column */
int first = topLeft.row(); int first = topLeft.row();
int last = bottomRight.row(); int last = bottomRight.row();
if (topLeft.column() != bottomRight.column() ) {
g_warning("more than one column is not supported!"); /* the first idx IS topLeft, the rest are his siblings */
}
/* the first idx IS topLeft, the reset are his siblings */
GtkTreeIter iter; GtkTreeIter iter;
QModelIndex idx = topLeft; QModelIndex idx = topLeft;
iter.stamp = stamp; iter.stamp = stamp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment