24 #include "ui_mouse_coordinates.h"
31 #include "../vmisc/vabstractapplication.h"
62 ui->xposText_Label->setText(QString(QString::number(
qApp->fromPixel(scenePos.x()),
'f', 2 )));
63 ui->yposText_Label->setText(QString(QString::number(
qApp->fromPixel(scenePos.y()),
'f', 2 )));
MouseCoordinates(const Unit &units, QWidget *parent=nullptr)
Ui::MouseCoordinates * ui
void updateCoordinates(const QPointF &scenePos)
virtual ~MouseCoordinates()
QString UnitsToStr(const Unit &unit, const bool translate)
UnitsToStr translate unit to string.