summaryrefslogtreecommitdiffstats
path: root/tools/designer/src/components/buddyeditor/buddyeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/src/components/buddyeditor/buddyeditor.cpp')
-rw-r--r--tools/designer/src/components/buddyeditor/buddyeditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/designer/src/components/buddyeditor/buddyeditor.cpp b/tools/designer/src/components/buddyeditor/buddyeditor.cpp
index 9da257e..e367f9a 100644
--- a/tools/designer/src/components/buddyeditor/buddyeditor.cpp
+++ b/tools/designer/src/components/buddyeditor/buddyeditor.cpp
@@ -405,6 +405,7 @@ QWidget *BuddyEditor::findBuddy(QLabel *l, const QWidgetList &existingBuddies) c
const int y = geom.center().y();
QWidget *neighbour = 0;
switch (l->layoutDirection()) {
+ case Qt::LayoutDirectionAuto:
case Qt::LeftToRight: { // Walk right to find next managed neighbour
const int xEnd = parent->size().width();
for (int x = geom.right() + 1; x < xEnd; x += DeltaX)