[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53176] Variable Editor shows placeholder inst
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #53176] Variable Editor shows placeholder instead of the variable after executing 'clear all' |
Date: |
Sat, 17 Feb 2018 15:03:42 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #1, bug #53176 (project octave):
"As a side note, if someone can explain me when the following line will be
used in the patch ?
I don't think we will want to print the statement other than a string. (for
which role== Qt::DisplayRole)"
The "subclassing" is described here:
http://doc.qt.io/qt-5/qabstractitemmodel.html#subclassing
of which the following seems most pertinent:
"Most models provide at least a textual representation of item data for the
Qt::DisplayRole, and well-behaved models should also provide valid information
for the Qt::ToolTipRole and Qt::WhatsThisRole. Supporting these roles enables
models to be used with standard Qt views. However, for some models that handle
highly-specialized data, it may be appropriate to provide data only for
user-defined roles."
I think what this means is that Qt entities like QTextEdit handle data in a
general way where some of its features may want a tooltip representation of
the data, or an icon representation of the data, etc. In this case Octave is
being a bit incomplete in just putting and X for any other role other than
displaying it, say, in a QTextEdit window.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53176>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/