From defb193387b4a7ff77302dd8ee34e6c43e998761 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 15 May 2023 12:26:25 +0200 Subject: [PATCH] wip --- src/controls/QskMenuSkinlet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controls/QskMenuSkinlet.cpp b/src/controls/QskMenuSkinlet.cpp index 0e6cea43..0325c5d2 100644 --- a/src/controls/QskMenuSkinlet.cpp +++ b/src/controls/QskMenuSkinlet.cpp @@ -481,6 +481,8 @@ QSGNode* QskMenuSkinlet::updateSampleNode( const QskSkinnable* skinnable, if ( subControl == Q::Icon ) { + index = menu->actions()[ index ]; + const auto graphic = menu->optionAt( index ).icon().graphic(); if ( graphic.isNull() ) return nullptr; @@ -494,6 +496,8 @@ QSGNode* QskMenuSkinlet::updateSampleNode( const QskSkinnable* skinnable, if ( subControl == Q::Text ) { + index = menu->actions()[ index ]; + const auto text = menu->optionAt( index ).text(); if ( text.isEmpty() ) return nullptr;