Changeset View
Changeset View
Standalone View
Standalone View
src/ktoolbar.cpp
Show First 20 Lines • Show All 1182 Lines • ▼ Show 20 Line(s) | 1174 | { | |||
---|---|---|---|---|---|
1183 | } | 1183 | } | ||
1184 | 1184 | | |||
1185 | QToolBar::dragLeaveEvent(event); | 1185 | QToolBar::dragLeaveEvent(event); | ||
1186 | } | 1186 | } | ||
1187 | 1187 | | |||
1188 | void KToolBar::dropEvent(QDropEvent *event) | 1188 | void KToolBar::dropEvent(QDropEvent *event) | ||
1189 | { | 1189 | { | ||
1190 | if (toolBarsEditable()) { | 1190 | if (toolBarsEditable()) { | ||
1191 | Q_FOREACH (QAction *action, d->actionsBeingDragged) { | 1191 | for (QAction *action : qAsConst(d->actionsBeingDragged)) { | ||
1192 | if (actions().contains(action)) { | 1192 | if (actions().contains(action)) { | ||
1193 | removeAction(action); | 1193 | removeAction(action); | ||
1194 | } | 1194 | } | ||
1195 | insertAction(d->dropIndicatorAction, action); | 1195 | insertAction(d->dropIndicatorAction, action); | ||
1196 | } | 1196 | } | ||
1197 | } | 1197 | } | ||
1198 | 1198 | | |||
1199 | // Want to clear this even if toolBarsEditable was changed mid-drag (unlikey) | 1199 | // Want to clear this even if toolBarsEditable was changed mid-drag (unlikey) | ||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |