mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-29 03:27:04 +08:00
Added icons in context menu
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
<RCC>
|
||||
<qresource prefix="/images" >
|
||||
<file alias="redisIcon.png">../images/redis_small_icon.png</file>
|
||||
<file alias="redisBigIcon.png">../images/redis_big_icon.png</file>
|
||||
<file alias="redisIcon_offline.png">../images/redis_small_icon_offline.png</file>
|
||||
<file alias="wait.png">../images/wait.png</file>
|
||||
<file alias="db.png">../images/db.png</file>
|
||||
<file alias="namespace.png">../images/namespace.png</file>
|
||||
<file alias="key.png">../images/key.png</file>
|
||||
<file alias="help.png">../images/help.png</file>
|
||||
<file alias="alert.png">../images/alert.png</file>
|
||||
<file alias="add.png">../images/add.png</file>
|
||||
<file alias="import.png">../images/import.png</file>
|
||||
<file alias="redisIcon.png">../images/redis_small_icon.png</file>
|
||||
<file alias="redisBigIcon.png">../images/redis_big_icon.png</file>
|
||||
<file alias="redisIcon_offline.png">../images/redis_small_icon_offline.png</file>
|
||||
<file alias="wait.png">../images/wait.png</file>
|
||||
<file alias="db.png">../images/db.png</file>
|
||||
<file alias="namespace.png">../images/namespace.png</file>
|
||||
<file alias="key.png">../images/key.png</file>
|
||||
<file alias="help.png">../images/help.png</file>
|
||||
<file alias="alert.png">../images/alert.png</file>
|
||||
<file alias="add.png">../images/add.png</file>
|
||||
<file alias="import.png">../images/import.png</file>
|
||||
<file alias="terminal.png">../images/terminal.png</file>
|
||||
<file alias="serverinfo.png">../images/serverinfo.png</file>
|
||||
<file alias="refreshdb.png">../images/refreshdb.png</file>
|
||||
<file alias="editdb.png">../images/editdb.png</file>
|
||||
<file alias="delete.png">../images/delete.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 715 B |
Binary file not shown.
|
After Width: | Height: | Size: 757 B |
Binary file not shown.
|
After Width: | Height: | Size: 584 B |
Binary file not shown.
|
After Width: | Height: | Size: 814 B |
Binary file not shown.
|
After Width: | Height: | Size: 656 B |
Binary file not shown.
|
After Width: | Height: | Size: 318 B |
@@ -256,13 +256,13 @@ void MainWin::OnTreeViewContextMenu(const QPoint &point)
|
||||
|
||||
if (type == RedisServerItem::TYPE) {
|
||||
QMenu *menu = new QMenu();
|
||||
menu->addAction("Console", this, SLOT(OnConsoleOpen()));
|
||||
menu->addAction(QIcon(":/images/terminal.png"), "Console", this, SLOT(OnConsoleOpen()));
|
||||
menu->addSeparator();
|
||||
menu->addAction("Server info", this, SLOT(OnServerInfoOpen()));
|
||||
menu->addAction("Reload", this, SLOT(OnReloadServerInTree()));
|
||||
menu->addAction(QIcon(":/images/serverinfo.png"), "Server info", this, SLOT(OnServerInfoOpen()));
|
||||
menu->addAction(QIcon(":/images/refreshdb.png"), "Reload", this, SLOT(OnReloadServerInTree()));
|
||||
menu->addSeparator();
|
||||
menu->addAction("Edit", this, SLOT(OnEditConnection()));
|
||||
menu->addAction("Delete", this, SLOT(OnRemoveConnectionFromTree()));
|
||||
menu->addAction(QIcon(":/images/editdb.png"), "Edit", this, SLOT(OnEditConnection()));
|
||||
menu->addAction(QIcon(":/images/delete.png"), "Delete", this, SLOT(OnRemoveConnectionFromTree()));
|
||||
menu->exec(QCursor::pos());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user