Use Qt::AligntmentFlag instead of int for popupPosition
This commit is contained in:
parent
f23ca788ee
commit
7c9d0abc23
@ -176,7 +176,7 @@ void DialogProxy::setVisible(const bool visible)
|
|||||||
QQuickWindow::setVisible(visible);
|
QQuickWindow::setVisible(visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
QPoint DialogProxy::popupPosition(QQuickItem *item, int alignment)
|
QPoint DialogProxy::popupPosition(QQuickItem *item, Qt::AlignmentFlag alignment)
|
||||||
{
|
{
|
||||||
if (!item) {
|
if (!item) {
|
||||||
//If no item was specified try to align at the center of the parent view
|
//If no item was specified try to align at the center of the parent view
|
||||||
|
@ -133,7 +133,7 @@ public:
|
|||||||
* @arg alignment alignment of the popup compared to the item
|
* @arg alignment alignment of the popup compared to the item
|
||||||
*/
|
*/
|
||||||
//FIXME: alignment should be Qt::AlignmentFlag
|
//FIXME: alignment should be Qt::AlignmentFlag
|
||||||
QPoint popupPosition(QQuickItem *item, int alignment=Qt::AlignCenter) ;
|
QPoint popupPosition(QQuickItem *item, Qt::AlignmentFlag alignment=Qt::AlignCenter) ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a Qt.WidgetAttribute to the dialog window
|
* Set a Qt.WidgetAttribute to the dialog window
|
||||||
|
Loading…
Reference in New Issue
Block a user