File indexing completed on 2024-04-28 03:43:18
0001 /* 0002 SPDX-FileCopyrightText: 2024 Hy Murveit <hy@murveit.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "sequenceeditor.h" 0008 0009 #include "capture.h" 0010 #include <kstars_debug.h> 0011 0012 namespace Ekos 0013 { 0014 0015 SequenceEditor::SequenceEditor(QWidget * parent) : QDialog(parent) 0016 { 0017 #ifdef Q_OS_OSX 0018 setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint); 0019 #endif 0020 setupUi(this); 0021 0022 m_capture.reset(new Capture(true)); 0023 sequenceEditorLayout->insertWidget(0, m_capture.get()); 0024 } 0025 void SequenceEditor::showEvent(QShowEvent* event) 0026 { 0027 QWidget::showEvent(event); 0028 m_capture->onStandAloneShow(event); 0029 } 0030 }