Icons in context menu.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-24 20:33:41 +03:00
parent 147ff0d505
commit fd91f45bbb
8 changed files with 8 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -52,5 +52,11 @@
<file alias="16x16/actions/application-exit.png">icons/win.icon.theme/16x16/actions/application-exit.png</file>
<file alias="24x24/actions/application-exit.png">icons/win.icon.theme/24x24/actions/application-exit.png</file>
<file alias="32x32/actions/application-exit.png">icons/win.icon.theme/32x32/actions/application-exit.png</file>
<file alias="16x16/actions/preferences-other.png">icons/win.icon.theme/16x16/actions/preferences-other.png</file>
<file alias="24x24/actions/preferences-other.png">icons/win.icon.theme/24x24/actions/preferences-other.png</file>
<file alias="32x32/actions/preferences-other.png">icons/win.icon.theme/32x32/actions/preferences-other.png</file>
<file alias="16x16/actions/edit-delete.png">icons/win.icon.theme/16x16/actions/edit-delete.png</file>
<file alias="24x24/actions/edit-delete.png">icons/win.icon.theme/24x24/actions/edit-delete.png</file>
<file alias="32x32/actions/edit-delete.png">icons/win.icon.theme/32x32/actions/edit-delete.png</file>
</qresource>
</RCC>

View File

@ -94,9 +94,9 @@ protected:
SCASSERT(event != nullptr);
QMenu menu;
QAction *actionOption = menu.addAction(tr("Options"));
QAction *actionOption = menu.addAction(QIcon::fromTheme("preferences-other"), tr("Options"));
QAction *actionRemove = nullptr;
actionRemove = menu.addAction(tr("Delete"));
actionRemove = menu.addAction(QIcon::fromTheme("edit-delete"), tr("Delete"));
if (showRemove)
{
if (_referens > 1)