QAbstractScollArea: Cast an enumerator to int before doing math on it

Change-Id: I78288c7d104a33936b6f1f3f7bff9a076845cfc8
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
bb10
Giuseppe D'Angelo 2020-05-04 15:14:24 +02:00 committed by Marc Mutz
parent ca88c6ab58
commit 3aadbec516
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public:
void replaceScrollBar(QScrollBar *scrollBar, Qt::Orientation orientation);
QAbstractScrollAreaScrollBarContainer *scrollBarContainers[Qt::Vertical + 1];
QAbstractScrollAreaScrollBarContainer *scrollBarContainers[int(Qt::Vertical) + 1];
QScrollBar *hbar, *vbar;
Qt::ScrollBarPolicy vbarpolicy, hbarpolicy;