Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
receivecoinsdialog.cpp
Go to the documentation of this file.
37 ui->reqLabel->setPlaceholderText(tr("Enter a label to associate with the new receiving address"));
55 connect(ui->recentRequestsView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(showMenu(QPoint)));
70 _model->getRecentRequestsTableModel()->sort(RecentRequestsTableModel::Date, Qt::DescendingOrder);
71 connect(_model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
90 columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH, this);
127 if(!model || !model->getOptionsModel() || !model->getAddressTableModel() || !model->getRecentRequestsTableModel())
157 void ReceiveCoinsDialog::recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
167 if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel())
178 if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel())
185 model->getRecentRequestsTableModel()->removeRows(firstIndex.row(), selection.length(), firstIndex.parent());
214 if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel())
231 GUIUtil::setClipboard(model->getRecentRequestsTableModel()->data(firstIndex.child(firstIndex.row(), column), Qt::EditRole).toString());
void stretchColumnWidth(int column)
Definition: guiutil.cpp:813
Model for list of recently generated payment requests / dash: URIs.
Definition: recentrequeststablemodel.h:58
void addNewRequest(const SendCoinsRecipient &recipient)
Definition: recentrequeststablemodel.cpp:165
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)
Definition: recentrequeststablemodel.cpp:207
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: recentrequeststablemodel.cpp:136
void setFont(const std::vector< QWidget *> &vecWidgets, FontWeight weight, int nPointSize, bool fItalic)
Workaround to set correct font styles in all themes since there is a bug in macOS which leads to issu...
Definition: guiutil.cpp:1552
void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Definition: receivecoinsdialog.cpp:157
Definition: addressbookpage.h:12
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
Definition: receivecoinsdialog.h:56
Definition: receiverequestdialog.h:48
AddressTableModel * getAddressTableModel()
Definition: walletmodel.cpp:464
QString formatBitcoinURI(const SendCoinsRecipient &info)
Definition: guiutil.cpp:445
void updateFonts()
Update the font of all widgets where a custom font has been set with GUIUtil::setFont.
Definition: guiutil.cpp:1563
void copyColumnToClipboard(int column)
Definition: receivecoinsdialog.cpp:225
virtual void keyPressEvent(QKeyEvent *event) override
Definition: receivecoinsdialog.cpp:196
void on_recentRequestsView_doubleClicked(const QModelIndex &index)
Definition: receivecoinsdialog.cpp:147
void setInfo(const SendCoinsRecipient &info)
Definition: receiverequestdialog.cpp:124
Definition: walletmodel.h:39
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:221
virtual void resizeEvent(QResizeEvent *event) override
Definition: receivecoinsdialog.cpp:190
const RecentRequestEntry & entry(int row) const
Definition: recentrequeststablemodel.h:86
QVariant data(const QModelIndex &index, int role) const
Definition: recentrequeststablemodel.cpp:52
void on_removeRequestButton_clicked()
Definition: receivecoinsdialog.cpp:176
QString addRow(const QString &type, const QString &label, const QString &address)
Definition: addresstablemodel.cpp:345
RecentRequestsTableModel * getRecentRequestsTableModel()
Definition: walletmodel.cpp:474
void on_receiveButton_clicked()
Definition: receivecoinsdialog.cpp:125
void on_showRequestButton_clicked()
Definition: receivecoinsdialog.cpp:165
void showMenu(const QPoint &point)
Definition: receivecoinsdialog.cpp:235
void setModel(OptionsModel *model)
Definition: receiverequestdialog.cpp:113
ReceiveCoinsDialog(QWidget *parent=0)
Definition: receivecoinsdialog.cpp:22