swift
showhidebar.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
4 #include "gui/showhidebar.h"
5 
6 #include <QPushButton>
7 
8 #include "ui_showhidebar.h"
9 
10 namespace swift::gui
11 {
12 
13  CShowHideBar::CShowHideBar(QWidget *parent) : QFrame(parent), ui(new Ui::CShowHideBar)
14  {
15  ui->setupUi(this);
16  connect(ui->pb_ShowHidePushButton, &QPushButton::clicked, this, &CShowHideBar::toggleShowHide);
17  }
18 
20 
21  bool CShowHideBar::isShown() const { return ui->pb_ShowHidePushButton->isChecked(); }
22 } // namespace swift::gui
Show or hide (expand / collapse) another section.
Definition: showhidebar.h:23
virtual ~CShowHideBar()
Destructor.
Definition: showhidebar.cpp:19
void toggleShowHide(bool show)
Show or hide cockpit details.
bool isShown() const
Is shown?
Definition: showhidebar.cpp:21
CShowHideBar(QWidget *parent=nullptr)
Constructor.
Definition: showhidebar.cpp:13
GUI related classes.