Added a close button the the qt ignore list dialog.

This commit is contained in:
Virgil Dupras 2012-03-15 14:23:38 -04:00
parent 3fc83d6245
commit 42b57431e0
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@ class IgnoreListDialog(QDialog):
self.removeSelectedButton.clicked.connect(self.model.remove_selected)
self.clearButton.clicked.connect(self.model.clear)
self.closeButton.clicked.connect(self.accept)
def _setupUi(self):
self.setWindowTitle(tr("Ignore List"))
@ -43,8 +44,9 @@ class IgnoreListDialog(QDialog):
self.verticalLayout.addWidget(self.tableView)
self.removeSelectedButton = QPushButton(tr("Remove Selected"))
self.clearButton = QPushButton(tr("Clear"))
self.closeButton = QPushButton(tr("Close"))
self.verticalLayout.addLayout(horizontalWrap([self.removeSelectedButton, self.clearButton,
None]))
None, self.closeButton]))
#--- model --> view
def show(self):