diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2020-01-07 16:03:22 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-01-09 19:49:58 +0100 |
commit | f4fac16e1033b3f8679b94e258e8c5d276167946 (patch) | |
tree | e79fac1b6964f40d82c5a0a91a5bbca08c9d9220 /qt5-layer/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch | |
parent | 888c731f3867e4f7bdcf851e6d81428295ac57eb (diff) |
qt5: do not require meta-qt5
Move all qt5 relevant stuff where it only gets parsed if meta-qt5 is
available.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'qt5-layer/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch')
-rw-r--r-- | qt5-layer/recipes-qt/qedit/files/0001-Options.cpp-provide-default-for-SIDE_PANEL_TOOLBAR_T.patch | 33 |
1 files changed, 33 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 + |