Changeset View
Changeset View
Standalone View
Standalone View
src/qt/modaloverlay.h
Show All 30 Lines | public Q_SLOTS: | ||||
void toggleVisibility(); | void toggleVisibility(); | ||||
// will show or hide the modal layer | // will show or hide the modal layer | ||||
void showHide(bool hide = false, bool userRequested = false); | void showHide(bool hide = false, bool userRequested = false); | ||||
void closeClicked(); | void closeClicked(); | ||||
bool isLayerVisible() { return layerIsVisible; } | bool isLayerVisible() { 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; | ||||
int bestHeaderHeight; // best known height (based on the headers) | int bestHeaderHeight; // best known height (based on the headers) | ||||
QDateTime bestHeaderDate; | QDateTime bestHeaderDate; | ||||
QVector<QPair<qint64, double>> blockProcessTime; | QVector<QPair<qint64, double>> blockProcessTime; | ||||
bool layerIsVisible; | bool layerIsVisible; | ||||
bool userClosed; | bool userClosed; | ||||
}; | }; | ||||
#endif // BITCOIN_QT_MODALOVERLAY_H | #endif // BITCOIN_QT_MODALOVERLAY_H |