Qt 6 works on Windows host
This commit is contained in:
@@ -41,7 +41,13 @@ void ColorButton::resizeEvent(QResizeEvent * ) {
|
||||
void ColorButton::mousePressEvent(QMouseEvent * e) {
|
||||
pp = e->pos();
|
||||
if (e->buttons().testFlag(Qt::RightButton)) {
|
||||
menu.popup(e->globalPos());
|
||||
menu.popup(
|
||||
#if QT_VERSION_MAJOR <= 5
|
||||
((QMouseEvent*)e)->globalPos()
|
||||
#else
|
||||
((QMouseEvent*)e)->globalPosition().toPoint()
|
||||
#endif
|
||||
);
|
||||
return;
|
||||
}
|
||||
QPushButton::mousePressEvent(e);
|
||||
|
||||
Reference in New Issue
Block a user