Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt 5.9 update #4

Merged
merged 787 commits into from
Oct 17, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
787 commits
Select commit Hold shift + click to select a range
414026a
Convert features.scrollbar to QT_[REQUIRE_]CONFIG
sbinner Jul 29, 2017
39851c6
Convert features.groupbox to QT_[REQUIRE_]CONFIG
sbinner Jul 29, 2017
e58fdba
Convert features.splitter to QT_[REQUIRE_]CONFIG
sbinner Jul 29, 2017
ee29be9
Convert features.toolbutton to QT_[REQUIRE_]CONFIG
sbinner Jul 29, 2017
f4e0ffb
Enable custom shared memory schemes on INTEGRITY
Jul 27, 2017
feb2415
Fix write and read-write ioctls on certain 64-bit OS
thiagomacieira Aug 10, 2017
49cb039
make compiler invocation error messages mention host/target
ossilator Aug 4, 2017
8de79db
Widgets: Fix ImSurroundingText query for a QLineEdit with mask
jarkkokoivikko-code-q May 27, 2017
10b46fe
Autotest: Fix test when running on a non-Unicode-capable locale
thiagomacieira Aug 7, 2017
b7bcd03
Doc: indicate the QSharedMemory::size() that the size may be bigger
thiagomacieira Aug 13, 2017
0273391
Update binary compatibility files for Qt 5.9.0 for QtBase
Jun 22, 2017
9193b6c
QNAM: requeue pipelined HTTP requests after unrecoverable socket errors
kromain Aug 3, 2017
c161c6d
Fix a race condition in QEvdevTabletHandler::readData()
kromain Aug 7, 2017
f27d1cc
QCocoaMenu: De-pessimize the number of calls to validateMenuItem:
Aug 9, 2017
306071e
QCocoaMenu: Sync menubar menu when adding items
Aug 10, 2017
e6fad35
Convert features.graphicsview to QT_[REQUIRE_]CONFIG
sbinner Jul 23, 2017
190aa94
Change source identifier type in ProString
ossilator Aug 14, 2017
ad70f2e
configure: simplify construction of QMAKE_CONFIG_CACHE
ossilator Jul 20, 2017
4e5af88
configure: fix detection of icu in static build
ossilator Jul 26, 2017
1480066
employ return() inside qt_example_installs.prf gainfully
ossilator Jun 28, 2017
1da25fe
fix excessive execution of code meant for examples only
ossilator Jun 28, 2017
d64abf8
refuse to build examples inside the qt source tree stand-alone
ossilator Jun 28, 2017
8bebded
qmake: don't limit command line length when not actually on windows
ossilator Aug 7, 2017
eb2b635
Check for loopback address if network access is unavailable
Morten242 Aug 10, 2017
bad6b8e
Propagate all module defines to CMake config files
vkrause Aug 1, 2017
5c21c3c
QMenu: Prevent torn-off menus from extending behind the taskbar
Aug 15, 2017
f9f5b35
Blacklist tst_QFont::DefaultFamily in B2Qt
Aug 16, 2017
a26a3cf
macOS: Fix matching of font weights for application fonts
eskilblomfeldt Aug 16, 2017
a3d59c7
Block input to a window shown while an application modal dialog is vi…
AndyShawQt Aug 15, 2017
baf1158
Doc: Mark the dbmsType() function and DbmsType enum as internal
AndyShawQt Jul 13, 2017
cdc79f5
XCB: Don't core-dump if we can't connect to the X displayName
thiagomacieira Aug 11, 2017
d7db2b4
QPicture: check that pictureFormat doesn't return dangling pointers
dangelog Jul 19, 2017
b955729
Fix crash when reading a PKCS12 file with no private key
ediosyncratic Aug 7, 2017
39852ce
Android: Fix warning for __fp16
bog-dan-ro Aug 16, 2017
b525ec2
Android: Fix compile with unified headers
bog-dan-ro Aug 17, 2017
0027d73
Android: Dissable internal hack when using libc++
bog-dan-ro Aug 17, 2017
1cd91a0
Android: Fix compile using ndkr15 clang and unified headers
bog-dan-ro Aug 17, 2017
362466c
QProcess/Unix: fix possible race condition inside waitForXXX() loops
Aug 17, 2017
b5d762a
macOS: Fix padding around tab label with icon
eskilblomfeldt Aug 17, 2017
7c4c93a
Avoid dereferencing nullptr
Morten242 Aug 16, 2017
7cbd13b
fix configure PSQL_*= being ignored, take 2
ossilator Aug 10, 2017
5f7287c
Add MSVC manifest backup file to "clean" target
jobor Aug 16, 2017
73573fc
Fix huge painting artefact of certain dashed lines
aavit Aug 18, 2017
4e39175
kms: Send enter and leave events to all screens
plfiorini Jun 14, 2017
2282ca4
Fix compilation on 64-bit CPUs when QPROCESS_DEBUG is enabled
dfaure-kdab Aug 10, 2017
4700a32
Android: stop composing before pasting new text
paulolav Aug 18, 2017
2ea3c0d
Doc: Clean up Qt::ApplicationAttribute docs
toreinio Aug 18, 2017
0f4cce2
QOperatingSystemVersion: add Android Oreo (v8.0, API level 26)
jakepetroules Aug 16, 2017
1fc9c8d
Windows QPA: Call raise unconditionally for popups
FriedemannKleint Aug 21, 2017
82e7bd6
tst_QPrinter: Disambiguate all file names
FriedemannKleint Jul 7, 2017
c1cd8df
Fix the test for non-English based setups
AndyShawQt Aug 21, 2017
1bbad92
tst_QPrinter: Share printers in testPageRectAndPaperRect/testMargin
FriedemannKleint Jul 7, 2017
b65e30c
QWidget: Call appropriate QWindow method from setGeometry_sys()
Jun 12, 2017
a576954
QTableGenerator: Fix handling of illegal characters in fromBase8
rlohning Jun 7, 2017
2740584
Doc: Update Qt Creator Manual link targets to match version 4.4
leena-miettinen Aug 18, 2017
09ea013
Use libc++ instead of libstdc++ when compiling with android-clang mkspec
bog-dan-ro Jul 28, 2017
6522d4c
Fix invalid placeholder name in tst_qsqlthread.cpp
iamsergio Jun 13, 2017
94c4827
configure: Disable warnings in configure tests
thiagomacieira Aug 8, 2017
643d19f
QNetworkInterface: Fold the test for if_nameindex into the config test
thiagomacieira Aug 9, 2017
797530c
QHostInfo: Remove Darwin refusal to use getnameinfo(3)
thiagomacieira Aug 23, 2017
515b905
Adapt qmake's raw-string parser to avoid confusion by macros
ediosyncratic Sep 6, 2016
7b1a3ba
Fix QCFType::constructFromGet() crash when passed a nullptr
torarnv Aug 23, 2017
3119014
iOS: Remove support for OpenGL-backed QBackingStore
torarnv Aug 21, 2017
8ebfe00
Initialize the print engine with the given printer name
AndyShawQt Aug 21, 2017
75b323c
QMenuPrivate: Fix implicit type conversion warnings
Aug 16, 2017
dbaa4de
Cocoa: Fix compile when using QT_NO_TABLETEVENT
AndyShawQt Aug 21, 2017
ab323c5
Append the QMAKE_EXTRA_ARGS to the output instead of overwriting it
AndyShawQt Aug 18, 2017
d293f07
Add missing #ifdef for isTouchScreen() implementation
AndyShawQt Aug 17, 2017
eb0ba90
qmake: make yet more use of ProString::toQStringRef()
ossilator Aug 10, 2017
5131bb9
qmake: fix excessive detaching of raw data
ossilator Aug 11, 2017
ccb8afc
qmake: fix raw data detach avoidance
ossilator Aug 11, 2017
ce5e687
qmake: make more use of ProString built-ins
ossilator Aug 11, 2017
9f98935
qmake: prune obsolete QString::detach() call
ossilator Aug 10, 2017
14505bb
qmake: remove seemingly pointless QString::detach() calls
ossilator Aug 10, 2017
18533ae
qmake: remove pointless use of raw data in $$[QMAKEFEATURES] access
ossilator Aug 11, 2017
702be65
qmake: fix hypothetical raw data leaks relating to qt i/o classes
ossilator Aug 11, 2017
e8b9a17
qmake: fix hypothetical raw data leak in $$replace()
ossilator Aug 11, 2017
3635b78
QFileInfo: Fix typo in doc
orgads Aug 25, 2017
e51dbda
Update bundled libpng to version 1.6.32
misery Aug 25, 2017
0f11fab
Fix resolution of relative symlinks from relative path on unix
orgads Aug 26, 2017
db0585d
Fix crashes with libproxy+webkitgtk: it's not threadsafe
thiagomacieira Jul 20, 2017
f1a857c
QCompleter: Add check before setting the widget
Aug 25, 2017
1bb7083
Make it possible to override QT_LOGGING_TO_CONSOLE in test cases
jobor Aug 23, 2017
3380c79
Remove QMAKE_LIBS_NETWORK from QSqlQuery benchmark
jobor Aug 18, 2017
d743859
Remove QMAKE_LIBS_CORE variable
jobor Aug 18, 2017
ea168ea
Remove unused mkspecs variable QMAKE_LIBS_NIS
jobor Aug 24, 2017
4878448
QCocoaMenu: Stop update timer
Aug 28, 2017
e81f430
Doc: Fix example
rlohning Aug 25, 2017
041df6e
QFileInfo: Clarify documentation on symlinks
FriedemannKleint Aug 28, 2017
3b962d1
Fix jumping to anchors with offline style
e4z9 Jul 21, 2017
01af677
Fix: WebP missing from QMovie::supportedFormats()
aavit Aug 2, 2017
c827afa
QWidgets/CommonStyle: Fix tooltip drawing under HighDPI
aportale Jul 7, 2017
de6d6eb
Revert "tst_qgraphicswidget expect fail on Win 10"
Aug 29, 2017
0270651
Cocoa integration: do not use released session
Aug 25, 2017
63002b2
QFbVtHandler: Remove unused sys/signalfd.h include
dongmeiwang Aug 18, 2017
789f9d0
Avoid assert on large clips in qt_alphamapblit_generic
Aug 29, 2017
6ce4b68
examples: fix compile without opengl support
pseiderer Aug 7, 2017
b7722c2
Fix error attribute(target("+crc")) is unknown
pseiderer Jul 15, 2017
e938150
Revert "tst_qwidget::activation expect fail on Win 10"
Aug 30, 2017
a72513c
Windows QPA: Hardcode a limit for the default point size
FriedemannKleint Jul 20, 2016
6e18293
Forward the readChannelFinished from the plain socket to the ssl socket
albert-astals-cid-kdab Aug 25, 2017
541a031
tst_QMutex: produce less noise with MSVC
thiagomacieira Aug 18, 2017
f71a99c
QModelIndex: use std::less to compare pointers
dangelog Sep 1, 2017
fc37e03
PCRE2: remove a source file from the .pro
dangelog Sep 1, 2017
b649717
Convert features.stackedwidget to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
314a591
Convert features.menubar to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
ced0f54
Fix resolution of relative links on Windows
orgads Aug 26, 2017
135da45
Convert features.keysequenceedit to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
dab4943
Convert features.scrollarea to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
8a93f50
Convert features.resizehandler to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
6380729
Convert features.effects to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
66d9a2b
Convert features.buttongroup to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
093064f
Convert features.completer to QT_[REQUIRE_]CONFIG
sbinner Sep 2, 2017
a2dbf1e
Blacklist tst_QItemDelegate::enterKey tests on openSUSE 42.3
Sep 4, 2017
f9fea20
Extend blacklisting of tst_QWidget::maskedUpdate to openSUSE 42.3
Sep 4, 2017
52bda43
macOS: Reset composition when focus object changes inside window
eskilblomfeldt Aug 29, 2017
7d32339
Pass m_drag_icon_window to getNativeMousePos instead of Event QObject
afiestas Jan 14, 2017
e8e0895
PCRE2: disable JIT on all UIKit platforms
dangelog Sep 4, 2017
c7766a4
PCRE2: remove pcre2_printint.c from the imported sources
dangelog Sep 4, 2017
0adc14d
macOS: Don’t color convert the backing store
Sep 4, 2017
d649408
Add qmake feature and configure option to use ccache
torarnv Jun 2, 2017
b3717fc
OpenGL examples: Introduce QCommandLineParser
FriedemannKleint Aug 29, 2017
e29b723
Hello GL2 example: Fix exit crash
FriedemannKleint Aug 29, 2017
9d8a4d1
Windows QPA: Do not call EnableNonClientDpiScaling() on Desktop GL Wi…
FriedemannKleint Sep 5, 2017
30609e6
testlib: Print event coordinates and window size when event is outsid…
mitchcurtis Sep 5, 2017
68b8f2d
Add change file for Qt 5.6.3
jaheikk Aug 24, 2017
029e5cd
Convert features.ftp to QT_[REQUIRE_]CONFIG
sbinner Sep 4, 2017
c6b9c6e
Convert features.socks5 to QT_[REQUIRE_]CONFIG
sbinner Sep 4, 2017
d332a2d
Convert features.networkdiskcache to QT_[REQUIRE_]CONFIG
sbinner Sep 4, 2017
3b6fb8f
Use QTRY_COMPARE in tst_qwidget::activation() (Windows only)
FriedemannKleint Sep 6, 2017
3fe0809
Set the CROSS_COMPILE variable in Android mkspecs
jobor Aug 30, 2017
82ed3b8
Android: Use unified headers if available
bog-dan-ro Sep 7, 2017
202d3ba
Cocoa: Check if charactersIgnoringModifiers is not empty too
AndyShawQt Jan 12, 2017
452ad2b
Add documentation about not having QSqlDatabase objects kept around
AndyShawQt Sep 7, 2017
689606d
Cocoa: Update the known menu items when the QCocoaMenuBar is deleted
AndyShawQt Sep 6, 2017
79851be
Convert features.mainwindow to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
10601aa
Convert features.mdiarea to QT_[REQUIRE_]CONFIG
sbinner Aug 27, 2017
ba1b731
Blacklist tst_QOpenGL autotest in Windows 7
Sep 11, 2017
bef8b90
Convert features.sizegrip to QT_[REQUIRE_]CONFIG
sbinner Sep 2, 2017
df99fbd
Convert features.spinbox to QT_[REQUIRE_]CONFIG
sbinner Sep 2, 2017
710a918
Convert features.lineedit to QT_[REQUIRE_]CONFIG
sbinner Sep 2, 2017
79bf70b
Convert features.slider to QT_[REQUIRE_]CONFIG
sbinner Sep 2, 2017
01ea60f
Testlib: Do not list unsupported option
Sep 4, 2017
9ad0e09
QMenu: Fix size on high DPI + multi screen
tmartsum Aug 25, 2017
1d5e55c
Improve performance of QVariant::canConvert()
laknoll Sep 12, 2017
793f0dd
Win: Handle installation of read-only target files correctly
AndyShawQt Aug 18, 2017
1394610
Workaround for proxyChange failing when run alone
Morten242 Sep 13, 2017
84fcc38
Autotest: when using libproxy, QNetworkProxyFactory isn't generic
thiagomacieira Jul 20, 2017
b6e99ec
Optimize QVariant::cmp()
laknoll Sep 4, 2017
590e71a
Fix convertToFormat with color-tables
Sep 13, 2017
3d67793
Revamp SQL examples to C++11
MichaelWinkelmann Jul 20, 2017
342609b
Fix quoting of mocinclude.opt for paths containing spaces
jobor Sep 14, 2017
2d7b143
Fix conditions in some QMAKE_COMPILER_DEFINES assignments
rlohning Sep 14, 2017
ceffc7e
Exclude DBus performance test with -no-feature-process
jakepetroules Sep 15, 2017
7127202
Exclude tst_QDir::mkdirOnSymlink on Unix platforms without symlinks
jakepetroules Sep 15, 2017
2740b9d
Use QT_LSTAT instead of lstat directly
jakepetroules Sep 15, 2017
81a1905
QSharedPointer: fix undefined behavior in operator<
dangelog Sep 12, 2017
69b16a4
Exclude QSystemSemaphore test with -no-feature-systemsemaphore
jakepetroules Sep 16, 2017
54a242f
Add missing pwd.h include
jakepetroules Sep 18, 2017
83122b1
Remove unnecessary VxWorks ifdef
jakepetroules Sep 18, 2017
2d168af
OCI: Use correct type for getting doubles
AndyShawQt Dec 21, 2016
3c95c74
Fix recordOCI() test to treat clob/nclob as QByteArray
AndyShawQt Dec 21, 2016
4e30001
Mark Clang 5.0 as warning-free
thiagomacieira Apr 2, 2017
6c4a191
Hide ibus IM on password fields
Sep 15, 2017
14e20bb
windows: Blacklist Intel 8.15.10.1749
alpqr Sep 19, 2017
9833e68
Convert features.textedit to QT_[REQUIRE_]CONFIG
sbinner Sep 3, 2017
6d699d0
Convert features.menu to QT_[REQUIRE_]CONFIG
sbinner Sep 3, 2017
269c9fc
QGestureManager::filterEventThroughContexts(): Reduce debug output
FriedemannKleint Sep 20, 2017
35bb55c
Itemviews: Set the WA_InputMethodEnabled attribute correctly
AndyShawQt Aug 9, 2017
bbaedb9
Blacklist flaky QItemDelegate tests in openSUSE 42.3
Sep 13, 2017
30a6557
Blacklist tst_QItemDelegate::testLineEditValidation in openSUSE 42.3
Sep 18, 2017
e0c2d32
Fix #if-ery and accompanying comment
ediosyncratic Sep 20, 2017
bcd81a9
QAbstractSocket: remove disconnect timer
Sep 6, 2017
92ca091
Restore compatibility with pre-5.9 Keccak calculation
thiagomacieira Sep 14, 2017
7218800
Fix QGraphicsEffect draw error size in decimal scale factor
Sep 18, 2017
64ab748
XCB: also test for Xinerama's presence
thiagomacieira Sep 19, 2017
d253464
Only call mysql_library_end() once when using MariaDB
danvratil Sep 18, 2017
c84b4ff
QTabWidget: Don't build expensive parts of the style option when hidden
Aug 29, 2017
d29f0bc
Avoid calling QCompleter::popup() internally
Aug 25, 2017
4c025ca
QCompleter: Send activated() signal only once on return key
Aug 28, 2017
12a382e
Fix saving QImage with longer than necessary bytes-per-line
Sep 13, 2017
b0ffb33
Add missing math.h include (for sqrt function)
jakepetroules Sep 22, 2017
370f8ec
Fix parsing of tzfile(5) files in QTimeZonePrivate
thiagomacieira Sep 15, 2017
32ca19b
Fix typo in debug statement: QPlatformScren -> QPlatformScreen
iamsergio Sep 12, 2017
8d20fa1
Fix namespaced build on macOS
jakepetroules Sep 24, 2017
4dcd914
moc: don't use const_cast in qt_metacast generated code
ogoffart Sep 23, 2017
2c35ef0
doc: fix code snippet of qConstOverload usage
gatispaeglis Sep 22, 2017
aa4fef8
Make QDateTimeParser a separate feature
ediosyncratic Sep 11, 2017
d03dba3
Windows QPA: Move function to find screen by HWND to QWindowsScreenMa…
FriedemannKleint Sep 6, 2017
bd72ead
Fix docs about QMAKESPEC in INCLUDEPATH
Sep 19, 2017
b4e9cb4
Qmake: Introduce and use QMAKE_NULL_DEVICE variable
orgads Sep 24, 2017
f1ec81b
Windows QPA: Detect screen by mouse position when dragging a window
FriedemannKleint Sep 19, 2017
bc31d22
Windows QPA: Call raise() also for SubWindows with WindowStaysOnTopHint
FriedemannKleint Sep 19, 2017
2b51ad4
Cups: Check the created QPrintDevice is valid before using it
AndyShawQt Sep 25, 2017
807fa90
Fix crash with clips entirely outside glyph map
Sep 26, 2017
35781b3
Return focus to correct widget after showing menu
paulolav Aug 23, 2017
3369347
Remove unnecessary copying in QSet::subtract()
JKSH Sep 25, 2017
3d0fa4d
moc: remove useless cast in qt_static_metacall generated code
ericLemanissier Sep 26, 2017
3c59065
qglxconvenience: Avoid null pointer dereference
kbroulik Sep 12, 2017
f03cd9a
QAbstractSocket: fix handling of successful connectToHostByName()
Nov 9, 2016
16f144d
Do not define _HAS_EXCEPTIONS=0 in MSVC builds
jobor Sep 26, 2017
d5ae3b1
Reorder defines to respect alphabetic order in bootstrap config
ediosyncratic Sep 25, 2017
e96c56c
Blacklist tst_QWindow:testInputEvents on RHEL 7.4
Sep 26, 2017
267b1a1
regularexpression example: Fix compilation with clipboard disabled
FriedemannKleint Sep 26, 2017
ff2e9a1
Fix crash when reparenting window container
paulolav Sep 26, 2017
cbbf843
macOS: Bail out early when handling shortcut event results in closing…
andeplane Sep 28, 2017
8ea5c40
QWindowsMouseHandler: Add documentation link for bitmask magic
Sep 26, 2017
06cb408
Add support for ICC in toolchain.prf
Sep 26, 2017
4964314
HTTP/2 protocol handler: set redirect URL on reply
Sep 29, 2017
8b64a10
Fix cookies not being applied on redirect
Morten242 Sep 28, 2017
8883e44
Add changes file for Qt 5.9.2
jaheikk Sep 22, 2017
291233a
Fix strict-prototypes warning with qVersion function
jakepetroules Oct 1, 2017
ec16ba3
Revert "Qmake: Introduce and use QMAKE_NULL_DEVICE variable"
jaheikk Oct 2, 2017
3e2de48
OCI: Clear the cache in the result for a forward only query
AndyShawQt Sep 8, 2017
3faf8f4
tst_QSsl(longlongnamefollows) - fix a flakey auto-test
Oct 3, 2017
c5ef7bd
Remove // from license text
kkoehne Sep 8, 2017
d7c57fa
tests: un-blacklist tst_QMenuBar::taskQTBUG4965_escapeEaten
gatispaeglis Oct 3, 2017
ba42326
Improve performance in QThreadPool
dragly Sep 5, 2017
2755e02
Increase timeout for tst_QXmlSimpleReader::inputFromSocket() test
Oct 2, 2017
70ee089
Doc: Remove unsupported systems out of QNetworkDatagram's list
thiagomacieira Oct 5, 2017
f62768d
QUrl: re-fix the setPath("//path") case leading to scheme://path
thiagomacieira Sep 21, 2017
7f7d939
Windows: Let topmost and bottom windows use raise and lower respectively
Morten242 Oct 3, 2017
248beda
XCB platform: Fix crash on X servers with BGR888 display
aavit Oct 5, 2017
0366f68
Prevent changing the width for layout item's rect
Sep 15, 2017
c071413
Fix zero-length lines with scaling
Oct 5, 2017
7724e4f
Bump version
ossilator Oct 6, 2017
906ce1c
Merge remote-tracking branch 'origin/5.9.2' into 5.9
liangqi Oct 6, 2017
e470348
Fix deprecated API usage
jakepetroules Oct 6, 2017
10f2b5a
QUdpSocket: make sure receiveDatagram() returns empty on error
thiagomacieira Oct 5, 2017
6dea9bf
Documentation: Add missing event type for non-client mouse events
chrisaverage Jun 4, 2017
a24597d
Windows font database: Remove clamping of default font size
FriedemannKleint Oct 9, 2017
d20aa0d
Fix typo in QKeyEvent docs
The-Compiler Oct 9, 2017
a402b3a
Add support for HTTP status 308 Permanent Redirect
Morten242 Oct 4, 2017
e28fd64
Extend blacklisting of tst_gestures in RHEL
Oct 6, 2017
9909ff1
Fix blacklisting of tst_QOpenGL in Windows
Oct 9, 2017
f103356
QDockWidget - improve resize
tmartsum Oct 9, 2017
7f6f1d7
Revert "Do not include qfloat16 tables in arm64 builds"
Oct 10, 2017
e6fe342
Fix CVE-2017-10989 in sqlite
AndyShawQt Oct 9, 2017
e03b64c
Extend blacklisting of tst_qwidget tests to cover RHEL 7.3 & 7.4
Oct 11, 2017
8ac9add
QCocoaWindow: Toggle titlebar transparency to support unified toolbar
Oct 10, 2017
f6cca6a
Replace 'an unique' with 'a unique'
kkoehne Oct 5, 2017
bc74273
QPainter: fix invalid pen style when drawing misspelled words
dfaure-kdab Oct 6, 2017
5fa6438
Qmake: Introduce and use QMAKE_{SYSTEM,SHELL}_NULL_DEVICE variable, t…
orgads Sep 24, 2017
7809bba
QHostAddress::setAddress - fix an overload taking SpecialAddress
Oct 13, 2017
2d4fe25
Remove some unused, local variables
nierob Oct 12, 2017
e00b295
QSystemTrayIcon/Windows: Fix position of context menu with High DPI s…
FriedemannKleint Oct 16, 2017
10da5fb
Attach Qt main c++ thread to jvm at the early beginning
vok1980 Oct 6, 2017
f1838fd
qmake: Actually resolve QMAKE_SHELL_NULL_DEVICE when writing to Makefile
orgads Oct 15, 2017
49da5ce
ANGLE: Fix compilation with MinGW
orgads Oct 16, 2017
1982259
QShortcut: Fall back to cross platform code in absence of QPA menu
Oct 12, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Convert features.sizegrip to QT_[REQUIRE_]CONFIG
Change-Id: Ieac4ae1f0b8b84e943c00da9903346a44e57138c
Reviewed-by: Oswald Buddenhagen <[email protected]>
  • Loading branch information
sbinner committed Sep 12, 2017
commit bef8b905afec924936d7efcf150760ae86cc9e20
16 changes: 9 additions & 7 deletions src/widgets/dialogs/qdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
#include "qdesktopwidget.h"
#include "qapplication.h"
#include "qlayout.h"
#if QT_CONFIG(sizegrip)
#include "qsizegrip.h"
#endif
#if QT_CONFIG(whatsthis)
#include "qwhatsthis.h"
#endif
Expand Down Expand Up @@ -1005,7 +1007,7 @@ void QDialog::showExtension(bool showIt)
setFixedSize(w, height() + s.height());
}
d->extension->show();
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
const bool sizeGripEnabled = isSizeGripEnabled();
setSizeGripEnabled(false);
d->sizeGripEnabled = sizeGripEnabled;
Expand All @@ -1018,7 +1020,7 @@ void QDialog::showExtension(bool showIt)
resize(d->size);
if (layout())
layout()->setEnabled(true);
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
setSizeGripEnabled(d->sizeGripEnabled);
#endif
}
Expand Down Expand Up @@ -1079,7 +1081,7 @@ void QDialog::setModal(bool modal)

bool QDialog::isSizeGripEnabled() const
{
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
Q_D(const QDialog);
return !!d->resizer;
#else
Expand All @@ -1090,11 +1092,11 @@ bool QDialog::isSizeGripEnabled() const

void QDialog::setSizeGripEnabled(bool enabled)
{
#ifdef QT_NO_SIZEGRIP
#if !QT_CONFIG(sizegrip)
Q_UNUSED(enabled);
#else
Q_D(QDialog);
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
d->sizeGripEnabled = enabled;
if (enabled && d->doShowExtension)
return;
Expand All @@ -1115,15 +1117,15 @@ void QDialog::setSizeGripEnabled(bool enabled)
d->resizer = 0;
}
}
#endif //QT_NO_SIZEGRIP
#endif // QT_CONFIG(sizegrip)
}



/*! \reimp */
void QDialog::resizeEvent(QResizeEvent *)
{
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
Q_D(QDialog);
if (d->resizer) {
if (isRightToLeft())
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/dialogs/qdialog_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Q_WIDGETS_EXPORT QDialogPrivate : public QWidgetPrivate
mainDef(0),
#endif
orientation(Qt::Horizontal),extension(0), doShowExtension(false),
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
resizer(0),
sizeGripEnabled(false),
#endif
Expand All @@ -99,7 +99,7 @@ class Q_WIDGETS_EXPORT QDialogPrivate : public QWidgetPrivate
QWidget *extension;
bool doShowExtension;
QSize size, min, max;
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
QSizeGrip *resizer;
bool sizeGripEnabled;
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/kernel/qlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
#include "qmenubar.h"
#endif
#include "qtoolbar.h"
#if QT_CONFIG(sizegrip)
#include "qsizegrip.h"
#endif
#include "qevent.h"
#include "qstyle.h"
#include "qvariant.h"
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/styles/qcommonstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ void QCommonStyle::drawControl(ControlElement element, const QStyleOption *opt,
}
break;
#endif // QT_CONFIG(tabbar)
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
case CE_SizeGrip: {
p->save();
int x, y, w, h;
Expand Down Expand Up @@ -2013,7 +2013,7 @@ void QCommonStyle::drawControl(ControlElement element, const QStyleOption *opt,
}
p->restore();
break; }
#endif // QT_NO_SIZEGRIP
#endif // QT_CONFIG(sizegrip)
#if QT_CONFIG(rubberband)
case CE_RubberBand: {
if (const QStyleOptionRubberBand *rbOpt = qstyleoption_cast<const QStyleOptionRubberBand *>(opt)) {
Expand Down
4 changes: 3 additions & 1 deletion src/widgets/styles/qmacstyle_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
#if QT_CONFIG(scrollbar)
#include <qscrollbar.h>
#endif
#if QT_CONFIG(sizegrip)
#include <qsizegrip.h>
#endif
#include <qstyleoption.h>
#include <qtoolbar.h>
#if QT_CONFIG(toolbutton)
Expand Down Expand Up @@ -687,7 +689,7 @@ static QSize qt_aqua_get_known_size(QStyle::ContentsType ct, const QWidget *widg
else if (qobject_cast<const QMenuBar *>(widg))
ct = QStyle::CT_MenuBar;
#endif
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
else if (qobject_cast<const QSizeGrip *>(widg))
ct = QStyle::CT_SizeGrip;
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/styles/qmacstyle_mac_p_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@
#if QT_CONFIG(rubberband)
#include <qrubberband.h>
#endif
#if QT_CONFIG(sizegrip)
#include <qsizegrip.h>
#endif
#include <qspinbox.h>
#if QT_CONFIG(splitter)
#include <qsplitter.h>
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/styles/qstyleoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3558,7 +3558,7 @@ QStyleOptionTabBarBase::QStyleOptionTabBarBase(int version)

#endif // QT_CONFIG(tabbar)

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
/*!
\class QStyleOptionSizeGrip
\brief The QStyleOptionSizeGrip class is used to describe the
Expand Down Expand Up @@ -3638,7 +3638,7 @@ QStyleOptionSizeGrip::QStyleOptionSizeGrip(int version)

\sa StyleOptionType
*/
#endif // QT_NO_SIZEGRIP
#endif // QT_CONFIG(sizegrip)

/*!
\class QStyleOptionGraphicsItem
Expand Down
28 changes: 14 additions & 14 deletions src/widgets/widgets/qmdisubwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ QMdiSubWindowPrivate::QMdiSubWindowPrivate()
: baseWidget(0),
restoreFocusWidget(0),
controlContainer(0),
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
sizeGrip(0),
#endif
#if QT_CONFIG(rubberband)
Expand Down Expand Up @@ -1303,7 +1303,7 @@ void QMdiSubWindowPrivate::setNormalMode()
restoreSize.setWidth(-1);
restoreSize.setHeight(-1);

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
setSizeGripVisible(true);
#endif

Expand Down Expand Up @@ -1350,7 +1350,7 @@ void QMdiSubWindowPrivate::setMaximizeMode()

storeFocusWidget();

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
setSizeGripVisible(false);
#endif

Expand Down Expand Up @@ -2118,7 +2118,7 @@ void QMdiSubWindowPrivate::setWindowFlags(Qt::WindowFlags windowFlags)
}
#endif

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
if ((windowFlags & Qt::FramelessWindowHint) && sizeGrip)
delete sizeGrip;
#endif
Expand Down Expand Up @@ -2179,7 +2179,7 @@ QSize QMdiSubWindowPrivate::iconSize() const
return QSize(q->style()->pixelMetric(QStyle::PM_MdiSubWindowMinimizedWidth, 0, q), titleBarHeight());
}

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)

/*!
\internal
Expand Down Expand Up @@ -2223,7 +2223,7 @@ void QMdiSubWindowPrivate::setSizeGripVisible(bool visible) const
grip->setVisible(visible);
}

#endif // QT_NO_SIZEGRIP
#endif // QT_CONFIG(sizegrip)

/*!
\internal
Expand Down Expand Up @@ -2334,7 +2334,7 @@ void QMdiSubWindow::setWidget(QWidget *widget)
else
widget->setParent(this);

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
QSizeGrip *sizeGrip = widget->findChild<QSizeGrip *>();
if (sizeGrip)
sizeGrip->installEventFilter(this);
Expand Down Expand Up @@ -2639,7 +2639,7 @@ void QMdiSubWindow::showShaded()
if (hasFocus() || isAncestorOf(QApplication::focusWidget()))
d->ensureWindowState(Qt::WindowActive);

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
d->setSizeGripVisible(false);
#endif

Expand Down Expand Up @@ -2715,7 +2715,7 @@ bool QMdiSubWindow::eventFilter(QObject *object, QEvent *event)
}
#endif

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
if (object != d->baseWidget && parent() && qobject_cast<QSizeGrip *>(object)) {
if (event->type() != QEvent::MouseButtonPress || !testOption(QMdiSubWindow::RubberBandResize))
return QWidget::eventFilter(object, event);
Expand Down Expand Up @@ -2846,7 +2846,7 @@ bool QMdiSubWindow::event(QEvent *event)
d->isMaximizeMode = false;
d->isWidgetHiddenByUs = false;
if (!parent()) {
#if !defined(QT_NO_SIZEGRIP) && QT_CONFIG(style_mac)
#if QT_CONFIG(sizegrip) && QT_CONFIG(style_mac)
if (qobject_cast<QMacStyle *>(style()))
delete d->sizeGrip;
#endif
Expand Down Expand Up @@ -2941,7 +2941,7 @@ void QMdiSubWindow::showEvent(QShowEvent *showEvent)
return;
}

#if !defined(QT_NO_SIZEGRIP) && QT_CONFIG(style_mac)
#if QT_CONFIG(sizegrip) && QT_CONFIG(style_mac)
if (qobject_cast<QMacStyle *>(style()) && !d->sizeGrip
&& !(windowFlags() & Qt::FramelessWindowHint)) {
d->setSizeGrip(new QSizeGrip(this));
Expand Down Expand Up @@ -3079,7 +3079,7 @@ void QMdiSubWindow::leaveEvent(QEvent * /*leaveEvent*/)
void QMdiSubWindow::resizeEvent(QResizeEvent *resizeEvent)
{
Q_D(QMdiSubWindow);
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
if (d->sizeGrip) {
d->sizeGrip->move(isLeftToRight() ? width() - d->sizeGrip->width() : 0,
height() - d->sizeGrip->height());
Expand Down Expand Up @@ -3483,7 +3483,7 @@ void QMdiSubWindow::childEvent(QChildEvent *childEvent)
{
if (childEvent->type() != QEvent::ChildPolished)
return;
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
if (QSizeGrip *sizeGrip = qobject_cast<QSizeGrip *>(childEvent->child()))
d_func()->setSizeGrip(sizeGrip);
#endif
Expand Down Expand Up @@ -3541,7 +3541,7 @@ QSize QMdiSubWindow::minimumSizeHint() const
}
}

#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
// SizeGrip
int sizeGripHeight = 0;
if (d->sizeGrip && d->sizeGrip->isVisibleTo(const_cast<QMdiSubWindow *>(this)))
Expand Down
6 changes: 4 additions & 2 deletions src/widgets/widgets/qmdisubwindow_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
#if QT_CONFIG(menubar)
#include <QMenuBar>
#endif
#if QT_CONFIG(sizegrip)
#include <QSizeGrip>
#endif
#include <QPointer>
#include <QDebug>
#include <private/qwidget_p.h>
Expand Down Expand Up @@ -178,7 +180,7 @@ class QMdiSubWindowPrivate : public QWidgetPrivate
QPointer<QWidget> baseWidget;
QPointer<QWidget> restoreFocusWidget;
QPointer<QMdi::ControlContainer> controlContainer;
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
QPointer<QSizeGrip> sizeGrip;
#endif
#if QT_CONFIG(rubberband)
Expand Down Expand Up @@ -278,7 +280,7 @@ class QMdiSubWindowPrivate : public QWidgetPrivate
#endif
#endif // QT_NO_ACTION
QSize iconSize() const;
#ifndef QT_NO_SIZEGRIP
#if QT_CONFIG(sizegrip)
void setSizeGrip(QSizeGrip *sizeGrip);
void setSizeGripVisible(bool visible = true) const;
#endif
Expand Down
4 changes: 0 additions & 4 deletions src/widgets/widgets/qsizegrip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#include "qsizegrip.h"

#ifndef QT_NO_SIZEGRIP

#include "qapplication.h"
#include "qevent.h"
#include "qpainter.h"
Expand Down Expand Up @@ -507,5 +505,3 @@ bool QSizeGrip::event(QEvent *event)
QT_END_NAMESPACE

#include "moc_qsizegrip.cpp"

#endif //QT_NO_SIZEGRIP
5 changes: 2 additions & 3 deletions src/widgets/widgets/qsizegrip.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
#include <QtWidgets/qtwidgetsglobal.h>
#include <QtWidgets/qwidget.h>

QT_BEGIN_NAMESPACE
QT_REQUIRE_CONFIG(sizegrip);

QT_BEGIN_NAMESPACE

#ifndef QT_NO_SIZEGRIP
class QSizeGripPrivate;
class Q_WIDGETS_EXPORT QSizeGrip : public QWidget
{
Expand Down Expand Up @@ -76,7 +76,6 @@ class Q_WIDGETS_EXPORT QSizeGrip : public QWidget
Q_DISABLE_COPY(QSizeGrip)
Q_PRIVATE_SLOT(d_func(), void _q_showIfNotHidden())
};
#endif // QT_NO_SIZEGRIP

QT_END_NAMESPACE

Expand Down
Loading