diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-04-25 15:28:28 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-04-25 15:28:28 -0500 |
| commit | 36ec1a1c562cc935e31b068ba5bd6d42375133d4 (patch) | |
| tree | b62d7f565a57af15e4a63ad632b3547ba0332964 | |
| parent | b0ba2379f4c657999510b054a22cb5c906e71e8a (diff) | |
| parent | baff7f213f07b7ae134062cd54b22c691f48fbe4 (diff) | |
| download | monzero-gui-36ec1a1c562cc935e31b068ba5bd6d42375133d4.tar.gz monzero-gui-36ec1a1c562cc935e31b068ba5bd6d42375133d4.tar.xz monzero-gui-36ec1a1c562cc935e31b068ba5bd6d42375133d4.zip | |
Merge pull request #2070
baff7f2 Animation slow down for debugging (xmrdsc)
| -rw-r--r-- | filter.cpp | 20 | ||||
| -rw-r--r-- | monero-wallet-gui.pro | 2 |
2 files changed, 21 insertions, 1 deletions
@@ -27,9 +27,14 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "filter.h" +#include <QtGlobal> #include <QKeyEvent> #include <QDebug> +#ifdef QT_DEBUG + #include "private/qabstractanimation_p.h" +#endif + filter::filter(QObject *parent) : QObject(parent) { @@ -79,6 +84,21 @@ bool filter::eventFilter(QObject *obj, QEvent *ev) { case QEvent::KeyRelease: { QKeyEvent *ke = static_cast<QKeyEvent*>(ev); +#ifdef QT_DEBUG + if(ke->key() == Qt::Key_F9){ + QUnifiedTimer::instance()->setSlowModeEnabled(true); + QUnifiedTimer::instance()->setSlowdownFactor(10); + qDebug() << "Slow animations enabled"; + } + + if(ke->key() == Qt::Key_F10){ + QUnifiedTimer::instance()->setSlowModeEnabled(false); + QUnifiedTimer::instance()->setSlowdownFactor(1); + + qDebug() << "Slow animations disabled"; + } +#endif + if(ke->key() == Qt::Key_Backtab) m_backtabPressed = false; diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index c06dcb3c..cf4050ec 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -5,7 +5,7 @@ lessThan (QT_MAJOR_VERSION, 5) | lessThan (QT_MINOR_VERSION, 7) { TEMPLATE = app -QT += qml quick widgets +QT += qml gui-private quick widgets WALLET_ROOT=$$PWD/monero |
