Use icon from theme. Move icons to internal theme for Windows systems.

--HG--
branch : DialogTools
This commit is contained in:
dismine 2014-06-01 13:50:48 +03:00
parent 59ebe093c8
commit db96431484
10 changed files with 9 additions and 10 deletions

View file

@ -79,14 +79,14 @@ void DialogEndLine::DeployFormulaTextEdit()
if (ui->plainTextEditFormula->height() < DIALOGENDLINE_MAX_FORMULA_HEIGHT)
{
ui->plainTextEditFormula->setFixedHeight(DIALOGENDLINE_MAX_FORMULA_HEIGHT);
QIcon icon(":/icon/16x16/go-next.png");
ui->pushButtonGrowLength->setIcon(icon);
//Set icon from theme (internal for Windows system)
ui->pushButtonGrowLength->setIcon(QIcon::fromTheme("go-next"));
}
else
{
ui->plainTextEditFormula->setFixedHeight(this->formulaBaseHeight);
QIcon icon(":/icon/16x16/go-down.png");
ui->pushButtonGrowLength->setIcon(icon);
//Set icon from theme (internal for Windows system)
ui->pushButtonGrowLength->setIcon(QIcon::fromTheme("go-down"));
}
}

View file

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>486</width>
<height>522</height>
<height>586</height>
</rect>
</property>
<property name="sizePolicy">
@ -186,9 +186,7 @@
<string/>
</property>
<property name="icon">
<iconset resource="../../share/resources/icon.qrc">
<normaloff>:/icon/16x16/go-down.png</normaloff>
<activeoff>:/icon/16x16/go-next.png</activeoff>:/icon/16x16/go-down.png</iconset>
<iconset theme="go-down"/>
</property>
<property name="iconSize">
<size>

View file

@ -52,7 +52,5 @@
<file>icon/flags/uk.png</file>
<file>icon/Graduation.png</file>
<file>icon/individual.png</file>
<file>icon/16x16/go-down.png</file>
<file>icon/16x16/go-next.png</file>
</qresource>
</RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 829 B

View file

Before

Width:  |  Height:  |  Size: 756 B

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -34,5 +34,8 @@
<file alias="24x24/actions/list-add.png">icons/win.icon.theme/24x24/actions/list-add.png</file>
<file alias="32x32/actions/list-remove.png">icons/win.icon.theme/32x32/actions/list-remove.png</file>
<file alias="32x32/actions/list-add.png">icons/win.icon.theme/32x32/actions/list-add.png</file>
<file>icons/win.icon.theme/16x16/actions/go-down.png</file>
<file>icons/win.icon.theme/24x24/actions/go-down.png</file>
<file>icons/win.icon.theme/32x32/actions/go-down.png</file>
</qresource>
</RCC>