Commit cf5ecf7e authored by Thomas Zander's avatar Thomas Zander

Fix alignment; you have to pass both vertical and horizontal alignment...

Add api docs

svn path=/trunk/koffice/; revision=650322
parent ec32e6dc
......@@ -100,8 +100,8 @@ void KoLayoutVisitor::relayout() {
if(! column.contains(layout))
column.insert(layout, item.label);
layout->setAlignment(item.label, Qt::AlignRight);
layout->setAlignment(item.label, Qt::AlignRight | Qt::AlignVCenter);
item.label->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
void finish() {
......@@ -29,11 +29,21 @@
class KOFFICEUI_EXPORT KoLayoutVisitor {
/// Constructor
* Visit looks at the widget and all the widget placed on it (as children) and checks to see
* if they should be used for the layout process.
* @param widget the widget to visit.
void visit(QWidget *widget);
* This will do the actual work, which is to align the labels properly based on all the widgets visited.
* Call relayout only once after all the widgets are visited.
void relayout();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment