Fix transparency of speed limits icons

Dropped dependency on Qt gif library
This commit is contained in:
Christophe Dumez 2010-04-07 07:59:26 +00:00
parent ef7e2abdaf
commit 31017602fc
7 changed files with 15 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

BIN
src/Icons/slow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
src/Icons/slow_off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -6,12 +6,12 @@
<file>Icons/url.png</file>
<file>Icons/locale.png</file>
<file>Icons/loading.png</file>
<file>Icons/slow_off.gif</file>
<file>Icons/slow.png</file>
<file>Icons/magnet.png</file>
<file>Icons/sphere.png</file>
<file>Icons/slow_off.png</file>
<file>Icons/uparrow.png</file>
<file>Icons/rss16.png</file>
<file>Icons/slow.gif</file>
<file>Icons/skin/checkingUP.png</file>
<file>Icons/skin/bg-handle-horizontal.gif</file>
<file>Icons/skin/play.png</file>

View file

@ -190,10 +190,10 @@ public slots:
void updateAltSpeedsBtn(bool alternative) {
if(alternative) {
altSpeedsBtn->setIcon(QIcon(":/Icons/slow.gif"));
altSpeedsBtn->setIcon(QIcon(":/Icons/slow.png"));
altSpeedsBtn->setToolTip(tr("Click to disable alternative speed limits"));
} else {
altSpeedsBtn->setIcon(QIcon(":/Icons/slow_off.gif"));
altSpeedsBtn->setIcon(QIcon(":/Icons/slow_off.png"));
altSpeedsBtn->setToolTip(tr("Click to enable alternative speed limits"));
}
}

View file

@ -1478,6 +1478,16 @@ QGroupBox {
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string notr="true"/>
</property>
<property name="pixmap">
<pixmap resource="../icons.qrc">:/Icons/slow_off.png</pixmap>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
@ -1588,7 +1598,7 @@ QGroupBox {
<string/>
</property>
<property name="pixmap">
<pixmap resource="../icons.qrc">:/Icons/slow.gif</pixmap>
<pixmap resource="../icons.qrc">:/Icons/slow.png</pixmap>
</property>
<property name="scaledContents">
<bool>false</bool>