From 83aa986646a6642acc292ce8f1ef9f9d23085227 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Mon, 8 Jun 2015 20:43:19 +0200 Subject: [PATCH] Use class methods for with and height instead of protected class attributes. --- test/ui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ui.cpp b/test/ui.cpp index f764eb9b..47c33afc 100644 --- a/test/ui.cpp +++ b/test/ui.cpp @@ -619,11 +619,11 @@ void MyDialog::adjustSize() { int h = parentWidget()->getHeight() - 3; setHeight (h, false); - int X = int((parentWidget()->getWidth() - width) / 2); + int X = int((parentWidget()->getWidth() - getWidth()) / 2); if ( X < 1 ) X = 1; setX (X, false); - myList->setHeight (height-3, false); + myList->setHeight (getHeight() - 3, false); FDialog::adjustSize(); }