Go to file
Caroline Chao a317ee0a6f Fix sizeHint for QAbstractSpinBox
The current size hint is not correct and the text is truncated
when using prefix/suffix.

Update QCommonStyle::sizeFromContents() to get the button
and frame widths into account for the QSpinBox width.

Update sizeFromContents() in the different styles to be
consistent with the change in QCommonStyle.

Update minimumSizeHint(), calculate it using the prefix and
data range. The SpinBox can shrunk over the suffix if any.

Task-number: QTBUG-28863

Change-Id: Ia742232edf8b11d0283e8136c2818928f8755103
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
2013-02-12 20:20:03 +01:00
bin Fix missing namespace macro warnings when building Qt Addon modules. 2013-02-11 10:58:25 +01:00
config.tests Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
dist QRegularExpression: add method for extracting the capturing group names 2013-02-05 13:46:25 +01:00
doc Remove left-overs of QT_{BEGIN,END}_HEADERS 2013-01-31 20:08:58 +01:00
examples Keep QLineEdit placeholder text visible when focused 2013-02-01 16:13:12 +01:00
lib
mkspecs Refactor QEglFSPandaHooks and add physicalScreenSize() 2013-01-30 13:00:02 +01:00
qmake consolidate generation of metafile install targets 2013-01-25 23:30:50 +01:00
src Fix sizeHint for QAbstractSpinBox 2013-02-12 20:20:03 +01:00
tests Added QWindow::Visibility convenience API to QWindow. 2013-02-12 15:02:53 +01:00
tools configure.exe: Fix line feed character 2013-01-25 00:40:17 +01:00
util QUrl effective TLDs: update table and split into chunks of 64K 2013-02-09 10:12:44 +01:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Add qmake generated files to .gitignore. 2012-12-19 21:31:58 +01:00
.qmake.conf don't auto-install example sources by default for all modules 2012-12-03 15:56:28 +01:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure Introduce a native color dialog for GTK+ 2.x 2013-02-01 19:39:31 +01:00
configure.bat Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.BSD Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.FDL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.LGPL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.LGPL-ONLY Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
INSTALL fix links in INSTALL 2012-10-10 08:45:22 +02:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL
LICENSE.GPL
LICENSE.LGPL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro rewrite default spec handling 2012-11-01 20:17:57 +01:00
sync.profile syncqt: Don't check for QT_{BEGIN,END}_HEADER macros 2013-01-26 18:18:46 +01:00