octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53429] Unnecessary underlining of text in sel


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53429] Unnecessary underlining of text in selected line of Command History
Date: Thu, 22 Mar 2018 16:05:49 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #2, bug #53429 (project octave):

I've looked at both history-dock-widget.cc and file-dock-widget.cc and I don't
see in either case that anything special is done to affect the highlighting. 
It creates a selector model and pretty much uses the default settings.

However, I think what is unique to history-dock-widget.cc is that it has that
extra layer of a Filter [x].  That is, the history list is passed through a
filter first (and even if the Filter is not selected, I think the list goes
through the filter).  That filter appears to have an extra "lineEdit"


    if (m_history_list_view->hasFocus ())
      handle_contextmenu_copy (true);
    if (m_filter->lineEdit ()->hasFocus ()
        && m_filter->lineEdit ()->hasSelectedText ())
      {
        QClipboard *clipboard = QApplication::clipboard ();
        clipboard->setText (m_filter->lineEdit ()->selectedText ());
      }


My initial guess would be that the lineEdit() has some properties which
include underlining.  This would be something beyond the selector-model's
highlighting.  Probably need to find some way of controlling the lineEdit
"underline when highlight".

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53429>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]