mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
- create utilty function CGuiApplication::triggerShowHelp - this function also uses "QWhatsThis::leaveWhatsThisMode" which solves the problem that the help was not properly called a 2nd time - adjusted using classes
61 lines
1.9 KiB
C++
61 lines
1.9 KiB
C++
/* 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"
|
|
#include "blackgui/guiapplication.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::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);
|
|
}
|
|
|
|
void CCopyConfigurationDialog::setWithBootstrapFile(bool withBootstrapFile)
|
|
{
|
|
ui->comp_CopyConfiguration->setWithBootstrapFile(withBootstrapFile);
|
|
}
|
|
|
|
bool CCopyConfigurationDialog::event(QEvent *event)
|
|
{
|
|
if (CGuiApplication::triggerShowHelp(this, event)) { return true; }
|
|
return QDialog::event(event);
|
|
}
|
|
} // ns
|
|
} // ns
|