qt: fix UTF-8 string usage
authorSteve Lhomme <robux4@ycbcr.xyz>
Tue, 17 Dec 2024 08:09:39 +0000 (09:09 +0100)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
Similar to bbb9f6a07adfd20c544d29198ea2fec601bf3e62.

Gbp-Pq: Name 0118-qt-fix-UTF-8-string-usage.patch

modules/gui/qt/components/preferences_widgets.cpp

index b634d535421d4dc05b1a1c1e8dcee45c0a2d7d73..4239fd2e1276004c9ea4615dd0fd03751ccef193 100644 (file)
@@ -1230,7 +1230,7 @@ void KeySelectorControl::finish()
             treeItem->setText( HOTKEY_COL, keys );
             treeItem->setToolTip( HOTKEY_COL, qtr("Double click to change.\nDelete key to remove.") );
             treeItem->setToolTip( GLOBAL_HOTKEY_COL, qtr("Double click to change.\nDelete key to remove.") );
-            treeItem->setData( HOTKEY_COL, Qt::UserRole, QVariant( p_config_item->value.psz ) );
+            treeItem->setData( HOTKEY_COL, Qt::UserRole, QVariant( qfu( p_config_item->value.psz ) ) );
             table->addTopLevelItem( treeItem );
             continue;
         }