mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Enable tooltips for shader execute forwards/backwards menus
MakeExecuteAction already sets tooltips for each QAction it creates, but these are not used in a QMenu unless the toolTipsVisible property is set to true.
This commit is contained in:
committed by
Baldur Karlsson
parent
d150d8f2b7
commit
f82ef87595
@@ -705,6 +705,7 @@ void ShaderViewer::debugShader(const ShaderBindpointMapping *bind, const ShaderR
|
||||
|
||||
{
|
||||
QMenu *backwardsMenu = new QMenu(this);
|
||||
backwardsMenu->setToolTipsVisible(true);
|
||||
QAction *act;
|
||||
|
||||
act = MakeExecuteAction(tr("&Run backwards"), Icons::control_start_blue(),
|
||||
@@ -770,6 +771,7 @@ void ShaderViewer::debugShader(const ShaderBindpointMapping *bind, const ShaderR
|
||||
|
||||
{
|
||||
QMenu *forwardsMenu = new QMenu(this);
|
||||
forwardsMenu->setToolTipsVisible(true);
|
||||
QAction *act;
|
||||
|
||||
act = MakeExecuteAction(tr("&Run forwards"), Icons::control_end_blue(),
|
||||
|
||||
Reference in New Issue
Block a user