forked from openlp/openlp
Correct Icon Path
This commit is contained in:
parent
250fd4e41b
commit
ca7d032aa5
@ -105,6 +105,7 @@ def build_icon(icon):
|
|||||||
ButtonIcon.addPixmap(
|
ButtonIcon.addPixmap(
|
||||||
QtGui.QPixmap(icon), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
QtGui.QPixmap(icon), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
else:
|
else:
|
||||||
|
if len(icon) < 5:
|
||||||
ButtonIcon.addPixmap(QtGui.QPixmap.fromImage(QtGui.QImage(icon)),
|
ButtonIcon.addPixmap(QtGui.QPixmap.fromImage(QtGui.QImage(icon)),
|
||||||
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
elif type(icon) is QtGui.QImage:
|
elif type(icon) is QtGui.QImage:
|
||||||
|
@ -213,26 +213,26 @@ class MediaManagerItem(QtGui.QWidget):
|
|||||||
self.addToolbarButton(
|
self.addToolbarButton(
|
||||||
u'Load %s' % self.PluginNameShort,
|
u'Load %s' % self.PluginNameShort,
|
||||||
u'%s %s' % (self.trUtf8('Load a new'), self.PluginNameVisible),
|
u'%s %s' % (self.trUtf8('Load a new'), self.PluginNameVisible),
|
||||||
u':%s_load.png' % self.IconPath, self.onFileClick)
|
u':/%s_load.png' % self.IconPath, self.onFileClick)
|
||||||
## New Button ##
|
## New Button ##
|
||||||
if self.hasNewIcon:
|
if self.hasNewIcon:
|
||||||
self.addToolbarButton(
|
self.addToolbarButton(
|
||||||
u'New %s' % self.PluginNameShort,
|
u'New %s' % self.PluginNameShort,
|
||||||
u'%s %s' % (self.trUtf8('Add a new'), self.PluginNameVisible),
|
u'%s %s' % (self.trUtf8('Add a new'), self.PluginNameVisible),
|
||||||
u':%s_new.png' % self.IconPath, self.onNewClick)
|
u':/%s_new.png' % self.IconPath, self.onNewClick)
|
||||||
## Edit Button ##
|
## Edit Button ##
|
||||||
if self.hasEditIcon:
|
if self.hasEditIcon:
|
||||||
self.addToolbarButton(
|
self.addToolbarButton(
|
||||||
u'Edit %s' % self.PluginNameShort,
|
u'Edit %s' % self.PluginNameShort,
|
||||||
u'%s %s' % (self.trUtf8('Edit the selected'),
|
u'%s %s' % (self.trUtf8('Edit the selected'),
|
||||||
self.PluginNameVisible),
|
self.PluginNameVisible),
|
||||||
u':%s_edit.png' % self.IconPath, self.onEditClick)
|
u':/%s_edit.png' % self.IconPath, self.onEditClick)
|
||||||
## Delete Button ##
|
## Delete Button ##
|
||||||
if self.hasDeleteIcon:
|
if self.hasDeleteIcon:
|
||||||
self.addToolbarButton(
|
self.addToolbarButton(
|
||||||
u'Delete %s' % self.PluginNameShort,
|
u'Delete %s' % self.PluginNameShort,
|
||||||
self.trUtf8('Delete the selected item'),
|
self.trUtf8('Delete the selected item'),
|
||||||
u':%s_delete.png' % self.IconPath, self.onDeleteClick)
|
u':/%s_delete.png' % self.IconPath, self.onDeleteClick)
|
||||||
## Separator Line ##
|
## Separator Line ##
|
||||||
self.addToolbarSeparator()
|
self.addToolbarSeparator()
|
||||||
## Preview ##
|
## Preview ##
|
||||||
|
Loading…
Reference in New Issue
Block a user