Exemplo n.º 1
0
void MouseDirection::dumpEvent(QMouseEvent *event, const QString &strMessage)
{
    (*this).setText(strMessage + "\n buttons() = " + mouseButtonsInfo(event)
                   + "\n x() = " + QString::number(event->x())
                   + "\n y() = " + QString::number(event->y())
                   + "\n globalX() = " + QString::number(event->globalX())
                   + "\n globalY() = " + QString::number(event->globalY())
                   + "\n modifiers() = " + modifiersInfo(event));
}
Exemplo n.º 2
0
// ----------------------------------------------------------------------
void MouseObserver::dumpEvent(QMouseEvent* pe, const QString& strMsg)
{
    setText(strMsg
    + "\n buttons()=" + buttonsInfo(pe)
    + "\n x()=" + QString::number(pe->x())
    + "\n y()=" + QString::number(pe->y())
    + "\n globalX()=" + QString::number(pe->globalX())
    + "\n globalY()=" + QString::number(pe->globalY())
    + "\n modifiers()=" + modifiersInfo(pe)
    );
    }