Skip to content

Commit

Permalink
added actions to the toolbar and assigned icons to the actions
Browse files Browse the repository at this point in the history
icons were added to all the current actions
the new, open and save actions were added to the toolbar

note: the icons were obtained from the Oxygen (KDE) icon set and
renamed appropriately for the menu/menu item except for the help
about Qt icon, which was obtained from the Qt SDK
  • Loading branch information
thunder422 committed Jan 1, 2013
1 parent ba9ee1b commit a2d2675
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ibcp.qrc
@@ -1,5 +1,12 @@
<RCC>
<qresource prefix="/">
<file>images/ibcp.png</file>
<file>images/file-new.png</file>
<file>images/file-open.png</file>
<file>images/file-save.png</file>
<file>images/file-save-as.png</file>
<file>images/file-exit.png</file>
<file>images/help-about.png</file>
<file>images/help-about-qt.png</file>
</qresource>
</RCC>
Binary file added images/file-exit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/file-new.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/file-open.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/file-save-as.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/file-save.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/help-about-qt.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/help-about.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions mainwindow.ui
Expand Up @@ -55,9 +55,16 @@
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionNew"/>
<addaction name="actionOpen"/>
<addaction name="actionSave"/>
</widget>
<widget class="QStatusBar" name="statusBar"/>
<action name="actionNew">
<property name="icon">
<iconset resource="ibcp.qrc">
<normaloff>:/images/file-new.png</normaloff>:/images/file-new.png</iconset>
</property>
<property name="text">
<string>&amp;New</string>
</property>
Expand All @@ -72,6 +79,10 @@
</property>
</action>
<action name="actionOpen">
<property name="icon">
<iconset resource="ibcp.qrc">
<normaloff>:/images/file-open.png</normaloff>:/images/file-open.png</iconset>
</property>
<property name="text">
<string>&amp;Open...</string>
</property>
Expand All @@ -83,6 +94,10 @@
</property>
</action>
<action name="actionSave">
<property name="icon">
<iconset resource="ibcp.qrc">
<normaloff>:/images/file-save.png</normaloff>:/images/file-save.png</iconset>
</property>
<property name="text">
<string>&amp;Save</string>
</property>
Expand All @@ -94,6 +109,10 @@
</property>
</action>
<action name="actionSaveAs">
<property name="icon">
<iconset resource="ibcp.qrc">
<normaloff>:/images/file-save-as.png</normaloff>:/images/file-save-as.png</iconset>
</property>
<property name="text">
<string>Save &amp;As...</string>
</property>
Expand All @@ -105,6 +124,10 @@
</property>
</action>
<action name="actionExit">
<property name="icon">
<iconset resource="ibcp.qrc">
<normaloff>:/images/file-exit.png</normaloff>:/images/file-exit.png</iconset>
</property>
<property name="text">
<string>E&amp;xit</string>
</property>
Expand All @@ -116,6 +139,10 @@
</property>
</action>
<action name="actionAbout">
<property name="icon">
<iconset resource="ibcp.qrc">
<normaloff>:/images/help-about.png</normaloff>:/images/help-about.png</iconset>
</property>
<property name="text">
<string>&amp;About</string>
</property>
Expand All @@ -124,6 +151,10 @@
</property>
</action>
<action name="actionAboutQt">
<property name="icon">
<iconset resource="ibcp.qrc">
<normaloff>:/images/help-about-qt.png</normaloff>:/images/help-about-qt.png</iconset>
</property>
<property name="text">
<string>About &amp;Qt</string>
</property>
Expand Down

0 comments on commit a2d2675

Please sign in to comment.