23 #if defined (HAVE_CONFIG_H) 37 :
QObject (xparent), m_current (nullptr)
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)));
79 int i =
m_actions.indexOf (qobject_cast<QAction *> (sender ()));
84 for (
int j = 0; j <
m_actions.size (); j++)
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
QList< QAction * > m_actions
void setMode(MouseMode mode)
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
void modeChanged(MouseMode mode)
MouseModeActionGroup(QObject *parent=nullptr)
void actionToggled(bool checked)
~MouseModeActionGroup(void)