ImageViewer: Replace own play/pause icons with those from core

Change-Id: If12eec9940bed026a65196801d064f59c228b4bc
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
Alessandro Portale
2016-04-10 22:26:35 +02:00
parent 9373f76b2a
commit 1ad9a44da8
4 changed files with 2 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

View File

@@ -253,10 +253,10 @@ void ImageViewer::updatePauseAction()
if (isMovie) {
if (d->file->isPaused()) {
d->ui_toolbar.toolButtonPlayPause->setToolTipBase(tr("Play Animation"));
d->ui_toolbar.toolButtonPlayPause->setIcon(QPixmap(QLatin1String(":/imageviewer/images/play-small.png")));
d->ui_toolbar.toolButtonPlayPause->setIcon(Core::Icons::RUN_SMALL.pixmap());
} else {
d->ui_toolbar.toolButtonPlayPause->setToolTipBase(tr("Pause Animation"));
d->ui_toolbar.toolButtonPlayPause->setIcon(QPixmap(QLatin1String(":/imageviewer/images/pause-small.png")));
d->ui_toolbar.toolButtonPlayPause->setIcon(Core::Icons::INTERRUPT_SMALL.pixmap());
}
}
}

View File

@@ -3,8 +3,6 @@
<file>images/outline.png</file>
<file>images/originalsize.png</file>
<file>images/background.png</file>
<file>images/pause-small.png</file>
<file>images/play-small.png</file>
<file>ImageViewer.mimetypes.xml</file>
</qresource>
</RCC>