ignore enter in deck properties

This commit is contained in:
Damien Elmes 2009-04-18 03:44:05 +09:00
parent a962a9fb51
commit bb876ce3ed
2 changed files with 11 additions and 24 deletions

View file

@ -28,6 +28,8 @@ class DeckProperties(QDialog):
self.origMod = self.d.modified
self.dialog = ankiqt.forms.deckproperties.Ui_DeckProperties()
self.dialog.setupUi(self)
self.dialog.buttonBox.button(QDialogButtonBox.Help).setAutoDefault(False)
self.dialog.buttonBox.button(QDialogButtonBox.Close).setAutoDefault(False)
self.readData()
self.connect(self.dialog.modelsAdd, SIGNAL("clicked()"), self.onAdd)
self.connect(self.dialog.modelsEdit, SIGNAL("clicked()"), self.onEdit)

View file

@ -25,14 +25,6 @@
<number>0</number>
</property>
<widget class="QWidget" name="tab_2" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>410</width>
<height>334</height>
</rect>
</property>
<attribute name="title" >
<string>Models &amp;&amp; Priorities</string>
</attribute>
@ -139,6 +131,9 @@
<property name="text" >
<string>&amp;Add</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
@ -146,6 +141,9 @@
<property name="text" >
<string>&amp;Edit</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
@ -153,6 +151,9 @@
<property name="text" >
<string>&amp;Delete</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
@ -160,14 +161,6 @@
</layout>
</widget>
<widget class="QWidget" name="tab_5" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>375</width>
<height>334</height>
</rect>
</property>
<attribute name="title" >
<string>Synchronisation</string>
</attribute>
@ -300,14 +293,6 @@ p, li { white-space: pre-wrap; }
</layout>
</widget>
<widget class="QWidget" name="tab_4" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>346</width>
<height>356</height>
</rect>
</property>
<attribute name="title" >
<string>Advanced</string>
</attribute>