forked from Wobbl/Wobuzz
Made the main Library not be a dock.
This commit is contained in:
parent
67f27c8a15
commit
a4d1d31e0b
7 changed files with 21 additions and 27 deletions
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from PyQt6.QtGui import QIcon
|
||||
from PyQt6.QtWidgets import QToolBox, QLabel, QTabWidget, QToolButton
|
||||
from PyQt6.QtWidgets import QToolBox, QLabel, QToolButton
|
||||
from .playlist_tabs import PlaylistTabs
|
||||
|
||||
|
||||
class Library(QToolBox):
|
||||
class LibraryWidget(QToolBox):
|
||||
def __init__(self, library, parent=None):
|
||||
super().__init__(parent)
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from PyQt6.QtCore import Qt
|
||||
from PyQt6.QtWidgets import QDockWidget
|
||||
from .library import Library
|
||||
from .library import LibraryWidget
|
||||
|
||||
|
||||
class LibraryDock(QDockWidget):
|
||||
|
|
|
@ -13,11 +13,11 @@ class PlaylistView(QTreeWidget):
|
|||
|
||||
playing_mark = QIcon.fromTheme(QIcon.ThemeIcon.MediaPlaybackStart)
|
||||
|
||||
def __init__(self, playlist, dock, parent=None):
|
||||
def __init__(self, playlist, library_widget, parent=None):
|
||||
super().__init__(parent)
|
||||
|
||||
self.playlist = playlist
|
||||
self.library_dock = dock
|
||||
self.library_widget = library_widget
|
||||
|
||||
self.app = playlist.app
|
||||
|
||||
|
@ -25,7 +25,7 @@ class PlaylistView(QTreeWidget):
|
|||
self.header.setSectionsClickable(True)
|
||||
self.header.setSortIndicatorShown(True)
|
||||
|
||||
playlist.views[id(dock)] = self # let the playlist know that this view exists
|
||||
playlist.views[id(self.library_widget)] = self # let the playlist know that this view exists
|
||||
|
||||
self.setSelectionMode(QAbstractItemView.SelectionMode.ExtendedSelection)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from PyQt6.QtCore import pyqtSignal
|
||||
from PyQt6.QtCore import Qt, pyqtSignal
|
||||
from PyQt6.QtWidgets import QWidget, QDockWidget, QScrollArea, QVBoxLayout
|
||||
|
||||
from .process import BackgroundProcess
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue