38 :
Object (go, action), m_separator (0)
43 action->setVisible (tp.is_visible ());
45 action->setIcon (QIcon (QPixmap::fromImage (img)));
46 if (tp.is_separator ())
52 action->setEnabled (tp.is_enable ());
56 w->insertAction (w->actions ().back (), action);
71 QAction* action = qWidget<QAction> ();
76 action->setVisible (tp.is_visible ());
78 m_separator->setVisible (tp.is_visible ());
81 case T::properties::ID_TOOLTIPSTRING:
85 case T::properties::ID_CDATA:
89 action->setIcon (QIcon (QPixmap::fromImage (img)));
93 case T::properties::ID_SEPARATOR:
94 if (tp.is_separator ())
98 m_separator =
new QAction (action);
99 m_separator->setSeparator (
true);
100 m_separator->setVisible (tp.is_visible ());
104 w->insertAction (action, m_separator);
115 case T::properties::ID_ENABLE:
116 action->setEnabled (tp.is_enable ());
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)
virtual void update(int pId)
T::properties & properties(graphics_object obj)