bugGNU Octave - Bugs: bug #50567, Qt 4.6.2 compiler error on...

 
 

bug #50567: Qt 4.6.2 compiler error on MiddleButton

Submitter:  A.R. Burgers <arb>
Submitted:  Fri 17 Mar 2017 07:38:51 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 Mar 2017 09:55:23 PM UTC, comment #3: 

yes, this changeset fixes the 4.6.2 issue

A.R. Burgers <arb>
Fri 17 Mar 2017 06:05:28 PM UTC, comment #2: 

Changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/ecbd341564fa
should fix the bug. Qt::MiddleButton was introduced in 4.7 but Qt::MidButton already exists in 4.6.

Torsten Lilge <ttl>
Group Member
Fri 17 Mar 2017 04:45:00 PM UTC, comment #1: 

Here's the list of event options:

http://doc.qt.io/qt-4.8/qml-mouseevent.html#button-prop

At the top of that page is the note:

"Since: Qt 4.7"

I would say that the following hunks of code should be conditioned on Qt >= 4.7 then:


$ grep MiddleButton */*/*
src/m-editor/file-editor.cc:       me->button() == Qt::MiddleButton)
src/qtinfo/webinfo.cc:      me->button() == Qt::MiddleButton &&


It would mean those mouse features don't exist for Qt < 4.7, or perhaps there is a more primitive way of getting the same info.

Dan Sebald <sebald>
Fri 17 Mar 2017 07:38:51 AM UTC, original submission:  

Current dev versions (c1362a71fb0e+) give this error:


  CXX      libgui/src/m-editor/libgui_src_libgui_src_la-file-editor.lo
../octave/libgui/src/m-editor/file-editor.cc: In member function 'virtual void file_editor_tab_widget::mousePressEvent(QMouseEvent*)':
../octave/libgui/src/m-editor/file-editor.cc:2483:24: error: 'MiddleButton' is not a member of 'Qt'
        me->button() == Qt::MiddleButton)


I am using gcc 4.9.3, Qt 4.6.2

A.R. Burgers <arb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by arb (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-18 ttl StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2017-03-17 ttl StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code