Skip to content

Commit

Permalink
Main Window Docks: hide selected docks
Browse files Browse the repository at this point in the history
The main window becomes large after the installation therefore
selected docks are not displayed.
  • Loading branch information
foldynl committed Sep 20, 2023
1 parent 5347458 commit ae14c10
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ MainWindow::MainWindow(QWidget* parent) :

ui->setupUi(this);

/* the block below is present because the main window
* becomes large after the instalation
*/
ui->wsjtxDockWidget->hide();
ui->rotatorDockWidget->hide();
ui->bandmapDockWidget->hide();
ui->mapDockWidget->hide();
ui->dxDockWidget->hide();
ui->rigDockWidget->hide();
ui->cwConsoleDockWidget->hide();
ui->chatDockWidget->hide();

setupLayoutMenu();

ui->cwconsoleWidget->registerContactWidget(ui->newContactWidget);
Expand All @@ -56,7 +68,7 @@ MainWindow::MainWindow(QWidget* parent) :

QSettings settings;

// restore the window geometry
// restore the window geometry and state
restoreGeometry(settings.value("geometry").toByteArray());
restoreState(settings.value("windowState").toByteArray());

Expand Down

0 comments on commit ae14c10

Please sign in to comment.