37 :
QObject (xparent), m_current (0)
39 m_actions.append (
new QAction (QIcon (
":/images/rotate.png"),
40 tr (
"Rotate"),
this));
41 QAction *zoom_in =
new QAction (
"Z+",
this);
42 zoom_in->setToolTip (tr (
"Zoom In"));
45 QAction *zoom_out =
new QAction (
"Z-",
this);
46 zoom_out->setToolTip (tr (
"Zoom Out"));
49 m_actions.append (
new QAction (QIcon (
":/images/pan.png"),
51 m_actions.append (
new QAction (QIcon::fromTheme (
"insert-text"),
52 tr (
"Insert Text"),
this));
53 m_actions.append (
new QAction (QIcon (
":/images/select.png"),
54 tr (
"Select"),
this));
58 a->setCheckable (
true);
59 connect (a, SIGNAL (toggled (
bool)),
this, SLOT (
actionToggled (
bool)));
80 int i =
m_actions.indexOf (qobject_cast<QAction*> (sender ()));
85 for (
int j = 0; j <
m_actions.size (); j++)
102 for (
int i = 0; i <
m_actions.size (); i++)
MouseModeActionGroup(QObject *parent=0)
QList< QAction * > m_actions
void setMode(MouseMode mode)
void modeChanged(MouseMode mode)
void actionToggled(bool checked)
~MouseModeActionGroup(void)