equal
deleted
inserted
replaced
458 int layout_count = mLayout->count(); |
458 int layout_count = mLayout->count(); |
459 |
459 |
460 //check which orientation in use |
460 //check which orientation in use |
461 //if layout is horizontal, items need to be placed in 2 columns. |
461 //if layout is horizontal, items need to be placed in 2 columns. |
462 if(Qt::Vertical == mOrientation){ |
462 if(Qt::Vertical == mOrientation){ |
|
463 item->setPreferredWidth( mLayout->geometry().width() ); |
463 mLayout->addItem(item,layout_count,0); |
464 mLayout->addItem(item,layout_count,0); |
464 } else { |
465 } else { |
465 // Qt FW sets the correct width automatically based on the width of the child widgets |
466 // Qt FW sets the correct width automatically based on the width of the child widgets |
|
467 item->setPreferredWidth( mLayout->geometry().width() / 2); |
466 mLayout->addItem(item,layout_count / 2, layout_count % 2); |
468 mLayout->addItem(item,layout_count / 2, layout_count % 2); |
467 } |
469 } |
468 } |
470 } |
469 |
471 |
470 /*! |
472 /*! |