mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T199, copy configuration as dialog + some utility functions
This commit is contained in:
43
src/blackgui/components/copyconfigurationdialog.cpp
Normal file
43
src/blackgui/components/copyconfigurationdialog.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Copyright (C) 2017
|
||||
* 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 "copyconfigurationdialog.h"
|
||||
#include "ui_copyconfigurationdialog.h"
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
CCopyConfigurationDialog::CCopyConfigurationDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::CCopyConfigurationDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
}
|
||||
|
||||
CCopyConfigurationDialog::~CCopyConfigurationDialog()
|
||||
{ }
|
||||
|
||||
void CCopyConfigurationDialog::setCacheCode()
|
||||
{
|
||||
ui->comp_CopyConfiguration->setCacheMode();
|
||||
}
|
||||
|
||||
void CCopyConfigurationDialog::setSettingsMode()
|
||||
{
|
||||
ui->comp_CopyConfiguration->setSettingsMode();
|
||||
}
|
||||
|
||||
void CCopyConfigurationDialog::selectAll()
|
||||
{
|
||||
ui->comp_CopyConfiguration->selectAll();
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
Reference in New Issue
Block a user