chore(cpn): update to Qt 5.15.2 and rework application packaging (#4270)
Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com> Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
co-authored by
raphaelcoeffic
philmoz
parent
9d5c6e62cb
commit
a3faf7e9df
@@ -148,7 +148,7 @@ void SimulatedUIWidget::captureScreenshot()
|
||||
path = "./";
|
||||
QDir dir(path);
|
||||
if (dir.exists() && dir.isReadable()) {
|
||||
QStringList fwid = getCurrentFirmware()->getId().split("-", QString::SkipEmptyParts);
|
||||
QStringList fwid = getCurrentFirmware()->getId().split("-", Qt::SkipEmptyParts);
|
||||
QString flavor = fwid.at(qMin(1, fwid.size()));
|
||||
QString fnpfx = tr("screenshot", "Simulator LCD screenshot file name prefix");
|
||||
fileName = "%1/%2_%3_%4.png";
|
||||
@@ -173,7 +173,7 @@ void SimulatedUIWidget::wheelEvent(QWheelEvent * event)
|
||||
|
||||
void SimulatedUIWidget::mousePressEvent(QMouseEvent * event)
|
||||
{
|
||||
if (event->button() == Qt::MidButton && m_mouseMidClickAction)
|
||||
if (event->button() == Qt::MiddleButton && m_mouseMidClickAction)
|
||||
m_mouseMidClickAction->trigger(true);
|
||||
else
|
||||
event->ignore();
|
||||
@@ -181,7 +181,7 @@ void SimulatedUIWidget::mousePressEvent(QMouseEvent * event)
|
||||
|
||||
void SimulatedUIWidget::mouseReleaseEvent(QMouseEvent * event)
|
||||
{
|
||||
if (event->button() == Qt::MidButton && m_mouseMidClickAction)
|
||||
if (event->button() == Qt::MiddleButton && m_mouseMidClickAction)
|
||||
m_mouseMidClickAction->trigger(false);
|
||||
else
|
||||
event->ignore();
|
||||
|
||||
Reference in New Issue
Block a user