Changeset View
Changeset View
Standalone View
Standalone View
src/ktoolbarhandler.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
49 | 49 | | |||
50 | class BarActionBuilder | 50 | class BarActionBuilder | ||
51 | { | 51 | { | ||
52 | public: | 52 | public: | ||
53 | BarActionBuilder(KActionCollection *actionCollection, KXmlGuiWindow *mainWindow, | 53 | BarActionBuilder(KActionCollection *actionCollection, KXmlGuiWindow *mainWindow, | ||
54 | QLinkedList<KToolBar *> &oldToolBarList) | 54 | QLinkedList<KToolBar *> &oldToolBarList) | ||
55 | : m_actionCollection(actionCollection), m_mainWindow(mainWindow), m_needsRebuild(false) | 55 | : m_actionCollection(actionCollection), m_mainWindow(mainWindow), m_needsRebuild(false) | ||
56 | { | 56 | { | ||
57 | QList<KToolBar *> toolBars = m_mainWindow->findChildren<KToolBar *>(); | 57 | const QList<KToolBar *> toolBars = m_mainWindow->findChildren<KToolBar *>(); | ||
58 | 58 | | |||
59 | Q_FOREACH (KToolBar *toolBar, toolBars) { | 59 | for (KToolBar *toolBar : toolBars) { | ||
60 | if (toolBar->mainWindow() != m_mainWindow) { | 60 | if (toolBar->mainWindow() != m_mainWindow) { | ||
61 | continue; | 61 | continue; | ||
62 | } | 62 | } | ||
63 | 63 | | |||
64 | if (!oldToolBarList.contains(toolBar)) { | 64 | if (!oldToolBarList.contains(toolBar)) { | ||
65 | m_needsRebuild = true; | 65 | m_needsRebuild = true; | ||
66 | } | 66 | } | ||
67 | 67 | | |||
▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines |