ui/qt/model.cpp

changeset 130
212b63dd61be
parent 72
a00b46d92c54
equal deleted inserted replaced
129:5babf09f5f19 130:212b63dd61be
129 return QString::fromUtf8(label); 129 return QString::fromUtf8(label);
130 } 130 }
131 return QVariant(); 131 return QVariant();
132 } 132 }
133 133
134 void TableModel::update() {
135 emit dataChanged(QModelIndex(),QModelIndex());
136 }
137
134 void TableModel::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { 138 void TableModel::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) {
135 UiListSelection *selection = listSelection(view->selectionModel()); 139 UiListSelection *selection = listSelection(view->selectionModel());
136 140
137 UiEvent e; 141 UiEvent e;
138 e.obj = obj; 142 e.obj = obj;

mercurial