Browse Source

Add cancel button to add-plugin dialog

Closes #343
tags/1.9.7
falkTX 8 years ago
parent
commit
b4b68fae17
4 changed files with 13 additions and 0 deletions
  1. BIN
      resources/16x16/dialog-cancel.png
  2. +1
    -0
      resources/resources.qrc
  3. +11
    -0
      resources/ui/carla_database.ui
  4. +1
    -0
      source/carla_database.py

BIN
resources/16x16/dialog-cancel.png View File

Before After
Width: 16  |  Height: 16  |  Size: 714B

+ 1
- 0
resources/resources.qrc View File

@@ -6,6 +6,7 @@
<file>16x16/application-exit.png</file> <file>16x16/application-exit.png</file>
<file>16x16/arrow-right.png</file> <file>16x16/arrow-right.png</file>
<file>16x16/configure.png</file> <file>16x16/configure.png</file>
<file>16x16/dialog-cancel.png</file>
<file>16x16/dialog-error.png</file> <file>16x16/dialog-error.png</file>
<file>16x16/dialog-information.png</file> <file>16x16/dialog-information.png</file>
<file>16x16/dialog-ok-apply.png</file> <file>16x16/dialog-ok-apply.png</file>


+ 11
- 0
resources/ui/carla_database.ui View File

@@ -339,6 +339,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="b_cancel">
<property name="text">
<string>Cancel</string>
</property>
<property name="icon">
<iconset resource="../resources.qrc">
<normaloff>:/16x16/dialog-cancel.png</normaloff>:/16x16/dialog-cancel.png</iconset>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
</layout> </layout>


+ 1
- 0
source/carla_database.py View File

@@ -1162,6 +1162,7 @@ class PluginDatabaseW(QDialog):


self.finished.connect(self.slot_saveSettings) self.finished.connect(self.slot_saveSettings)
self.ui.b_add.clicked.connect(self.slot_addPlugin) self.ui.b_add.clicked.connect(self.slot_addPlugin)
self.ui.b_cancel.clicked.connect(self.reject)
self.ui.b_refresh.clicked.connect(self.slot_refreshPlugins) self.ui.b_refresh.clicked.connect(self.slot_refreshPlugins)
self.ui.tb_filters.clicked.connect(self.slot_maybeShowFilters) self.ui.tb_filters.clicked.connect(self.slot_maybeShowFilters)
self.ui.lineEdit.textChanged.connect(self.slot_checkFilters) self.ui.lineEdit.textChanged.connect(self.slot_checkFilters)


Loading…
Cancel
Save