pkgsrc/math/octave/patches/patch-libgui_qterminal_libqterminal_QTerminal.cc
dbj e739676bb0 update to octave-4.0.0
Octave 4.0 is a major new release with many new features,
including a graphical user interface, support for classdef
object-oriented programming, better compatibility with Matlab,
and many new and improved functions.

A list of important user-visible changes is availble at
http://octave.org/NEWS-4.0.html, by selecting the Release Notes
item in the News menu of the GUI, or by typing news at the Octave
command prompt.
2016-02-16 04:21:40 +00:00

19 lines
776 B
C++

$NetBSD: patch-libgui_qterminal_libqterminal_QTerminal.cc,v 1.1 2016/02/16 04:21:40 dbj Exp $
Changes for compiling with Qt5 instead of Qt4
--- libgui/qterminal/libqterminal/QTerminal.cc.orig 2015-05-23 14:21:53.000000000 +0000
+++ libgui/qterminal/libqterminal/QTerminal.cc
@@ -144,10 +144,10 @@ QTerminal::notice_settings (const QSetti
copy = QKeySequence::Copy; // settings->value () does not work!
// dis- or enable extra interrupt action
- QKeySequence ctrl;
+ Qt::KeyboardModifiers ctrl;
ctrl = Qt::ControlModifier;
- bool extra_ir_action = (copy != QKeySequence (ctrl + Qt::Key_C));
+ bool extra_ir_action = (copy != QKeySequence (ctrl | Qt::Key_C));
_interrupt_action->setEnabled (extra_ir_action);
has_extra_interrupt (extra_ir_action);