MCPcopy Create free account
hub / github.com/Syncplay/syncplay / setPlaylistInsertPosition

Method setPlaylistInsertPosition

syncplay/ui/gui.py:253–258  ·  view source on GitHub ↗
(self, newPosition)

Source from the content-addressed store, hash-verified

251
252
253 def setPlaylistInsertPosition(self, newPosition):
254 if not self.playlist.isEnabled():
255 return
256 if MainWindow.insertPosition != newPosition:
257 MainWindow.insertPosition = newPosition
258 self.playlist.forceUpdate()
259
260 class PlaylistItemDelegate(QtWidgets.QStyledItemDelegate):
261 def paint(self, itemQPainter, optionQStyleOptionViewItem, indexQModelIndex):

Callers 6

dragEnterEventMethod · 0.80
dragLeaveEventMethod · 0.80
dropEventMethod · 0.80
dragLeaveEventMethod · 0.80
dragMoveEventMethod · 0.80
dropEventMethod · 0.80

Calls 1

forceUpdateMethod · 0.80

Tested by

no test coverage detected