actionChange was a bit complicated.
Just use plain start / stop. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
3a620f8b92
commit
d4fad7e8eb
2 changed files with 4 additions and 16 deletions
|
@ -233,10 +233,6 @@ void QApple::on_actionStart_triggered()
|
|||
myElapsedTimer.start();
|
||||
actionPause->setEnabled(true);
|
||||
actionStart->setEnabled(false);
|
||||
|
||||
actionChange->setIcon(style()->standardIcon(QStyle::SP_MediaPause));
|
||||
actionChange->disconnect(SIGNAL(triggered(bool)));
|
||||
connect(actionChange, SIGNAL(triggered(bool)), this, SLOT(on_actionPause_triggered()));
|
||||
}
|
||||
|
||||
void QApple::on_actionPause_triggered()
|
||||
|
@ -244,10 +240,6 @@ void QApple::on_actionPause_triggered()
|
|||
stopTimer();
|
||||
actionPause->setEnabled(false);
|
||||
actionStart->setEnabled(true);
|
||||
|
||||
actionChange->setIcon(style()->standardIcon(QStyle::SP_MediaPlay));
|
||||
actionChange->disconnect(SIGNAL(triggered(bool)));
|
||||
connect(actionChange, SIGNAL(triggered(bool)), this, SLOT(on_actionStart_triggered()));
|
||||
}
|
||||
|
||||
void QApple::on_actionX1_triggered()
|
||||
|
|
|
@ -97,7 +97,8 @@
|
|||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionChange"/>
|
||||
<addaction name="actionStart"/>
|
||||
<addaction name="actionPause"/>
|
||||
<addaction name="actionReboot"/>
|
||||
</widget>
|
||||
<action name="actionStart">
|
||||
|
@ -148,19 +149,14 @@
|
|||
<string>&Options...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionChange">
|
||||
<property name="text">
|
||||
<string>Change</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLoad_state">
|
||||
<property name="text">
|
||||
<string>Load state</string>
|
||||
<string>&Load state</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave_state">
|
||||
<property name="text">
|
||||
<string>Save state</string>
|
||||
<string>&Save state</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
|
Loading…
Add table
Reference in a new issue