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

Method closeEvent

bt_editor/mainwindow.cpp:181–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void MainWindow::closeEvent(QCloseEvent *event)
182{
183 QSettings settings;
184
185 settings.setValue("MainWindow/geometry", saveGeometry());
186 settings.setValue("MainWindow/windowState", saveState());
187
188 switch(_current_layout )
189 {
190 case QtNodes::PortLayout::Horizontal: settings.setValue("MainWindow/layout", "HORIZONTAL");
191 break;
192 case QtNodes::PortLayout::Vertical: settings.setValue("MainWindow/layout", "VERTICAL");
193 break;
194 }
195
196 settings.setValue("StartupDialog.Mode", toStr( _current_mode ) );
197
198 QMainWindow::closeEvent(event);
199}
200
201
202GraphicContainer* MainWindow::createTab(const QString &name)

Callers

nothing calls this directly

Calls 1

toStrFunction · 0.85

Tested by

no test coverage detected