swift
Loading...
Searching...
No Matches
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
10namespace swift::gui
11{
12
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
~CShowHideBar()
Destructor.
void toggleShowHide(bool show)
Show or hide cockpit details.
bool isShown() const
Is shown?
CShowHideBar(QWidget *parent=nullptr)
Constructor.
GUI related classes.
void clicked(bool checked)
QFrame(QWidget *parent, Qt::WindowFlags f)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)