Use class methods for with and height instead of protected class attributes.

This commit is contained in:
Markus Gans 2015-06-08 20:43:19 +02:00
parent 56fb44b8cc
commit 83aa986646
1 changed files with 2 additions and 2 deletions

View File

@ -619,11 +619,11 @@ void MyDialog::adjustSize()
{ {
int h = parentWidget()->getHeight() - 3; int h = parentWidget()->getHeight() - 3;
setHeight (h, false); setHeight (h, false);
int X = int((parentWidget()->getWidth() - width) / 2); int X = int((parentWidget()->getWidth() - getWidth()) / 2);
if ( X < 1 ) if ( X < 1 )
X = 1; X = 1;
setX (X, false); setX (X, false);
myList->setHeight (height-3, false); myList->setHeight (getHeight() - 3, false);
FDialog::adjustSize(); FDialog::adjustSize();
} }