1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-06-25 02:19:37 +02:00

Display little folder icon next to "add subfolder". I don't see these

icons on linux so hopefully this comes out looking right.  :-)

Fixes #2528.
This commit is contained in:
Theron Tock
2011-06-27 14:48:03 -07:00
parent a82219e002
commit 69364a4ee9
2 changed files with 6 additions and 2 deletions

View File

@@ -6,6 +6,8 @@
* Fixed #2529, where dragging and dropping items between
subfolders could cause a crash.
* Fixed #2528, display icon next to "new subfolder" menu item.
2011-06-23 theron <theron@netcitadel.com>
* Added support for creating user-defined subfolders. The

View File

@@ -774,8 +774,10 @@ void ObjectManipulator::contextMenuRequested(const QPoint &pos)
}
if (addSubfolder) {
QAction *action = popup_menu->addAction(tr("New Subfolder"), this,
SLOT(addSubfolderSlot()));
QAction *action =
popup_menu->addAction(QIcon(":/Icons/SystemGroup/icon-tree"),
tr("New Subfolder"), this,
SLOT(addSubfolderSlot()));
action->setData(currentObj->getId());
AddObjectActions.append(action);
}