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">
<qresource>
<file>icon.png</file>
<file>images/dialog-error.png</file>
<file>images/dialog-information.png</file>
<file>images/dialog-warning.png</file>
<file>images/edit-clear.png</file>
<file>images/go-down.png</file>
<file>images/help-browser.png</file>
<file>images/media-floppy.png</file>
<file>images/preferences-system.png</file>
<file>images/process-stop.png</file>
<file>images/text-x-generic.png</file>
<file>images/view-refresh.png</file>
<file>images/showerrors.png</file>
<file>images/showstylewarnings.png</file>
<file alias="COPYING">../COPYING</file>
<file alias="AUTHORS">../AUTHORS</file>
</qresource>
<RCC>
<qresource prefix="/" >
<file>icon.png</file>
<file>images/dialog-error.png</file>
<file>images/dialog-information.png</file>
<file>images/dialog-warning.png</file>
<file>images/edit-clear.png</file>
<file>images/go-down.png</file>
<file>images/help-browser.png</file>
<file>images/media-floppy.png</file>
<file>images/preferences-system.png</file>
<file>images/process-stop.png</file>
<file>images/text-x-generic.png</file>
<file>images/view-refresh.png</file>
<file>images/showerrors.png</file>
<file>images/showstylewarnings.png</file>
<file alias="COPYING" >../COPYING</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>
</RCC>

View File

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

View File

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