first commit

This commit is contained in:
2026-02-21 17:11:31 +09:00
commit 18b4338361
4001 changed files with 365464 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#include "rm_testing.h"
#if (RM_TESTING)
#include <QMouseEvent>
#include <QDebug>
#include <QCursor>
RMTesting::RMTesting(QObject *parent) : QObject(parent)
{
//qInfo() << __FUNCTION__;
}
bool RMTesting::eventFilter(QObject* object, QEvent* event)
{
if(event->type() == QEvent::MouseButtonPress)
{
if(QCursor::pos() == mouse && mouseFilterTimer.elapsed() < 10)
{
return false;
}
mouseFilterTimer.start();
mouse = QCursor::pos();
int x = QCursor::pos().x();
int y = QCursor::pos().y();
qInfo() << "MP -> (" + QString::number(x) + "," + QString::number(y) + ")" << object;
return false; // make it unhandled and sent to other filters.
}
else
{
}
return false;
}
#endif