forked from openlp/openlp
Changed use of Qicon to build_icon in slidecontroller
This commit is contained in:
parent
1ffd5713b0
commit
856d44270f
@ -32,7 +32,7 @@ from PyQt4 import QtCore, QtGui
|
||||
from PyQt4.phonon import Phonon
|
||||
|
||||
from openlp.core.lib import OpenLPToolbar, Receiver, resize_image, \
|
||||
ItemCapabilities, translate
|
||||
ItemCapabilities, translate, build_icon
|
||||
from openlp.core.lib.ui import UiStrings, shortcut_action
|
||||
from openlp.core.ui import HideMode, MainDisplay, ScreenList
|
||||
from openlp.core.utils.actions import ActionList, CategoryOrder
|
||||
@ -1055,12 +1055,12 @@ class SlideController(QtGui.QWidget):
|
||||
self.playSlidesLoop.setChecked(checked)
|
||||
log.debug(u'onPlaySlidesLoop %s' % checked)
|
||||
if checked:
|
||||
self.playSlidesLoop.setIcon(QtGui.QIcon(u':/media/media_stop.png'))
|
||||
self.playSlidesLoop.setIcon(build_icon(u':/media/media_stop.png'))
|
||||
self.playSlidesLoop.setText(UiStrings().StopPlaySlidesInLoop)
|
||||
self.playSlidesOnce.setIcon(QtGui.QIcon(u':/media/media_time.png'))
|
||||
self.playSlidesOnce.setIcon(build_icon(u':/media/media_time.png'))
|
||||
self.playSlidesOnce.setText(UiStrings().PlaySlidesToEnd)
|
||||
else:
|
||||
self.playSlidesLoop.setIcon(QtGui.QIcon(u':/media/media_time.png'))
|
||||
self.playSlidesLoop.setIcon(build_icon(u':/media/media_time.png'))
|
||||
self.playSlidesLoop.setText(UiStrings().PlaySlidesInLoop)
|
||||
self.playSlidesMenu.setDefaultAction(self.playSlidesLoop)
|
||||
self.playSlidesOnce.setChecked(False)
|
||||
@ -1076,12 +1076,12 @@ class SlideController(QtGui.QWidget):
|
||||
self.playSlidesOnce.setChecked(checked)
|
||||
log.debug(u'onPlaySlidesOnce %s' % checked)
|
||||
if checked:
|
||||
self.playSlidesOnce.setIcon(QtGui.QIcon(u':/media/media_stop.png'))
|
||||
self.playSlidesOnce.setIcon(build_icon(u':/media/media_stop.png'))
|
||||
self.playSlidesOnce.setText(UiStrings().StopPlaySlidesToEnd)
|
||||
self.playSlidesLoop.setIcon(QtGui.QIcon(u':/media/media_time.png'))
|
||||
self.playSlidesLoop.setIcon(build_icon(u':/media/media_time.png'))
|
||||
self.playSlidesLoop.setText(UiStrings().PlaySlidesInLoop)
|
||||
else:
|
||||
self.playSlidesOnce.setIcon(QtGui.QIcon(u':/media/media_time'))
|
||||
self.playSlidesOnce.setIcon(build_icon(u':/media/media_time'))
|
||||
self.playSlidesOnce.setText(UiStrings().PlaySlidesToEnd)
|
||||
self.playSlidesMenu.setDefaultAction(self.playSlidesOnce)
|
||||
self.playSlidesLoop.setChecked(False)
|
||||
|
Loading…
Reference in New Issue
Block a user