Changeset 651 for trunk/src/gui/kernel/qformlayout.cpp
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qformlayout.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 1926 1926 If the field on the right-hand side is tall, 1927 1927 we want the label to be top-aligned, but not too 1928 much. So we introduce a 5/ 4 factor so that it1929 gets a fewextra pixels at the top.1928 much. So we introduce a 7 / 4 factor so that it 1929 gets some extra pixels at the top. 1930 1930 */ 1931 1931 height = qMin(height, 1932 qMin(label->sizeHint.height() * 5/ 4,1932 qMin(label->sizeHint.height() * 7 / 4, 1933 1933 label->maxSize.height())); 1934 1934 }
Note:
See TracChangeset
for help on using the changeset viewer.