-void TitleSetter::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) {
- QItemSelectionRange changedArea(topLeft, bottomRight);
- QModelIndex currentTopicIndex = selectionModel()->currentIndex().sibling(selectionModel()->currentIndex().row(), 0);
- if(changedArea.contains(currentTopicIndex))
- changeWindowTitle(currentTopicIndex);
+
+void TitleSetter::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
+{
+ QItemSelectionRange changedArea(topLeft, bottomRight);
+ QModelIndex currentTopicIndex = selectionModel()->currentIndex().sibling(selectionModel()->currentIndex().row(), 0);
+ if (changedArea.contains(currentTopicIndex))
+ changeWindowTitle(currentTopicIndex);