MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / EditorDockWidget

Method EditorDockWidget

src/gui/map/map_editor.cpp:4319–4340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4317// ### EditorDockWidget ###
4318
4319EditorDockWidget::EditorDockWidget(const QString& title, QAction* action, MapEditorController* editor, QWidget* parent)
4320: QDockWidget(title, parent)
4321, action(action)
4322, editor(editor)
4323{
4324 if (editor)
4325 {
4326 connect(this, &EditorDockWidget::dockLocationChanged, editor, &MapEditorController::setWindowStateChanged);
4327 }
4328
4329 if (action)
4330 {
4331 connect(toggleViewAction(), &QAction::toggled, action, &QAction::setChecked);
4332 }
4333
4334#ifdef Q_OS_ANDROID
4335 size_grip = new QSizeGrip(this);
4336 size_grip->resize(size_grip->sizeHint());
4337 size_grip->setVisible(isTopLevel());
4338 connect(this, &QDockWidget::topLevelChanged, size_grip, &QWidget::setVisible);
4339#endif
4340}
4341
4342bool EditorDockWidget::event(QEvent* event)
4343{

Callers

nothing calls this directly

Calls 2

sizeHintMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected