On Freitag, 24. Oktober 2008, Duncan Mac-Vicar Prett wrote:
Stefan Hundhammer wrote:
There is some code that was #ifdef'ed out during the Qt4 migration because it use a different approach for some things. Calculating the main dialog default size was among that.
Can you point me to that code so we can port it?
http://svn.opensuse.org/svn/yast/trunk/qt/src/YQUI.cc
Everything with _main_win plus calcDefaultSize(). What we had done in old
versions (that code goes a long way back) was let Qt assign any -geometry
parameters to that _main_win and retrieve the size of that window for the
UI's default size. That was never the best approach to begin with.
CU
--
Stefan Hundhammer