wip
This commit is contained in:
parent
b7fe24602c
commit
defb193387
|
@ -481,6 +481,8 @@ QSGNode* QskMenuSkinlet::updateSampleNode( const QskSkinnable* skinnable,
|
||||||
|
|
||||||
if ( subControl == Q::Icon )
|
if ( subControl == Q::Icon )
|
||||||
{
|
{
|
||||||
|
index = menu->actions()[ index ];
|
||||||
|
|
||||||
const auto graphic = menu->optionAt( index ).icon().graphic();
|
const auto graphic = menu->optionAt( index ).icon().graphic();
|
||||||
if ( graphic.isNull() )
|
if ( graphic.isNull() )
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
@ -494,6 +496,8 @@ QSGNode* QskMenuSkinlet::updateSampleNode( const QskSkinnable* skinnable,
|
||||||
|
|
||||||
if ( subControl == Q::Text )
|
if ( subControl == Q::Text )
|
||||||
{
|
{
|
||||||
|
index = menu->actions()[ index ];
|
||||||
|
|
||||||
const auto text = menu->optionAt( index ).text();
|
const auto text = menu->optionAt( index ).text();
|
||||||
if ( text.isEmpty() )
|
if ( text.isEmpty() )
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in New Issue