clean ups

This commit is contained in:
Andreas Preikschat 2011-01-26 17:54:10 +01:00
parent ff2dc95123
commit 54e1b8d9b7
2 changed files with 7 additions and 2 deletions

View File

@ -125,6 +125,9 @@ class SongExportForm(OpenLPWizard):
self.selectionLayout.setSpacing(0)
self.selectionLayout.setMargin(0)
self.selectionLayout.setObjectName(u'selectionLayout')
spacerItem = QtGui.QSpacerItem(20, 0,
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.MinimumExpanding)
self.selectionLayout.addItem(spacerItem)
self.addSelected = QtGui.QToolButton(self.selectionWidget)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(
@ -143,6 +146,9 @@ class SongExportForm(OpenLPWizard):
self.removeSelected.setIconSize(QtCore.QSize(20, 20))
self.removeSelected.setObjectName(u'removeSelected')
self.selectionLayout.addWidget(self.removeSelected)
spacerItem = QtGui.QSpacerItem(20, 0,
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.MinimumExpanding)
self.selectionLayout.addItem(spacerItem)
self.sourceLayout.addWidget(self.selectionWidget)
self.selectedGroupBox = QtGui.QGroupBox(self.sourcePage)
self.selectedGroupBox.setObjectName(u'selectedGroupBox')

View File

@ -274,8 +274,7 @@ class SongMediaItem(MediaManagerItem):
def onExportClick(self):
if not hasattr(self, u'export_wizard'):
self.export_wizard = SongExportForm(self, self.parent)
if self.export_wizard.exec_() == QtGui.QDialog.Accepted:
Receiver.send_message(u'songs_load_list')
self.export_wizard.exec_()
def onNewClick(self):
log.debug(u'onNewClick')