Skip to content

Commit

Permalink
Remove usage of Qt resource system
Browse files Browse the repository at this point in the history
  • Loading branch information
abdnh committed Aug 20, 2023
1 parent 3036265 commit a094b31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 121 deletions.
5 changes: 0 additions & 5 deletions src/icons.qrc

This file was deleted.

112 changes: 0 additions & 112 deletions src/icons_rc.py

This file was deleted.

7 changes: 3 additions & 4 deletions src/mpv2anki.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

from intersubs.mpv import MPVCommandError

from . import icons_rc, onclick, popup
from . import onclick, popup
from .onclick import OnClickDictionary
from .popup import PopupDictionary
from .popup.intersubs_handler import InterSubsHandler
Expand Down Expand Up @@ -1364,7 +1364,8 @@ def initUI(self):

self.audio_ext = QLineEdit(self.settings["audio_ext"])

icon = QIcon(":/icons/gears.png")
icon = QIcon(os.path.join(os.path.dirname(__file__), "icons", "gears.png"))

self.modelFieldsButton.setIcon(icon)

grid = QGridLayout()
Expand Down Expand Up @@ -1550,8 +1551,6 @@ def initUI(self):
mainLayout.addWidget(scrollArea)
self.setLayout(mainLayout)

self.setWindowIcon(QIcon(":/icons/anki.png"))

self.setWindowState(Qt.WindowState.WindowMaximized)

def onPresetChanged(self):
Expand Down

0 comments on commit a094b31

Please sign in to comment.