[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53260] Variable Editor: needs an icon
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #53260] Variable Editor: needs an icon |
Date: |
Fri, 2 Mar 2018 17:35:49 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #4, bug #53260 (project octave):
I've pull the latest tip and the icon isn't working. That name change to
VariableEditor is important because the association between the icon and the
undocked widget is done with this nice automated routine from main-window.cc:
QString icon;
foreach (octave_dock_widget *widget, dock_widget_list ())
{
QString name = widget->objectName ();
if (! name.isEmpty ())
{ // if children has a name
icon = widget_icon_data[icon_set_found].path; // prefix |
octave-logo
if (widget_icon_data[icon_set_found].name != "NONE")
icon += name + ".png"; // add widget name and ext.
widget->setWindowIcon (QIcon (icon));
}
}
Object name FileEditor matches graphic_logo_FileEditor.png. Object name
HistoryDockWidget matches graphic_logo_HistoryDockWidget.png. Etc.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53260>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/