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,21 +1,23 @@
<!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>
<file>images/dialog-warning.png</file> <file>images/dialog-warning.png</file>
<file>images/edit-clear.png</file> <file>images/edit-clear.png</file>
<file>images/go-down.png</file> <file>images/go-down.png</file>
<file>images/help-browser.png</file> <file>images/help-browser.png</file>
<file>images/media-floppy.png</file> <file>images/media-floppy.png</file>
<file>images/preferences-system.png</file> <file>images/preferences-system.png</file>
<file>images/process-stop.png</file> <file>images/process-stop.png</file>
<file>images/text-x-generic.png</file> <file>images/text-x-generic.png</file>
<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>
</qresource> <file>images/go-next.png</file>
<file>images/go-previous.png</file>
</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

@ -1,76 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>HelpWindow</class> <class>HelpWindow</class>
<widget class="QWidget" name="HelpWindow"> <widget class="QWidget" name="HelpWindow">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>714</width> <width>714</width>
<height>454</height> <height>454</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Cppcheck Help</string> <string>Cppcheck Help</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QHBoxLayout" name="toolbarlLayout"> <layout class="QHBoxLayout" name="toolbarlLayout">
<item> <item>
<widget class="QToolButton" name="backButton"> <widget class="QToolButton" name="backButton">
<property name="text"> <property name="toolTip">
<string>Back</string> <string>Go back</string>
</property> </property>
</widget> <property name="text">
</item> <string>Back</string>
<item> </property>
<widget class="QToolButton" name="forwardButton"> <property name="icon">
<property name="text"> <iconset resource="gui.qrc">
<string>Forward</string> <normaloff>:/images/go-previous.png</normaloff>:/images/go-previous.png</iconset>
</property> </property>
</widget> <property name="iconSize">
</item> <size>
<item> <width>22</width>
<widget class="QToolButton" name="homeButton"> <height>22</height>
<property name="text"> </size>
<string>Home</string> </property>
</property> </widget>
</widget> </item>
</item> <item>
<item> <widget class="QToolButton" name="forwardButton">
<widget class="QToolButton" name="zoomInButton"> <property name="toolTip">
<property name="text"> <string>Go forward</string>
<string>Zoom In</string> </property>
</property> <property name="text">
</widget> <string>Forward</string>
</item> </property>
<item> <property name="icon">
<widget class="QToolButton" name="zoomOutButton"> <iconset resource="gui.qrc">
<property name="text"> <normaloff>:/images/go-next.png</normaloff>:/images/go-next.png</iconset>
<string>Zoom Out</string> </property>
</property> <property name="iconSize">
</widget> <size>
</item> <width>22</width>
<item> <height>22</height>
<spacer name="horizontalSpacer"> </size>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> </widget>
</property> </item>
<property name="sizeHint" stdset="0"> <item>
<size> <widget class="QToolButton" name="homeButton">
<width>40</width> <property name="toolTip">
<height>20</height> <string>Start</string>
</size> </property>
</property> <property name="text">
</spacer> <string>Home</string>
</item> </property>
</layout> <property name="icon">
</item> <iconset resource="gui.qrc">
<item> <normaloff>:/images/go-home.png</normaloff>:/images/go-home.png</iconset>
<layout class="QHBoxLayout" name="mainLayout"/> </property>
</item> <property name="iconSize">
</layout> <size>
</widget> <width>22</width>
<resources/> <height>22</height>
<connections/> </size>
</ui> </property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="mainLayout"/>
</item>
</layout>
</widget>
<resources>
<include location="gui.qrc"/>
</resources>
<connections/>
</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