-Action::Action(GuiView & lyxView, string const & icon, docstring const & text,
- FuncRequest const & func, docstring const & tooltip)
- : QAction(&lyxView), func_(func), lyxView_(lyxView)
-{
- setIcon(QPixmap(icon.c_str()));
- setText(toqstr(text));
- setToolTip(toqstr(tooltip));
- setStatusTip(toqstr(tooltip));
- connect(this, SIGNAL(triggered()), this, SLOT(action()));
- update();
-}
-
-/*
-void Action::setAction(FuncRequest const & func)
-{
- func_=func;
-}
-*/