MCPcopy Create free account
hub / github.com/dannagle/PacketSender / on_sslPrivateKeyPathBrowseButton_clicked

Method on_sslPrivateKeyPathBrowseButton_clicked

src/settings.cpp:850–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848}
849
850void Settings::on_sslPrivateKeyPathBrowseButton_clicked()
851{
852 QString home = QDir::homePath();
853 if (QFile::exists(ui->sslPrivateKeyPath->text())) {
854 home = ui->sslPrivateKeyPath->text();
855 }
856
857 QString fileName = QFileDialog::getOpenFileName(this,
858 tr("Choose Key"), home, tr("*.*"));
859
860 if (QFile::exists(fileName)) {
861 ui->sslPrivateKeyPath->setText(fileName);
862 }
863
864}
865
866void Settings::on_documentationButton_clicked()
867{

Callers

nothing calls this directly

Calls 1

setTextMethod · 0.80

Tested by

no test coverage detected