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 PyQt4.phonon import Phonon
|
||||||
|
|
||||||
from openlp.core.lib import OpenLPToolbar, Receiver, resize_image, \
|
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.lib.ui import UiStrings, shortcut_action
|
||||||
from openlp.core.ui import HideMode, MainDisplay, ScreenList
|
from openlp.core.ui import HideMode, MainDisplay, ScreenList
|
||||||
from openlp.core.utils.actions import ActionList, CategoryOrder
|
from openlp.core.utils.actions import ActionList, CategoryOrder
|
||||||
@ -1055,12 +1055,12 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.playSlidesLoop.setChecked(checked)
|
self.playSlidesLoop.setChecked(checked)
|
||||||
log.debug(u'onPlaySlidesLoop %s' % checked)
|
log.debug(u'onPlaySlidesLoop %s' % checked)
|
||||||
if 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.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)
|
self.playSlidesOnce.setText(UiStrings().PlaySlidesToEnd)
|
||||||
else:
|
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.playSlidesLoop.setText(UiStrings().PlaySlidesInLoop)
|
||||||
self.playSlidesMenu.setDefaultAction(self.playSlidesLoop)
|
self.playSlidesMenu.setDefaultAction(self.playSlidesLoop)
|
||||||
self.playSlidesOnce.setChecked(False)
|
self.playSlidesOnce.setChecked(False)
|
||||||
@ -1076,12 +1076,12 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.playSlidesOnce.setChecked(checked)
|
self.playSlidesOnce.setChecked(checked)
|
||||||
log.debug(u'onPlaySlidesOnce %s' % checked)
|
log.debug(u'onPlaySlidesOnce %s' % checked)
|
||||||
if 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.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)
|
self.playSlidesLoop.setText(UiStrings().PlaySlidesInLoop)
|
||||||
else:
|
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.playSlidesOnce.setText(UiStrings().PlaySlidesToEnd)
|
||||||
self.playSlidesMenu.setDefaultAction(self.playSlidesOnce)
|
self.playSlidesMenu.setDefaultAction(self.playSlidesOnce)
|
||||||
self.playSlidesLoop.setChecked(False)
|
self.playSlidesLoop.setChecked(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user