aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-04-25 23:53:38 +0200
committerselsta <selsta@sent.at>2021-04-25 23:53:43 +0200
commit837dd6184e982187110f0543252ae5c6afabea4a (patch)
treeb27f8214f262b272df3f6f8855562d9e8d5bbbde /src/main
parentd2fc4e60c64b90bd6f078261b60fc6ab417f2909 (diff)
downloadmonzero-gui-837dd6184e982187110f0543252ae5c6afabea4a.tar.gz
monzero-gui-837dd6184e982187110f0543252ae5c6afabea4a.tar.xz
monzero-gui-837dd6184e982187110f0543252ae5c6afabea4a.zip
Revert "Animation slow down for debugging"
This reverts commit baff7f213f07b7ae134062cd54b22c691f48fbe4.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/filter.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/main/filter.cpp b/src/main/filter.cpp
index 581d0750..2384c10c 100644
--- a/src/main/filter.cpp
+++ b/src/main/filter.cpp
@@ -27,14 +27,9 @@
// 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)
{
@@ -91,21 +86,6 @@ 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;