mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
[Qt] remove GUIUtil::getSaveFileName() default arguments
- harmonize function with GUIUtil::getOpenFileName() - also make PNG Image singular (grammar)
This commit is contained in:
parent
a6aa179699
commit
4f7d496b82
@ -263,10 +263,9 @@ void AddressBookPage::done(int retval)
|
|||||||
void AddressBookPage::on_exportButton_clicked()
|
void AddressBookPage::on_exportButton_clicked()
|
||||||
{
|
{
|
||||||
// CSV is currently the only supported format
|
// CSV is currently the only supported format
|
||||||
QString filename = GUIUtil::getSaveFileName(
|
QString filename = GUIUtil::getSaveFileName(this,
|
||||||
this,
|
tr("Export Address List"), QString(),
|
||||||
tr("Export Address List"), QString(),
|
tr("Comma separated file (*.csv)"), NULL);
|
||||||
tr("Comma separated file (*.csv)"));
|
|
||||||
|
|
||||||
if (filename.isNull()) return;
|
if (filename.isNull()) return;
|
||||||
|
|
||||||
|
@ -65,9 +65,9 @@ namespace GUIUtil
|
|||||||
@param[out] selectedSuffixOut Pointer to return the suffix (file type) that was selected (or 0).
|
@param[out] selectedSuffixOut Pointer to return the suffix (file type) that was selected (or 0).
|
||||||
Can be useful when choosing the save file format based on suffix.
|
Can be useful when choosing the save file format based on suffix.
|
||||||
*/
|
*/
|
||||||
QString getSaveFileName(QWidget *parent=0, const QString &caption=QString(),
|
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir,
|
||||||
const QString &dir=QString(), const QString &filter=QString(),
|
const QString &filter,
|
||||||
QString *selectedSuffixOut=0);
|
QString *selectedSuffixOut);
|
||||||
|
|
||||||
/** Get open filename, convenience wrapper for QFileDialog::getOpenFileName.
|
/** Get open filename, convenience wrapper for QFileDialog::getOpenFileName.
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ void QRImageWidget::mousePressEvent(QMouseEvent *event)
|
|||||||
|
|
||||||
void QRImageWidget::saveImage()
|
void QRImageWidget::saveImage()
|
||||||
{
|
{
|
||||||
QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Images (*.png)"));
|
QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Image (*.png)"), NULL);
|
||||||
if (!fn.isEmpty())
|
if (!fn.isEmpty())
|
||||||
{
|
{
|
||||||
exportImage().save(fn);
|
exportImage().save(fn);
|
||||||
|
@ -273,7 +273,7 @@ void TransactionView::exportClicked()
|
|||||||
// CSV is currently the only supported format
|
// CSV is currently the only supported format
|
||||||
QString filename = GUIUtil::getSaveFileName(this,
|
QString filename = GUIUtil::getSaveFileName(this,
|
||||||
tr("Export Transaction History"), QString(),
|
tr("Export Transaction History"), QString(),
|
||||||
tr("Comma separated file (*.csv)"));
|
tr("Comma separated file (*.csv)"), NULL);
|
||||||
|
|
||||||
if (filename.isNull())
|
if (filename.isNull())
|
||||||
return;
|
return;
|
||||||
|
@ -223,7 +223,7 @@ void WalletView::backupWallet()
|
|||||||
{
|
{
|
||||||
QString filename = GUIUtil::getSaveFileName(this,
|
QString filename = GUIUtil::getSaveFileName(this,
|
||||||
tr("Backup Wallet"), QString(),
|
tr("Backup Wallet"), QString(),
|
||||||
tr("Wallet Data (*.dat)"));
|
tr("Wallet Data (*.dat)"), NULL);
|
||||||
|
|
||||||
if (filename.isEmpty())
|
if (filename.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user