Fix Clang 10 warning about misleading indentation
qcombobox.cpp:3282:13: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] Pick-To: 5.15 Change-Id: I99ab0f318b1c43b89888fffd160b5a7310c0a0d0 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
83223ca3ef
commit
ee3ab7829d
@ -3213,13 +3213,13 @@ void QComboBoxPrivate::showPopupFromMouseEvent(QMouseEvent *e)
|
|||||||
#ifdef QT_KEYPAD_NAVIGATION
|
#ifdef QT_KEYPAD_NAVIGATION
|
||||||
//if the container already exists, then d->viewContainer() is safe to call
|
//if the container already exists, then d->viewContainer() is safe to call
|
||||||
if (container) {
|
if (container) {
|
||||||
|
#else
|
||||||
|
if (true) {
|
||||||
#endif
|
#endif
|
||||||
// We've restricted the next couple of lines, because by not calling
|
// We've restricted the next couple of lines, because by not calling
|
||||||
// viewContainer(), we avoid creating the QComboBoxPrivateContainer.
|
// viewContainer(), we avoid creating the QComboBoxPrivateContainer.
|
||||||
viewContainer()->initialClickPosition = q->mapToGlobal(e->pos());
|
viewContainer()->initialClickPosition = q->mapToGlobal(e->pos());
|
||||||
#ifdef QT_KEYPAD_NAVIGATION
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
q->showPopup();
|
q->showPopup();
|
||||||
// The code below ensures that regular mousepress and pick item still works
|
// The code below ensures that regular mousepress and pick item still works
|
||||||
// If it was not called the viewContainer would ignore event since it didn't have
|
// If it was not called the viewContainer would ignore event since it didn't have
|
||||||
|
Loading…
Reference in New Issue
Block a user