[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Sep 10 04:02:01 UTC 2005
SVN commit 459199 by okellogg:
loadPixmaps(): minor beautification
M +6 -5 worktoolbar.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/worktoolbar.cpp #459198:459199
@@ -233,7 +233,7 @@
}
void WorkToolBar::loadPixmaps() {
- const struct {
+ const struct ButtonInfo {
const ToolBar_Buttons tbb;
const QString btnName;
const char *pngName;
@@ -301,10 +301,11 @@
QCursor()) );
kdDebug() << "WorkToolBar::loadPixmaps: n_buttonInfos = " << n_buttonInfos << endl;
for (uint i = 0; i < n_buttonInfos; i++) {
- m_ToolButtons.insert(buttonInfo[i].tbb,
- ToolButton(buttonInfo[i].btnName,
- load(dataDir + buttonInfo[i].pngName),
- QCursor(load(dataDir + "cursor-" + buttonInfo[i].pngName), 9, 9)));
+ const ButtonInfo& info = buttonInfo[i];
+ m_ToolButtons.insert(info.tbb,
+ ToolButton(info.btnName,
+ load(dataDir + info.pngName),
+ QCursor(load(dataDir + "cursor-" + info.pngName), 9, 9)));
}
}
More information about the umbrello-devel
mailing list