skin: find event of menu button from list of context menu
[sdk/emulator/qemu.git] / tizen / src / ui / controller / hwkeybutton.cpp
index 0c8afa2..07d52ed 100644 (file)
@@ -58,24 +58,6 @@ HWKeyButton::HWKeyButton(QWidget *parent, HardwareKey *hwKey, QSize size) :
             initialize(DEFAULT_NAME, size);
         }
     }
-
-    //FIXME: set slot for menu button
-    if (hwKey->getKeycode() == 0) {
-        QString name = hwKey->getName();
-        if (QString::compare(name, "Control Panel") == 0) {
-            slot = SLOT(slotControlPanel());
-        } else if (QString::compare(name, "Screen Shot") == 0) {
-            slot = SLOT(slotRequestScreenshot());
-        } else if (QString::compare(name, "Rotate") == 0) {
-            slot = SLOT(slotSwitchShortcutNext());
-        } else if (QString::compare(name, "Shell") == 0) {
-            slot = SLOT(slotShell());
-        } else {
-            slot = NULL;
-        }
-    } else {
-        slot = NULL;
-    }
 }
 
 void HWKeyButton::initialize(QSize size)
@@ -157,11 +139,6 @@ void HWKeyButton::mouseReleaseEvent(QMouseEvent *event)
     QPushButton::mouseReleaseEvent(event);
 }
 
-const char *HWKeyButton::getSlot()
-{
-    return slot;
-}
-
 HWKeyButton::~HWKeyButton()
 {
     /* do nothing */