diff options
author | Javier <dev.git@javispedro.com> | 2015-06-14 05:29:45 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-06-14 05:29:45 +0200 |
commit | 84b2d78aee986672313111d36c3349e2257d778d (patch) | |
tree | 4f96b0d3ce2cefd9dba1b94fd415682dec68ffcc | |
parent | 2910de560ead3ff65db26292fc27e427a5cf9b5e (diff) | |
download | scribiu-84b2d78aee986672313111d36c3349e2257d778d.tar.gz scribiu-84b2d78aee986672313111d36c3349e2257d778d.zip |
fix icons
-rw-r--r-- | icons/48x48/scribiu.png | bin | 0 -> 1688 bytes | |||
-rw-r--r-- | icons/scalable/scribiu.svg (renamed from scribiu.svg) | 0 | ||||
-rw-r--r-- | mainwindow.ui | 47 | ||||
-rw-r--r-- | scribiu.pro | 9 |
4 files changed, 52 insertions, 4 deletions
diff --git a/icons/48x48/scribiu.png b/icons/48x48/scribiu.png Binary files differnew file mode 100644 index 0000000..ba596ca --- /dev/null +++ b/icons/48x48/scribiu.png diff --git a/scribiu.svg b/icons/scalable/scribiu.svg index 97a453d..97a453d 100644 --- a/scribiu.svg +++ b/icons/scalable/scribiu.svg diff --git a/mainwindow.ui b/mainwindow.ui index 56ad8ad..11f2aa6 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -13,6 +13,9 @@ <property name="windowTitle"> <string>Scribiu</string> </property> + <property name="windowIcon"> + <iconset theme="scribiu"/> + </property> <widget class="QWidget" name="centralWidget"> <layout class="QVBoxLayout" name="verticalLayout"> <property name="spacing"> @@ -340,6 +343,8 @@ <property name="title"> <string>&File</string> </property> + <addaction name="actionExport"/> + <addaction name="separator"/> <addaction name="actionQuit"/> </widget> <addaction name="menuFile"/> @@ -347,7 +352,7 @@ <widget class="QStatusBar" name="statusBar"/> <action name="actionQuit"> <property name="icon"> - <iconset theme="application-quit"> + <iconset theme="application-exit"> <normaloff/> </iconset> </property> @@ -361,6 +366,14 @@ <enum>QAction::QuitRole</enum> </property> </action> + <action name="actionExport"> + <property name="icon"> + <iconset theme="document-save-as"/> + </property> + <property name="text"> + <string>&Export...</string> + </property> + </action> </widget> <layoutdefault spacing="6" margin="11"/> <customwidgets> @@ -577,6 +590,38 @@ </hint> </hints> </connection> + <connection> + <sender>actionQuit</sender> + <signal>triggered()</signal> + <receiver>MainWindow</receiver> + <slot>deleteLater()</slot> + <hints> + <hint type="sourcelabel"> + <x>-1</x> + <y>-1</y> + </hint> + <hint type="destinationlabel"> + <x>358</x> + <y>192</y> + </hint> + </hints> + </connection> + <connection> + <sender>actionExport</sender> + <signal>triggered()</signal> + <receiver>MainWindow</receiver> + <slot>handleExport()</slot> + <hints> + <hint type="sourcelabel"> + <x>-1</x> + <y>-1</y> + </hint> + <hint type="destinationlabel"> + <x>358</x> + <y>192</y> + </hint> + </hints> + </connection> </connections> <slots> <slot>handleNotebookSelected(QModelIndex)</slot> diff --git a/scribiu.pro b/scribiu.pro index c85a260..afb596c 100644 --- a/scribiu.pro +++ b/scribiu.pro @@ -48,10 +48,13 @@ isEmpty(PREFIX) { target.path = $$PREFIX/bin -icon.path = $$PREFIX/share/icons/hicolor/scalable/apps -icon.files = scribiu.svg +icon_scalable.path = $$PREFIX/share/icons/hicolor/scalable/apps +icon_scalable.files = icons/scalable/scribiu.svg + +icon_48.path = $$PREFIX/share/icons/hicolor/48x48/apps +icon_48.files = icons/48x48/scribiu.png desktop.path = $$PREFIX/share/applications desktop.files = scribiu.desktop -INSTALLS += target icon desktop +INSTALLS += target icon_scalable icon_48 desktop |