Files
pilotclient/src/blackgui/components/coresettingsdialog.cpp

39 lines
1.3 KiB
C++

/* Copyright (C) 2016
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
#include "coresettingsdialog.h"
#include "ui_coresettingsdialog.h"
#include "blackgui/guiapplication.h"
#include <QPushButton>
namespace BlackGui
{
namespace Components
{
CCoreSettingsDialog::CCoreSettingsDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::CCoreSettingsDialog)
{
Q_ASSERT(sGui);
ui->setupUi(this);
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
QPushButton *overview = ui->bb_CoreSettingsDialog->button(QDialogButtonBox::Reset);
overview->setText("Overview");
connect(overview, &QPushButton::released, this, &CCoreSettingsDialog::showOverview);
}
CCoreSettingsDialog::~CCoreSettingsDialog()
{ }
void CCoreSettingsDialog::showOverview()
{
ui->comp_SettingsComponent->setSettingsOverviewTab();
}
} // ns
} // ns