Delete "edit action" button form WiimotedevShortcutsConfig

This commit is contained in:
Bartłomiej Burdukiewicz 2010-08-31 23:50:21 +00:00
parent 8359190a2f
commit 37f2a42a88
4 changed files with 4 additions and 14 deletions

View File

@ -61,7 +61,7 @@ WiimotedevShortcutGrabber::~WiimotedevShortcutGrabber() {
} }
void WiimotedevShortcutGrabber::Timeout(int secs) { void WiimotedevShortcutGrabber::Timeout(int secs) {
if (secs == 0) { if (!secs) {
emit AddShortcut(wiimotedev_buttons_, ui_->comboBox->currentIndex()); emit AddShortcut(wiimotedev_buttons_, ui_->comboBox->currentIndex());
close(); close();
} }

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>418</width> <width>418</width>
<height>130</height> <height>132</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -15,7 +15,7 @@
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../../data/data.qrc"> <iconset resource="../../data/data.qrc">
<normaloff>:/icon.png</normaloff>:/icon.png</iconset> <normaloff>:/icons/32x32/wiimotedev.png</normaloff>:/icons/32x32/wiimotedev.png</iconset>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>

View File

@ -121,6 +121,7 @@ WiimotedevShortcutsConfig::WiimotedevShortcutsConfig(QWidget* parent)
connect(ui_->wiimotedev_enable, SIGNAL(clicked(bool)), this, SLOT(WiimotedevEnabledChecked(bool))); connect(ui_->wiimotedev_enable, SIGNAL(clicked(bool)), this, SLOT(WiimotedevEnabledChecked(bool)));
connect(ui_->list, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), SLOT(ItemClicked(QTreeWidgetItem*))); connect(ui_->list, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), SLOT(ItemClicked(QTreeWidgetItem*)));
connect(ui_->wiimotedev_add_action, SIGNAL(clicked()), this, SLOT(AddAction())); connect(ui_->wiimotedev_add_action, SIGNAL(clicked()), this, SLOT(AddAction()));
connect(ui_->wiimotedev_delete_action, SIGNAL(clicked()), this, SLOT(DeleteAction())); connect(ui_->wiimotedev_delete_action, SIGNAL(clicked()), this, SLOT(DeleteAction()));
connect(ui_->wiimotedev_reload, SIGNAL(clicked()), this , SLOT(DefaultSettings())); connect(ui_->wiimotedev_reload, SIGNAL(clicked()), this , SLOT(DefaultSettings()));

View File

@ -163,17 +163,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="wiimotedev_edit_action">
<property name="text">
<string>Edit action</string>
</property>
<property name="icon">
<iconset resource="../../data/data.qrc">
<normaloff>:/icons/22x22/configure.png</normaloff>:/icons/22x22/configure.png</iconset>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="wiimotedev_reload"> <widget class="QPushButton" name="wiimotedev_reload">
<property name="text"> <property name="text">