This commit is contained in:
Andreas Preikschat 2013-04-18 11:30:55 +02:00
parent 2d518febf0
commit 06b8707434

View File

@ -97,7 +97,7 @@ class SongMediaItem(MediaManagerItem):
## Song Maintenance Button ## ## Song Maintenance Button ##
self.maintenanceAction = self.toolbar.add_toolbar_action('maintenanceAction', self.maintenanceAction = self.toolbar.add_toolbar_action('maintenanceAction',
icon=':/songs/song_maintenance.png', icon=':/songs/song_maintenance.png',
triggers=self.onSongMaintenanceClick) triggers=self.on_song_maintenance_click)
self.add_search_to_toolbar() self.add_search_to_toolbar()
# Signals and slots # Signals and slots
Registry().register_function(u'songs_load_list', self.on_song_list_load) Registry().register_function(u'songs_load_list', self.on_song_list_load)
@ -110,7 +110,7 @@ class SongMediaItem(MediaManagerItem):
create_widget_action(self.list_view, separator=True) create_widget_action(self.list_view, separator=True)
create_widget_action(self.list_view, create_widget_action(self.list_view,
text=translate('OpenLP.MediaManagerItem', '&Clone'), icon=u':/general/general_clone.png', text=translate('OpenLP.MediaManagerItem', '&Clone'), icon=u':/general/general_clone.png',
triggers=self.onCloneClick) triggers=self.on_clone_click)
def on_focus(self): def on_focus(self):
self.search_text_edit.setFocus() self.search_text_edit.setFocus()
@ -310,7 +310,7 @@ class SongMediaItem(MediaManagerItem):
self.on_selection_change() self.on_selection_change()
self.auto_select_id = -1 self.auto_select_id = -1
def onSongMaintenanceClick(self): def on_song_maintenance_click(self):
self.song_maintenance_form.exec_() self.song_maintenance_form.exec_()
def onRemoteEdit(self, song_id, preview=False): def onRemoteEdit(self, song_id, preview=False):
@ -384,11 +384,11 @@ class SongMediaItem(MediaManagerItem):
self.application.set_normal_cursor() self.application.set_normal_cursor()
self.on_search_text_button_clicked() self.on_search_text_button_clicked()
def onCloneClick(self): def on_clone_click(self):
""" """
Clone a Song Clone a Song
""" """
log.debug(u'onCloneClick') log.debug(u'on_clone_click')
if check_item_selected(self.list_view, UiStrings().SelectEdit): if check_item_selected(self.list_view, UiStrings().SelectEdit):
self.edit_item = self.list_view.currentItem() self.edit_item = self.list_view.currentItem()
item_id = self.edit_item.data(QtCore.Qt.UserRole) item_id = self.edit_item.data(QtCore.Qt.UserRole)