GUI: Added icons to the help window.

This commit is contained in:
Daniel Marjamäki 2010-08-23 22:01:01 +02:00
parent 39a69b0871
commit d97b3bd9d9
6 changed files with 127 additions and 98 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0"> <RCC>
<qresource> <qresource prefix="/" >
<file>icon.png</file> <file>icon.png</file>
<file>images/dialog-error.png</file> <file>images/dialog-error.png</file>
<file>images/dialog-information.png</file> <file>images/dialog-information.png</file>
@ -14,8 +14,10 @@
<file>images/view-refresh.png</file> <file>images/view-refresh.png</file>
<file>images/showerrors.png</file> <file>images/showerrors.png</file>
<file>images/showstylewarnings.png</file> <file>images/showstylewarnings.png</file>
<file alias="COPYING" >../COPYING</file> <file alias="COPYING" >../COPYING</file>
<file alias="AUTHORS" >../AUTHORS</file> <file alias="AUTHORS" >../AUTHORS</file>
<file>images/go-home.png</file>
<file>images/go-next.png</file>
<file>images/go-previous.png</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -73,8 +73,8 @@ HelpWindow::HelpWindow(QWidget *parent) :
connect(m_ui->backButton, SIGNAL(clicked()), helpBrowser, SLOT(backward())); connect(m_ui->backButton, SIGNAL(clicked()), helpBrowser, SLOT(backward()));
connect(m_ui->forwardButton, SIGNAL(clicked()), helpBrowser, SLOT(forward())); connect(m_ui->forwardButton, SIGNAL(clicked()), helpBrowser, SLOT(forward()));
connect(m_ui->homeButton, SIGNAL(clicked()), helpBrowser, SLOT(home())); connect(m_ui->homeButton, SIGNAL(clicked()), helpBrowser, SLOT(home()));
connect(m_ui->zoomInButton, SIGNAL(clicked()), helpBrowser, SLOT(zoomIn())); //connect(m_ui->zoomInButton, SIGNAL(clicked()), helpBrowser, SLOT(zoomIn()));
connect(m_ui->zoomOutButton, SIGNAL(clicked()), helpBrowser, SLOT(zoomOut())); //connect(m_ui->zoomOutButton, SIGNAL(clicked()), helpBrowser, SLOT(zoomOut()));
} }
} }

View File

@ -18,36 +18,61 @@
<layout class="QHBoxLayout" name="toolbarlLayout"> <layout class="QHBoxLayout" name="toolbarlLayout">
<item> <item>
<widget class="QToolButton" name="backButton"> <widget class="QToolButton" name="backButton">
<property name="toolTip">
<string>Go back</string>
</property>
<property name="text"> <property name="text">
<string>Back</string> <string>Back</string>
</property> </property>
<property name="icon">
<iconset resource="gui.qrc">
<normaloff>:/images/go-previous.png</normaloff>:/images/go-previous.png</iconset>
</property>
<property name="iconSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="forwardButton"> <widget class="QToolButton" name="forwardButton">
<property name="toolTip">
<string>Go forward</string>
</property>
<property name="text"> <property name="text">
<string>Forward</string> <string>Forward</string>
</property> </property>
<property name="icon">
<iconset resource="gui.qrc">
<normaloff>:/images/go-next.png</normaloff>:/images/go-next.png</iconset>
</property>
<property name="iconSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="homeButton"> <widget class="QToolButton" name="homeButton">
<property name="toolTip">
<string>Start</string>
</property>
<property name="text"> <property name="text">
<string>Home</string> <string>Home</string>
</property> </property>
</widget> <property name="icon">
</item> <iconset resource="gui.qrc">
<item> <normaloff>:/images/go-home.png</normaloff>:/images/go-home.png</iconset>
<widget class="QToolButton" name="zoomInButton">
<property name="text">
<string>Zoom In</string>
</property> </property>
</widget> <property name="iconSize">
</item> <size>
<item> <width>22</width>
<widget class="QToolButton" name="zoomOutButton"> <height>22</height>
<property name="text"> </size>
<string>Zoom Out</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -71,6 +96,8 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<resources/> <resources>
<include location="gui.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

BIN
gui/images/go-home.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

BIN
gui/images/go-next.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 930 B

BIN
gui/images/go-previous.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 955 B