aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-14 05:29:45 +0200
committerJavier <dev.git@javispedro.com>2015-06-14 05:29:45 +0200
commit84b2d78aee986672313111d36c3349e2257d778d (patch)
tree4f96b0d3ce2cefd9dba1b94fd415682dec68ffcc
parent2910de560ead3ff65db26292fc27e427a5cf9b5e (diff)
downloadscribiu-84b2d78aee986672313111d36c3349e2257d778d.tar.gz
scribiu-84b2d78aee986672313111d36c3349e2257d778d.zip
fix icons
-rw-r--r--icons/48x48/scribiu.pngbin0 -> 1688 bytes
-rw-r--r--icons/scalable/scribiu.svg (renamed from scribiu.svg)0
-rw-r--r--mainwindow.ui47
-rw-r--r--scribiu.pro9
4 files changed, 52 insertions, 4 deletions
diff --git a/icons/48x48/scribiu.png b/icons/48x48/scribiu.png
new file mode 100644
index 0000000..ba596ca
--- /dev/null
+++ b/icons/48x48/scribiu.png
Binary files differ
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>&amp;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>&amp;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