Changeset View
Changeset View
Standalone View
Standalone View
addons/tabswitcher/tabswitcherfilesmodel.cpp
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Line(s) | |||||
127 | } | 127 | } | ||
128 | 128 | | |||
129 | bool detail::TabswitcherFilesModel::removeRow(int row) | 129 | bool detail::TabswitcherFilesModel::removeRow(int row) | ||
130 | { | 130 | { | ||
131 | if (data_.begin() + row == data_.end()) { | 131 | if (data_.begin() + row == data_.end()) { | ||
132 | return false; | 132 | return false; | ||
133 | } | 133 | } | ||
134 | 134 | | |||
135 | beginRemoveRows(QModelIndex(), row, row + 1); | 135 | beginRemoveRows(QModelIndex(), row, row); | ||
136 | data_.erase(data_.begin() + row); | 136 | data_.erase(data_.begin() + row); | ||
137 | post_process(data_); | 137 | post_process(data_); | ||
138 | endRemoveRows(); | 138 | endRemoveRows(); | ||
139 | return true; | 139 | return true; | ||
140 | } | 140 | } | ||
141 | 141 | | |||
142 | void detail::TabswitcherFilesModel::clear() | 142 | void detail::TabswitcherFilesModel::clear() | ||
143 | { | 143 | { | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |