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)
QPushButton::mouseReleaseEvent(event);
}
-const char *HWKeyButton::getSlot()
-{
- return slot;
-}
-
HWKeyButton::~HWKeyButton()
{
/* do nothing */