Files
pilotclient/src/blackgui/components/copyconfigurationdialog.cpp
Lars Toenning 389431ccef refactor: Clean up setup file reader
Previously we already switch to loading the bootstrap file only from the
local file (ec42553910).
This removes the remaining parts of loading the bootstrap file from a
remote location.
This also updates the UI in case of parsing errors of the bootstrap.json.
2024-02-05 22:23:40 +01:00

46 lines
1.4 KiB
C++

// SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "copyconfigurationdialog.h"
#include "ui_copyconfigurationdialog.h"
#include "blackgui/guiapplication.h"
namespace BlackGui::Components
{
CCopyConfigurationDialog::CCopyConfigurationDialog(QWidget *parent) : QDialog(parent),
ui(new Ui::CCopyConfigurationDialog)
{
ui->setupUi(this);
this->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
}
CCopyConfigurationDialog::~CCopyConfigurationDialog()
{}
void CCopyConfigurationDialog::setCacheMode()
{
ui->comp_CopyConfiguration->setCacheMode();
}
void CCopyConfigurationDialog::setSettingsMode()
{
ui->comp_CopyConfiguration->setSettingsMode();
}
void CCopyConfigurationDialog::selectAll()
{
ui->comp_CopyConfiguration->selectAll();
}
void CCopyConfigurationDialog::setNameFilterDisables(bool disable)
{
ui->comp_CopyConfiguration->setNameFilterDisables(disable);
}
bool CCopyConfigurationDialog::event(QEvent *event)
{
if (CGuiApplication::triggerShowHelp(this, event)) { return true; }
return QDialog::event(event);
}
} // ns