mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Support custom parameters (#76)
* Add the setting icon * Add support for custom parameters * Ignore auto generated files * Update README.md
This commit is contained in:
26
GPClient/settingsdialog.cpp
Normal file
26
GPClient/settingsdialog.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "settingsdialog.h"
|
||||
#include "ui_settingsdialog.h"
|
||||
|
||||
SettingsDialog::SettingsDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::SettingsDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->extraArgsInput->setPlaceholderText("e.g. --name=value");
|
||||
}
|
||||
|
||||
SettingsDialog::~SettingsDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SettingsDialog::setExtraArgs(QString args)
|
||||
{
|
||||
ui->extraArgsInput->setPlainText(args);
|
||||
}
|
||||
|
||||
QString SettingsDialog::extraArgs()
|
||||
{
|
||||
return ui->extraArgsInput->toPlainText().trimmed();
|
||||
}
|
Reference in New Issue
Block a user