summaryrefslogtreecommitdiff
path: root/math/octave/patches/patch-libgui_src_workspace-view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'math/octave/patches/patch-libgui_src_workspace-view.cc')
-rw-r--r--math/octave/patches/patch-libgui_src_workspace-view.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/math/octave/patches/patch-libgui_src_workspace-view.cc b/math/octave/patches/patch-libgui_src_workspace-view.cc
new file mode 100644
index 00000000000..4fbf5702f37
--- /dev/null
+++ b/math/octave/patches/patch-libgui_src_workspace-view.cc
@@ -0,0 +1,17 @@
+$NetBSD: patch-libgui_src_workspace-view.cc,v 1.1 2016/08/06 13:03:35 prlw1 Exp $
+
+Changes for compiling with Qt5 instead of Qt4
+
+--- libgui/src/workspace-view.cc.orig 2016-04-20 18:23:57.000000000 +0000
++++ libgui/src/workspace-view.cc
+@@ -98,8 +98,8 @@ workspace_view::workspace_view (QWidget
+ view->horizontalHeader ()->restoreState (
+ settings->value ("workspaceview/column_state").toByteArray ());
+ // Set header properties for sorting
+- view->horizontalHeader ()->setClickable (true);
+- view->horizontalHeader ()->setMovable (true);
++ view->horizontalHeader ()->setSectionsClickable (true);
++ view->horizontalHeader ()->setSectionsMovable (true);
+ view->horizontalHeader ()->setSortIndicator (
+ settings->value ("workspaceview/sort_by_column",0).toInt (),
+ static_cast<Qt::SortOrder>