38 :
Object (go, action), m_separator (nullptr)
43 action->setVisible (tp.is_visible ());
45 action->setIcon (QIcon (QPixmap::fromImage (img)));
46 if (tp.is_separator ())
48 m_separator =
new QAction (action);
49 m_separator->setSeparator (
true);
50 m_separator->setVisible (tp.is_visible ());
52 action->setEnabled (tp.is_enable ());
56 w->insertAction (
w->actions ().back (), action);
58 w->insertAction (action, m_separator);
70 QAction *action = qWidget<QAction> ();
74 case base_properties::ID_VISIBLE:
75 action->setVisible (tp.is_visible ());
77 m_separator->setVisible (tp.is_visible ());
80 case T::properties::ID_TOOLTIPSTRING:
84 case T::properties::ID_CDATA:
88 action->setIcon (QIcon (QPixmap::fromImage (img)));
92 case T::properties::ID_SEPARATOR:
93 if (tp.is_separator ())
97 m_separator =
new QAction (action);
98 m_separator->setSeparator (
true);
99 m_separator->setVisible (tp.is_visible ());
103 w->insertAction (action, m_separator);
110 m_separator =
nullptr;
114 case T::properties::ID_ENABLE:
115 action->setEnabled (tp.is_enable ());
119 Object::update (pId);
QString fromStdString(const std::string &s)
std::complex< double > w(std::complex< double > z, double relerr=0)
QImage makeImageFromCData(const octave_value &v, int width, int height)
T::properties & properties(graphics_object obj)