SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
filebrowserpushbutton.cpp
Go to the documentation of this file.
1// SedSAT3 – Sediment Source Assessment Tool, version 3
2// U.S. Geological Survey. See LICENSE.md and DISCLAIMER.md in the repository root.
3
5#include "qdebug.h"
6#include <QFileDialog>
7
8FileBrowserPushButton::FileBrowserPushButton(QWidget *parent) : QPushButton(parent)
9{
10 connect(this,SIGNAL(clicked()),this,SLOT(onPress()));
11}
12
14{
15 QString fileName;
17 fileName = QFileDialog::getSaveFileName(this, tr("Save"), "", tr("Text files (*.txt);; All files (*.*)"),nullptr);
18 else
19 fileName = QFileDialog::getOpenFileName(this, tr("Open"), "", tr("Text files (*.txt);; All files (*.*)"),nullptr);
20
21
22 setText(fileName);
23}
FileBrowserPushButton(QWidget *parent=nullptr)