summaryrefslogtreecommitdiff
path: root/qt5-layer/recipes-qt/qedit/files
diff options
context:
space:
mode:
Diffstat (limited to 'qt5-layer/recipes-qt/qedit/files')
-rw-r--r--qt5-layer/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch33
-rw-r--r--qt5-layer/recipes-qt/qedit/files/qedit.desktop9
2 files changed, 42 insertions, 0 deletions
diff --git a/qt5-layer/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch b/qt5-layer/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch
new file mode 100644
index 0000000..7c7f563
--- /dev/null
+++ b/qt5-layer/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch
@@ -0,0 +1,33 @@
+From 0c9e80df71bde69179edcb6847eb381eeec5cf7c Mon Sep 17 00:00:00 2001
+From: Max Krummenacher <max.krummenacher@toradex.com>
+Date: Tue, 26 Dec 2017 20:05:37 +0100
+Subject: [PATCH] Options.cpp: provide default for
+ SIDE_PANEL_TOOLBAR_TEXT_POSITION
+
+prevents the following:
+
+| # qedit
+| 2017/12/26 17:24:23 Options::_find - invalid option: SIDE_PANEL_TOOLBAR_TEXT_POSITION
+| Segmentation fault (core dumped)
+
+Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
+---
+ base/Options.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/base/Options.cpp b/base/Options.cpp
+index 2fb2c9f..cd099c6 100644
+--- a/base/Options.cpp
++++ b/base/Options.cpp
+@@ -62,6 +62,8 @@ void Options::installDefaultOptions()
+ set( "FIXED_FONT_NAME", "Sans Serif,10" );
+ set( "FONT_NAME", "Monospace,10" );
+
++ set<int>( "SIDE_PANEL_TOOLBAR_TEXT_POSITION", 0 );
++
+ // toolbars default configuration
+ set<int>( "TOOLBUTTON_ICON_SIZE", 0 );
+ set<int>( "TOOLBUTTON_TEXT_POSITION", -1 );
+--
+2.13.6
+
diff --git a/qt5-layer/recipes-qt/qedit/files/qedit.desktop b/qt5-layer/recipes-qt/qedit/files/qedit.desktop
new file mode 100644
index 0000000..14f5669
--- /dev/null
+++ b/qt5-layer/recipes-qt/qedit/files/qedit.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=QEdit
+Comment=A Qt Text editor
+Exec=qedit %F
+Terminal=false
+Type=Application
+MimeType=text/plain;
+Icon=qedit
+Categories=Utility;TextEditor;Qt; \ No newline at end of file