MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / on_toolButtonEditor_clicked

Method on_toolButtonEditor_clicked

bt_editor/startup_dialog.cpp:48–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void StartupDialog::on_toolButtonEditor_clicked()
49{
50 _mode = GraphicMode::EDITOR;
51 updateCurrentMode();
52
53 QTime now = QTime::currentTime();
54 static QTime prev_click_time = now;
55 int ms_delay = prev_click_time.msecsTo( now );
56 if( ms_delay > 0 && ms_delay <= QApplication::doubleClickInterval())
57 {
58 on_toolButtonStart_clicked();
59 }
60 else{
61 prev_click_time = now;
62 }
63}
64
65void StartupDialog::on_toolButtonMonitor_clicked()
66{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected