mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
40 lines
1.4 KiB
C++
40 lines
1.4 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 and at http://www.swift-project.org/license.html. 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
|