mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-23 07:15:29 +01:00
refactor: Use override for non-final overriders
This commit is contained in:
parent
f54753293f
commit
1551cea2d5
35 changed files with 106 additions and 105 deletions
|
@ -35,7 +35,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool filterAcceptsRow(int row, const QModelIndex& parent) const
|
bool filterAcceptsRow(int row, const QModelIndex& parent) const override
|
||||||
{
|
{
|
||||||
auto model = sourceModel();
|
auto model = sourceModel();
|
||||||
auto label = model->index(row, AddressTableModel::Label, parent);
|
auto label = model->index(row, AddressTableModel::Label, parent);
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
const QString &getReturnValue() const { return returnValue; }
|
const QString &getReturnValue() const { return returnValue; }
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void done(int retval);
|
void done(int retval) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::AddressBookPage *ui;
|
Ui::AddressBookPage *ui;
|
||||||
|
|
|
@ -52,14 +52,14 @@ public:
|
||||||
|
|
||||||
/** @name Methods overridden from QAbstractTableModel
|
/** @name Methods overridden from QAbstractTableModel
|
||||||
@{*/
|
@{*/
|
||||||
int rowCount(const QModelIndex &parent) const;
|
int rowCount(const QModelIndex &parent) const override;
|
||||||
int columnCount(const QModelIndex &parent) const;
|
int columnCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
bool setData(const QModelIndex &index, const QVariant &value, int role);
|
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||||
QModelIndex index(int row, int column, const QModelIndex &parent) const;
|
QModelIndex index(int row, int column, const QModelIndex &parent) const override;
|
||||||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
|
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
/* Add an address to the model.
|
/* Add an address to the model.
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
explicit AskPassphraseDialog(Mode mode, QWidget *parent, SecureString* passphrase_out = nullptr);
|
explicit AskPassphraseDialog(Mode mode, QWidget *parent, SecureString* passphrase_out = nullptr);
|
||||||
~AskPassphraseDialog();
|
~AskPassphraseDialog();
|
||||||
|
|
||||||
void accept();
|
void accept() override;
|
||||||
|
|
||||||
void setModel(WalletModel *model);
|
void setModel(WalletModel *model);
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ private Q_SLOTS:
|
||||||
void toggleShowPassword(bool);
|
void toggleShowPassword(bool);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool event(QEvent *event);
|
bool event(QEvent *event) override;
|
||||||
bool eventFilter(QObject *object, QEvent *event);
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BITCOIN_QT_ASKPASSPHRASEDIALOG_H
|
#endif // BITCOIN_QT_ASKPASSPHRASEDIALOG_H
|
||||||
|
|
|
@ -56,16 +56,17 @@ public:
|
||||||
|
|
||||||
/** @name Methods overridden from QAbstractTableModel
|
/** @name Methods overridden from QAbstractTableModel
|
||||||
@{*/
|
@{*/
|
||||||
int rowCount(const QModelIndex &parent) const;
|
int rowCount(const QModelIndex &parent) const override;
|
||||||
int columnCount(const QModelIndex &parent) const;
|
int columnCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||||
QModelIndex index(int row, int column, const QModelIndex &parent) const;
|
QModelIndex index(int row, int column, const QModelIndex &parent) const override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
void sort(int column, Qt::SortOrder order);
|
void sort(int column, Qt::SortOrder order) override;
|
||||||
bool shouldShow();
|
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
bool shouldShow();
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void refresh();
|
void refresh();
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ class BitcoinAddressEntryValidator : public QValidator
|
||||||
public:
|
public:
|
||||||
explicit BitcoinAddressEntryValidator(QObject *parent);
|
explicit BitcoinAddressEntryValidator(QObject *parent);
|
||||||
|
|
||||||
State validate(QString &input, int &pos) const;
|
State validate(QString &input, int &pos) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Bitcoin address widget validator, checks for a valid bitcoin address.
|
/** Bitcoin address widget validator, checks for a valid bitcoin address.
|
||||||
|
@ -29,7 +29,7 @@ class BitcoinAddressCheckValidator : public QValidator
|
||||||
public:
|
public:
|
||||||
explicit BitcoinAddressCheckValidator(QObject *parent);
|
explicit BitcoinAddressCheckValidator(QObject *parent);
|
||||||
|
|
||||||
State validate(QString &input, int &pos) const;
|
State validate(QString &input, int &pos) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BITCOIN_QT_BITCOINADDRESSVALIDATOR_H
|
#endif // BITCOIN_QT_BITCOINADDRESSVALIDATOR_H
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
connect(lineEdit(), &QLineEdit::textEdited, this, &AmountSpinBox::valueChanged);
|
connect(lineEdit(), &QLineEdit::textEdited, this, &AmountSpinBox::valueChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
QValidator::State validate(QString &text, int &pos) const
|
QValidator::State validate(QString &text, int &pos) const override
|
||||||
{
|
{
|
||||||
if(text.isEmpty())
|
if(text.isEmpty())
|
||||||
return QValidator::Intermediate;
|
return QValidator::Intermediate;
|
||||||
|
@ -41,7 +41,7 @@ public:
|
||||||
return valid ? QValidator::Intermediate : QValidator::Invalid;
|
return valid ? QValidator::Intermediate : QValidator::Invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
void fixup(QString &input) const
|
void fixup(QString &input) const override
|
||||||
{
|
{
|
||||||
bool valid;
|
bool valid;
|
||||||
CAmount val;
|
CAmount val;
|
||||||
|
@ -87,7 +87,7 @@ public:
|
||||||
m_max_amount = value;
|
m_max_amount = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void stepBy(int steps)
|
void stepBy(int steps) override
|
||||||
{
|
{
|
||||||
bool valid = false;
|
bool valid = false;
|
||||||
CAmount val = value(&valid);
|
CAmount val = value(&valid);
|
||||||
|
@ -114,7 +114,7 @@ public:
|
||||||
singleStep = step;
|
singleStep = step;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize minimumSizeHint() const
|
QSize minimumSizeHint() const override
|
||||||
{
|
{
|
||||||
if(cachedMinimumSizeHint.isEmpty())
|
if(cachedMinimumSizeHint.isEmpty())
|
||||||
{
|
{
|
||||||
|
@ -175,7 +175,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool event(QEvent *event)
|
bool event(QEvent *event) override
|
||||||
{
|
{
|
||||||
if (event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease)
|
if (event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease)
|
||||||
{
|
{
|
||||||
|
@ -190,7 +190,7 @@ protected:
|
||||||
return QAbstractSpinBox::event(event);
|
return QAbstractSpinBox::event(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
StepEnabled stepEnabled() const
|
StepEnabled stepEnabled() const override
|
||||||
{
|
{
|
||||||
if (isReadOnly()) // Disable steps when AmountSpinBox is read-only
|
if (isReadOnly()) // Disable steps when AmountSpinBox is read-only
|
||||||
return StepNone;
|
return StepNone;
|
||||||
|
|
|
@ -70,7 +70,7 @@ Q_SIGNALS:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Intercept focus-in event and ',' key presses */
|
/** Intercept focus-in event and ',' key presses */
|
||||||
bool eventFilter(QObject *object, QEvent *event);
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AmountSpinBox *amount;
|
AmountSpinBox *amount;
|
||||||
|
|
|
@ -99,12 +99,12 @@ public:
|
||||||
void unsubscribeFromCoreSignals();
|
void unsubscribeFromCoreSignals();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent(QEvent *e);
|
void changeEvent(QEvent *e) override;
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event) override;
|
||||||
void showEvent(QShowEvent *event);
|
void showEvent(QShowEvent *event) override;
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event);
|
void dropEvent(QDropEvent *event) override;
|
||||||
bool eventFilter(QObject *object, QEvent *event);
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
interfaces::Node& m_node;
|
interfaces::Node& m_node;
|
||||||
|
@ -324,7 +324,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** So that it responds to left-button clicks */
|
/** So that it responds to left-button clicks */
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
OptionsModel *optionsModel;
|
OptionsModel *optionsModel;
|
||||||
|
|
|
@ -90,8 +90,8 @@ public:
|
||||||
/** Unit identifier */
|
/** Unit identifier */
|
||||||
UnitRole = Qt::UserRole
|
UnitRole = Qt::UserRole
|
||||||
};
|
};
|
||||||
int rowCount(const QModelIndex &parent) const;
|
int rowCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
static QString removeSpaces(QString text)
|
static QString removeSpaces(QString text)
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
explicit CCoinControlWidgetItem(int type = Type) : QTreeWidgetItem(type) {}
|
explicit CCoinControlWidgetItem(int type = Type) : QTreeWidgetItem(type) {}
|
||||||
explicit CCoinControlWidgetItem(QTreeWidgetItem *parent, int type = Type) : QTreeWidgetItem(parent, type) {}
|
explicit CCoinControlWidgetItem(QTreeWidgetItem *parent, int type = Type) : QTreeWidgetItem(parent, type) {}
|
||||||
|
|
||||||
bool operator<(const QTreeWidgetItem &other) const;
|
bool operator<(const QTreeWidgetItem &other) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ public:
|
||||||
explicit CoinControlTreeWidget(QWidget *parent = nullptr);
|
explicit CoinControlTreeWidget(QWidget *parent = nullptr);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void keyPressEvent(QKeyEvent *event);
|
virtual void keyPressEvent(QKeyEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BITCOIN_QT_COINCONTROLTREEWIDGET_H
|
#endif // BITCOIN_QT_COINCONTROLTREEWIDGET_H
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
void setAddress(const QString &address);
|
void setAddress(const QString &address);
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void accept();
|
void accept() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool saveCurrentRow();
|
bool saveCurrentRow();
|
||||||
|
|
|
@ -145,7 +145,7 @@ namespace GUIUtil
|
||||||
explicit ToolTipToRichTextFilter(int size_threshold, QObject *parent = nullptr);
|
explicit ToolTipToRichTextFilter(int size_threshold, QObject *parent = nullptr);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject *obj, QEvent *evt);
|
bool eventFilter(QObject *obj, QEvent *evt) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int size_threshold;
|
int size_threshold;
|
||||||
|
@ -227,7 +227,7 @@ namespace GUIUtil
|
||||||
*/
|
*/
|
||||||
void clicked(const QPoint& point);
|
void clicked(const QPoint& point);
|
||||||
protected:
|
protected:
|
||||||
void mouseReleaseEvent(QMouseEvent *event);
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ClickableProgressBar : public QProgressBar
|
class ClickableProgressBar : public QProgressBar
|
||||||
|
@ -240,7 +240,7 @@ namespace GUIUtil
|
||||||
*/
|
*/
|
||||||
void clicked(const QPoint& point);
|
void clicked(const QPoint& point);
|
||||||
protected:
|
protected:
|
||||||
void mouseReleaseEvent(QMouseEvent *event);
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef ClickableProgressBar ProgressBar;
|
typedef ClickableProgressBar ProgressBar;
|
||||||
|
@ -255,7 +255,7 @@ namespace GUIUtil
|
||||||
void keyEscapePressed();
|
void keyEscapePressed();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool eventFilter(QObject *object, QEvent *event);
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fix known bugs in QProgressDialog class.
|
// Fix known bugs in QProgressDialog class.
|
||||||
|
|
|
@ -35,8 +35,8 @@ public Q_SLOTS:
|
||||||
bool isLayerVisible() const { return layerIsVisible; }
|
bool isLayerVisible() const { return layerIsVisible; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject * obj, QEvent * ev);
|
bool eventFilter(QObject * obj, QEvent * ev) override;
|
||||||
bool event(QEvent* ev);
|
bool event(QEvent* ev) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::ModalOverlay *ui;
|
Ui::ModalOverlay *ui;
|
||||||
|
|
|
@ -22,7 +22,7 @@ public:
|
||||||
QString getURI();
|
QString getURI();
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
void accept();
|
void accept() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::OpenURIDialog *ui;
|
Ui::OpenURIDialog *ui;
|
||||||
|
|
|
@ -28,7 +28,7 @@ class ProxyAddressValidator : public QValidator
|
||||||
public:
|
public:
|
||||||
explicit ProxyAddressValidator(QObject *parent);
|
explicit ProxyAddressValidator(QObject *parent);
|
||||||
|
|
||||||
State validate(QString &input, int &pos) const;
|
State validate(QString &input, int &pos) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Preferences dialog. */
|
/** Preferences dialog. */
|
||||||
|
|
|
@ -68,9 +68,9 @@ public:
|
||||||
void Init(bool resetSettings = false);
|
void Init(bool resetSettings = false);
|
||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
int rowCount(const QModelIndex & parent = QModelIndex()) const;
|
int rowCount(const QModelIndex & parent = QModelIndex()) const override;
|
||||||
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
|
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const override;
|
||||||
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
|
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) override;
|
||||||
/** Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal */
|
/** Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal */
|
||||||
void setDisplayUnit(const QVariant &value);
|
void setDisplayUnit(const QVariant &value);
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
inline void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||||
const QModelIndex &index ) const
|
const QModelIndex &index ) const override
|
||||||
{
|
{
|
||||||
painter->save();
|
painter->save();
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ public:
|
||||||
painter->restore();
|
painter->restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
|
inline QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
|
||||||
{
|
{
|
||||||
return QSize(DECORATION_SIZE, DECORATION_SIZE);
|
return QSize(DECORATION_SIZE, DECORATION_SIZE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ private Q_SLOTS:
|
||||||
protected:
|
protected:
|
||||||
// Constructor registers this on the parent QApplication to
|
// Constructor registers this on the parent QApplication to
|
||||||
// receive QEvent::FileOpen and QEvent:Drop events
|
// receive QEvent::FileOpen and QEvent:Drop events
|
||||||
bool eventFilter(QObject *object, QEvent *event);
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool saveURIs; // true during startup
|
bool saveURIs; // true during startup
|
||||||
|
|
|
@ -68,13 +68,13 @@ public:
|
||||||
|
|
||||||
/** @name Methods overridden from QAbstractTableModel
|
/** @name Methods overridden from QAbstractTableModel
|
||||||
@{*/
|
@{*/
|
||||||
int rowCount(const QModelIndex &parent) const;
|
int rowCount(const QModelIndex &parent) const override;
|
||||||
int columnCount(const QModelIndex &parent) const;
|
int columnCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||||
QModelIndex index(int row, int column, const QModelIndex &parent) const;
|
QModelIndex index(int row, int column, const QModelIndex &parent) const override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
void sort(int column, Qt::SortOrder order);
|
void sort(int column, Qt::SortOrder order) override;
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
|
|
@ -35,8 +35,8 @@ public Q_SLOTS:
|
||||||
void copyImage();
|
void copyImage();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void mousePressEvent(QMouseEvent *event);
|
virtual void mousePressEvent(QMouseEvent *event) override;
|
||||||
virtual void contextMenuEvent(QContextMenuEvent *event);
|
virtual void contextMenuEvent(QContextMenuEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QMenu *contextMenu;
|
QMenu *contextMenu;
|
||||||
|
|
|
@ -21,8 +21,8 @@ public:
|
||||||
bool isValid();
|
bool isValid();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void focusInEvent(QFocusEvent *evt);
|
void focusInEvent(QFocusEvent *evt) override;
|
||||||
void focusOutEvent(QFocusEvent *evt);
|
void focusOutEvent(QFocusEvent *evt) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool valid;
|
bool valid;
|
||||||
|
|
|
@ -46,11 +46,11 @@ public:
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void clear();
|
void clear();
|
||||||
void reject();
|
void reject() override;
|
||||||
void accept();
|
void accept() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void keyPressEvent(QKeyEvent *event);
|
virtual void keyPressEvent(QKeyEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::ReceiveCoinsDialog *ui;
|
Ui::ReceiveCoinsDialog *ui;
|
||||||
|
@ -61,7 +61,7 @@ private:
|
||||||
|
|
||||||
QModelIndex selectedRow();
|
QModelIndex selectedRow();
|
||||||
void copyColumnToClipboard(int column);
|
void copyColumnToClipboard(int column);
|
||||||
virtual void resizeEvent(QResizeEvent *event);
|
virtual void resizeEvent(QResizeEvent *event) override;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void on_receiveButton_clicked();
|
void on_receiveButton_clicked();
|
||||||
|
|
|
@ -73,14 +73,15 @@ public:
|
||||||
|
|
||||||
/** @name Methods overridden from QAbstractTableModel
|
/** @name Methods overridden from QAbstractTableModel
|
||||||
@{*/
|
@{*/
|
||||||
int rowCount(const QModelIndex &parent) const;
|
int rowCount(const QModelIndex &parent) const override;
|
||||||
int columnCount(const QModelIndex &parent) const;
|
int columnCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
bool setData(const QModelIndex &index, const QVariant &value, int role);
|
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
|
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
|
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override;
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
const RecentRequestEntry &entry(int row) const { return list[row]; }
|
const RecentRequestEntry &entry(int row) const { return list[row]; }
|
||||||
|
@ -89,7 +90,6 @@ public:
|
||||||
void addNewRequest(RecentRequestEntry &recipient);
|
void addNewRequest(RecentRequestEntry &recipient);
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
|
|
||||||
void updateDisplayUnit();
|
void updateDisplayUnit();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -115,8 +115,8 @@ class QtRPCTimerInterface: public RPCTimerInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
~QtRPCTimerInterface() {}
|
~QtRPCTimerInterface() {}
|
||||||
const char *Name() { return "Qt"; }
|
const char *Name() override { return "Qt"; }
|
||||||
RPCTimerBase* NewTimer(std::function<void()>& func, int64_t millis)
|
RPCTimerBase* NewTimer(std::function<void()>& func, int64_t millis) override
|
||||||
{
|
{
|
||||||
return new QtRPCTimerBase(func, millis);
|
return new QtRPCTimerBase(func, millis);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,8 +71,8 @@ public:
|
||||||
QKeySequence tabShortcut(TabTypes tab_type) const;
|
QKeySequence tabShortcut(TabTypes tab_type) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool eventFilter(QObject* obj, QEvent *event);
|
virtual bool eventFilter(QObject* obj, QEvent *event) override;
|
||||||
void keyPressEvent(QKeyEvent *);
|
void keyPressEvent(QKeyEvent *) override;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void on_lineEdit_returnPressed();
|
void on_lineEdit_returnPressed();
|
||||||
|
@ -83,9 +83,9 @@ private Q_SLOTS:
|
||||||
void on_sldGraphRange_valueChanged(int value);
|
void on_sldGraphRange_valueChanged(int value);
|
||||||
/** update traffic statistics */
|
/** update traffic statistics */
|
||||||
void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut);
|
void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut);
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
void showEvent(QShowEvent *event);
|
void showEvent(QShowEvent *event) override;
|
||||||
void hideEvent(QHideEvent *event);
|
void hideEvent(QHideEvent *event) override;
|
||||||
/** Show custom context menu on Peers tab */
|
/** Show custom context menu on Peers tab */
|
||||||
void showPeersTableContextMenu(const QPoint& point);
|
void showPeersTableContextMenu(const QPoint& point);
|
||||||
/** Show custom context menu on Bans tab */
|
/** Show custom context menu on Bans tab */
|
||||||
|
|
|
@ -47,8 +47,8 @@ public:
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void clear();
|
void clear();
|
||||||
void reject();
|
void reject() override;
|
||||||
void accept();
|
void accept() override;
|
||||||
SendCoinsEntry *addEntry();
|
SendCoinsEntry *addEntry();
|
||||||
void updateTabsAndLabels();
|
void updateTabsAndLabels();
|
||||||
void setBalance(const interfaces::WalletBalances& balances);
|
void setBalance(const interfaces::WalletBalances& balances);
|
||||||
|
@ -112,7 +112,7 @@ class SendConfirmationDialog : public QMessageBox
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SendConfirmationDialog(const QString& title, const QString& text, const QString& informative_text = "", const QString& detailed_text = "", int secDelay = SEND_CONFIRM_DELAY, const QString& confirmText = "Send", QWidget* parent = nullptr);
|
SendConfirmationDialog(const QString& title, const QString& text, const QString& informative_text = "", const QString& detailed_text = "", int secDelay = SEND_CONFIRM_DELAY, const QString& confirmText = "Send", QWidget* parent = nullptr);
|
||||||
int exec();
|
int exec() override;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void countDown();
|
void countDown();
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
void showTab_VM(bool fShow);
|
void showTab_VM(bool fShow);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject *object, QEvent *event);
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::SignVerifyMessageDialog *ui;
|
Ui::SignVerifyMessageDialog *ui;
|
||||||
|
|
|
@ -32,8 +32,8 @@ public:
|
||||||
~SplashScreen();
|
~SplashScreen();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *event);
|
void paintEvent(QPaintEvent *event) override;
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event) override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
/** Hide the splash screen window and schedule the splash screen object for deletion */
|
/** Hide the splash screen window and schedule the splash screen object for deletion */
|
||||||
|
@ -43,7 +43,7 @@ public Q_SLOTS:
|
||||||
void showMessage(const QString &message, int alignment, const QColor &color);
|
void showMessage(const QString &message, int alignment, const QColor &color);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject * obj, QEvent * ev);
|
bool eventFilter(QObject * obj, QEvent * ev) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** Connect core signals to splash screen */
|
/** Connect core signals to splash screen */
|
||||||
|
|
|
@ -25,7 +25,7 @@ public:
|
||||||
int getGraphRangeMins() const;
|
int getGraphRangeMins() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void updateRates();
|
void updateRates();
|
||||||
|
|
|
@ -49,10 +49,10 @@ public:
|
||||||
/** Set whether to show conflicted transactions. */
|
/** Set whether to show conflicted transactions. */
|
||||||
void setShowInactive(bool showInactive);
|
void setShowInactive(bool showInactive);
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const;
|
bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QDateTime dateFrom;
|
QDateTime dateFrom;
|
||||||
|
|
|
@ -76,11 +76,11 @@ public:
|
||||||
RawDecorationRole,
|
RawDecorationRole,
|
||||||
};
|
};
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent) const;
|
int rowCount(const QModelIndex &parent) const override;
|
||||||
int columnCount(const QModelIndex &parent) const;
|
int columnCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||||
QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
|
QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const override;
|
||||||
bool processingQueuedTransactions() const { return fProcessingQueuedTransactions; }
|
bool processingQueuedTransactions() const { return fProcessingQueuedTransactions; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -82,9 +82,9 @@ private:
|
||||||
|
|
||||||
GUIUtil::TableViewLastColumnResizingFixer *columnResizingFixer;
|
GUIUtil::TableViewLastColumnResizingFixer *columnResizingFixer;
|
||||||
|
|
||||||
virtual void resizeEvent(QResizeEvent* event);
|
virtual void resizeEvent(QResizeEvent* event) override;
|
||||||
|
|
||||||
bool eventFilter(QObject *obj, QEvent *event);
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void contextualMenu(const QPoint &);
|
void contextualMenu(const QPoint &);
|
||||||
|
|
|
@ -51,7 +51,7 @@ public:
|
||||||
static QWidget* showShutdownWindow(QMainWindow* window);
|
static QWidget* showShutdownWindow(QMainWindow* window);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BITCOIN_QT_UTILITYDIALOG_H
|
#endif // BITCOIN_QT_UTILITYDIALOG_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue