[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/krecipes/src
From:       Unai Garro <Unai.Garro () ee ! ed ! ac ! uk>
Date:       2003-09-30 22:56:07
[Download RAW message or body]

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.  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic