MCPcopy Create free account
hub / github.com/Prograda/Skybolt / MainWindow

Method MainWindow

src/SkyboltExamples/ScenarioViewerApp/MainWindow.cpp:12–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <QToolBar>
11
12MainWindow::MainWindow(QPointer<QSettings> settings, QWidget *parent) :
13 QMainWindow(parent), mSettings(settings)
14{
15 resize(1200, 800);
16 readSettings();
17
18 // Add dummy toolbar to create a bap between the file menu and the main window content
19 QToolBar *spacer = new QToolBar(this);
20 spacer->setObjectName("MainWindowToolBarSpacer");
21 spacer->setStyleSheet("QToolBar { border: none; }");
22 spacer->setFixedHeight(10); // Adjust for desired gap size
23 spacer->setMovable(false);
24 spacer->setFloatable(false);
25 spacer->setAllowedAreas(Qt::TopToolBarArea);
26 addToolBar(Qt::TopToolBarArea, spacer);
27}
28
29void MainWindow::closeEvent(QCloseEvent *event)
30{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected