From kde-commits Tue Sep 30 22:56:07 2003 From: Unai Garro Date: Tue, 30 Sep 2003 22:56:07 +0000 To: kde-commits Subject: kdenonbeta/krecipes/src X-MARC-Message: https://marc.info/?l=kde-commits&m=106496259900994 CVS commit by uga: position adequately the editor boxes without missing a single pixel :) M +4 -5 dietwizarddialog.cpp 1.14 --- kdenonbeta/krecipes/src/dietwizarddialog.cpp #1.13:1.14 @@ -192,7 +192,6 @@ QRect r; // Constraints Box1 -r=constraintsView->header()->sectionRect(1); //Set in position reference to qlistview, and with the column size(); - -r.moveBy(constraintsView->pos().x(),constraintsView->pos().y()); // Move to the position of qlistview +r=constraintsView->header()->sectionRect(1); //Set column's size() and position with at adistance equal to the distance between the qlistview and the header; +r.moveBy(this->pos().x()+constraintsView->pos().x(),this->pos().y()+constraintsView->pos().y()); // Move to the position of qlistview header in that column r.moveBy(0,r.height()+constraintsView->itemRect(it).y()); //Move down to the item, note that its height is same as header's right now. @@ -202,7 +201,7 @@ constraintsEditBox1->setGeometry(r); //Constraints Box2 -r=constraintsView->header()->sectionRect(3); //Set in position reference to qlistview, and with the column size(); +r=constraintsView->header()->sectionRect(3); //Set column's size() and position with at adistance equal to the distance between the qlistview and the header; -r.moveBy(constraintsView->pos().x(),constraintsView->pos().y()); // Move to the position of qlistview +r.moveBy(this->pos().x()+constraintsView->pos().x(),this->pos().y()+constraintsView->pos().y()); // Move to the position of qlistview r.moveBy(0,r.height()+constraintsView->itemRect(it).y()); //Move down to the item, note that its height is same as header's right now.