summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiWoong Kim <giwoong.kim@samsung.com>2015-12-29 13:59:05 +0900
committerSeokYeon Hwang <syeon.hwang@samsung.com>2015-12-30 14:00:10 +0900
commit5ca57a5e1302aa712b43426b266054ce08b20e88 (patch)
tree142c7de3309d6dca5cbc3edea7994a68dbeb1765
parent68a0bac969e0c4b16afddcc42ee5a43d7915320d (diff)
downloadqemu-5ca57a5e1302aa712b43426b266054ce08b20e88.tar.gz
qemu-5ca57a5e1302aa712b43426b266054ce08b20e88.tar.bz2
qemu-5ca57a5e1302aa712b43426b266054ce08b20e88.zip
hwkey: modified HW key's tooltip on MacOS
Change-Id: I2913cb6f0957dc829b73201625fd35305c273846 Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com> (cherry picked from commit 6ca2c76322b03537bc2df8f95a6ce68d9d39f2de)
-rw-r--r--tizen/src/ui/controller/generalpurposecon.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tizen/src/ui/controller/generalpurposecon.cpp b/tizen/src/ui/controller/generalpurposecon.cpp
index 042268a799..5e8cbf4d02 100644
--- a/tizen/src/ui/controller/generalpurposecon.cpp
+++ b/tizen/src/ui/controller/generalpurposecon.cpp
@@ -65,7 +65,11 @@ void GeneralPurposeCon::createItems(QList<HardwareKey *> keyList, QSize size)
QSize(GPC_KEYBUTTON_WIDTH, GPC_KEYBUTTON_HEIGHT));
if (hwKey->getKeySequence().isEmpty() == false) {
- keyButton->setToolTip(hwKey->getKeySequence().toString());
+ QString keySequence = hwKey->getKeySequence().toString();
+#ifdef CONFIG_DARWIN
+ keySequence.replace(XML_QT_METAKEY_STRING, XML_QT_CTRLKEY_STRING);
+#endif
+ keyButton->setToolTip(keySequence);
}
layout->addWidget(keyButton);