Merge branch 'master' of github.com:dae/ankiqt

This commit is contained in:
Damien Elmes 2012-05-04 14:31:07 +09:00
commit 2279704a11
2 changed files with 9 additions and 1 deletions

View file

@ -95,6 +95,8 @@ class AnkiQt(QMainWindow):
f = self.profileForm = aqt.forms.profiles.Ui_Dialog() f = self.profileForm = aqt.forms.profiles.Ui_Dialog()
f.setupUi(d) f.setupUi(d)
d.connect(f.login, SIGNAL("clicked()"), self.onOpenProfile) d.connect(f.login, SIGNAL("clicked()"), self.onOpenProfile)
d.connect(f.profiles, SIGNAL("itemDoubleClicked(QListWidgetItem*)"),
self.onOpenProfile)
d.connect(f.quit, SIGNAL("clicked()"), lambda: sys.exit(0)) d.connect(f.quit, SIGNAL("clicked()"), lambda: sys.exit(0))
d.connect(f.add, SIGNAL("clicked()"), self.onAddProfile) d.connect(f.add, SIGNAL("clicked()"), self.onAddProfile)
d.connect(f.rename, SIGNAL("clicked()"), self.onRenameProfile) d.connect(f.rename, SIGNAL("clicked()"), self.onRenameProfile)

View file

@ -13,6 +13,10 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Profiles</string> <string>Profiles</string>
</property> </property>
<property name="windowIcon">
<iconset resource="icons.qrc">
<normaloff>:/icons/anki.png</normaloff>:/icons/anki.png</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
@ -109,6 +113,8 @@
<tabstop>delete_2</tabstop> <tabstop>delete_2</tabstop>
<tabstop>quit</tabstop> <tabstop>quit</tabstop>
</tabstops> </tabstops>
<resources/> <resources>
<include location="icons.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>