aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-11-12 00:37:27 -0800
committerWladimir J. van der Laan <laanwj@gmail.com>2013-11-12 00:37:27 -0800
commitabf34606c0b61d8193288ffefe94acb0c854097e (patch)
tree78aa32f3ba3cfd916dcf43e68a4482110f0a4a7d /src/qt
parent309f783fceade22cb9d2939b5cf7641513fd6881 (diff)
parent4f7d496b82210bf3235c1f8b41bfa821bfbfc54f (diff)
Merge pull request #3238 from Diapolo/guiutil
[Qt] remove GUIUtil::getSaveFileName() default arguments
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/addressbookpage.cpp7
-rw-r--r--src/qt/guiutil.h6
-rw-r--r--src/qt/receiverequestdialog.cpp2
-rw-r--r--src/qt/transactionview.cpp2
-rw-r--r--src/qt/walletview.cpp2
5 files changed, 9 insertions, 10 deletions
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
index 5e82d4d17d..cc3afb2655 100644
--- a/src/qt/addressbookpage.cpp
+++ b/src/qt/addressbookpage.cpp
@@ -263,10 +263,9 @@ void AddressBookPage::done(int retval)
void AddressBookPage::on_exportButton_clicked()
{
// CSV is currently the only supported format
- QString filename = GUIUtil::getSaveFileName(
- this,
- tr("Export Address List"), QString(),
- tr("Comma separated file (*.csv)"));
+ QString filename = GUIUtil::getSaveFileName(this,
+ tr("Export Address List"), QString(),
+ tr("Comma separated file (*.csv)"), NULL);
if (filename.isNull()) return;
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index ddff2de4c4..b86fd9117c 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -65,9 +65,9 @@ namespace GUIUtil
@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.
*/
- QString getSaveFileName(QWidget *parent=0, const QString &caption=QString(),
- const QString &dir=QString(), const QString &filter=QString(),
- QString *selectedSuffixOut=0);
+ QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir,
+ const QString &filter,
+ QString *selectedSuffixOut);
/** Get open filename, convenience wrapper for QFileDialog::getOpenFileName.
diff --git a/src/qt/receiverequestdialog.cpp b/src/qt/receiverequestdialog.cpp
index ad3abb1845..a8a1beee6e 100644
--- a/src/qt/receiverequestdialog.cpp
+++ b/src/qt/receiverequestdialog.cpp
@@ -64,7 +64,7 @@ void QRImageWidget::mousePressEvent(QMouseEvent *event)
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())
{
exportImage().save(fn);
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index d3e2bdf400..428261693d 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -273,7 +273,7 @@ void TransactionView::exportClicked()
// CSV is currently the only supported format
QString filename = GUIUtil::getSaveFileName(this,
tr("Export Transaction History"), QString(),
- tr("Comma separated file (*.csv)"));
+ tr("Comma separated file (*.csv)"), NULL);
if (filename.isNull())
return;
diff --git a/src/qt/walletview.cpp b/src/qt/walletview.cpp
index 2485688531..ea71d58aa6 100644
--- a/src/qt/walletview.cpp
+++ b/src/qt/walletview.cpp
@@ -223,7 +223,7 @@ void WalletView::backupWallet()
{
QString filename = GUIUtil::getSaveFileName(this,
tr("Backup Wallet"), QString(),
- tr("Wallet Data (*.dat)"));
+ tr("Wallet Data (*.dat)"), NULL);
if (filename.isEmpty())
return;