Merge pull request #4136
01ce711
[Qt] fix Qt slot problem in receivecoinsdialog (Philip Kaufmann)
This commit is contained in:
commit
da257a7b36
2 changed files with 15 additions and 16 deletions
|
@ -5,21 +5,21 @@
|
|||
#include "receivecoinsdialog.h"
|
||||
#include "ui_receivecoinsdialog.h"
|
||||
|
||||
#include "walletmodel.h"
|
||||
#include "bitcoinunits.h"
|
||||
#include "addressbookpage.h"
|
||||
#include "optionsmodel.h"
|
||||
#include "guiutil.h"
|
||||
#include "receiverequestdialog.h"
|
||||
#include "addresstablemodel.h"
|
||||
#include "bitcoinunits.h"
|
||||
#include "guiutil.h"
|
||||
#include "optionsmodel.h"
|
||||
#include "receiverequestdialog.h"
|
||||
#include "recentrequeststablemodel.h"
|
||||
#include "walletmodel.h"
|
||||
|
||||
#include <QAction>
|
||||
#include <QCursor>
|
||||
#include <QMessageBox>
|
||||
#include <QTextDocument>
|
||||
#include <QScrollBar>
|
||||
#include <QItemSelection>
|
||||
#include <QMessageBox>
|
||||
#include <QScrollBar>
|
||||
#include <QTextDocument>
|
||||
|
||||
ReceiveCoinsDialog::ReceiveCoinsDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
|
@ -78,7 +78,7 @@ void ReceiveCoinsDialog::setModel(WalletModel *model)
|
|||
|
||||
connect(tableView->selectionModel(),
|
||||
SIGNAL(selectionChanged(QItemSelection, QItemSelection)), this,
|
||||
SLOT(on_recentRequestsView_selectionChanged(QItemSelection, QItemSelection)));
|
||||
SLOT(recentRequestsView_selectionChanged(QItemSelection, QItemSelection)));
|
||||
// Last 2 columns are set by the columnResizingFixer, when the table geometry is ready.
|
||||
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH);
|
||||
}
|
||||
|
@ -165,8 +165,7 @@ void ReceiveCoinsDialog::on_recentRequestsView_doubleClicked(const QModelIndex &
|
|||
dialog->show();
|
||||
}
|
||||
|
||||
void ReceiveCoinsDialog::on_recentRequestsView_selectionChanged(const QItemSelection &selected,
|
||||
const QItemSelection &deselected)
|
||||
void ReceiveCoinsDialog::recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
|
||||
{
|
||||
// Enable Show/Remove buttons only if anything is selected.
|
||||
bool enable = !ui->recentRequestsView->selectionModel()->selectedRows().isEmpty();
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
namespace Ui {
|
||||
class ReceiveCoinsDialog;
|
||||
}
|
||||
class WalletModel;
|
||||
class OptionsModel;
|
||||
class WalletModel;
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QModelIndex;
|
||||
|
@ -64,9 +64,9 @@ private slots:
|
|||
void on_showRequestButton_clicked();
|
||||
void on_removeRequestButton_clicked();
|
||||
void on_recentRequestsView_doubleClicked(const QModelIndex &index);
|
||||
void on_recentRequestsView_selectionChanged(const QItemSelection &, const QItemSelection &);
|
||||
void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
void updateDisplayUnit();
|
||||
void showMenu(const QPoint &);
|
||||
void showMenu(const QPoint &point);
|
||||
void copyLabel();
|
||||
void copyMessage();
|
||||
void copyAmount();
|
||||
|
|
Loading…
Reference in a new issue