- 10 Mar, 2018 - 2 commits
-
-
Eric Lemanissier authored
they were missing in dd58ddd5 Change-Id: I52a2f855ead7716f8fe887524b27d4bd258f43d3 Reviewed-by:
Allan Sandfeld Jensen <allan.jensen@qt.io>
-
Nils Jeisecke authored
The Q_GADGET macro cannot be used in templates. It can however be useful to derive a template class from a Q_GADGET enabled base class to benefit from type safety features in C++ (e.g. the class could represent an id or handle for some C++ type). For proper wrapping of a QVariant with a gadget value in a QJSValue, the QMetaType::IsGadget flag must be set for the registered template instance type - which does not happen prior to the fix because IsGadgetHelper requires qt_check_for_QGADGET_macro to be defined in the registered class but not in an ancestor class - in other words: The class must declare Q_GADGET. To overcome this, IsGadgetHelper/IsPointerToGadgetHelper can now differentiate between a Q_GADGET flagged class (allowing automatic registration) and a derived class, e.g. a template class (forcing Q_DECLARE_METATYPE to be used explicitly). [ChangeLog][QtCore][QMetaObject] It is now possible to use template class instances inheriting from a Q_GADGET in Qml Task-number: QTBUG-66744 Change-Id: I7632ad45cff79fa422b3f852ca0b963f35fab155 Reviewed-by:
Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
-
- 09 Mar, 2018 - 3 commits
-
-
David Faure authored
The check on line 972 says lcQpaXInputEvents().isDebugEnabled() so that debug output was always showing "from 0,0" due to lastScrollPosition not being set. Change-Id: I345732e36db05108f70474261c47e78333b57d30 Reviewed-by:
Allan Sandfeld Jensen <allan.jensen@qt.io>
-
Alexander Volkov authored
Divide the whole FP1616 value by 0x10000 instead of dividing the integer part by 0x10000 and the fractional part by 0xFFFF. It also makes fixed1616ToInt() consistent with fixed1616ToReal(), see 7d3f353a . Change-Id: Id76025028c926872b002ef0a1ca8a8bdc2de3e1e Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io>
-
Alexander Shevchenko authored
That is correct C++. GCC (and apparently Clang) accept it after the name for compatibility with the old __attribute__ syntax. Change-Id: Ie7f3adaaed83198ca1c61bc0efdf51634e457b07 Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
- 08 Mar, 2018 - 2 commits
-
-
Sergio Martins authored
If buddy is deleted then QLabel will still try to deliver the shortcut event to it, in QLabel::event(), and cras. Besides connecting to destroyed() which alone fixes the crash, also hardened it and guarded against dereferencing null buddy, in the unlikely event of someone adding features to QLabel. The second part is suitable for backporting to the LTS branches. Task-Id: QTBUG-66841 Change-Id: Ib6a36a9f99cee31afe1f88eb77f5b6cafb8b1086 Reviewed-by:
Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
-
Mitch Curtis authored
- Fix grammar - Mention take() Change-Id: I3bde229755549230ad3d0962da6eeb164a060fb1 Reviewed-by:
Andy Shaw <andy.shaw@qt.io>
-
- 07 Mar, 2018 - 15 commits
-
-
Kari Oikarinen authored
The test has been flaky on top of QEMU. The test is clearly a sort of manually rolled benchmark, not a regular autotest. Remove the test and replace it with a benchmark in QObjectBenchmark. Task-number: QTBUG-66823 Task-number: QTBUG-66216 Change-Id: I7a48293023f32141eed6fea50fbb63af18933a8f Reviewed-by:
Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
-
Gabriel de Dietrich authored
Since we made the NSMenu delegate a singleton we could not rely on it to have enough information to implement worksWhenModal. At the same time as the delegate change, we derived NSMenu into QCocoaNSMenu. This allows us to extend the menu functionality and, in this case, serve as target for the Cocoa menu items. We also refactor setting the item's target/action. Manually tested against menurama and bigmenucreator tests, the test-case for QTBUG-17291, and the richtext/textedit example. Change-Id: I222241f71db82611711b23d4a8c6122a741370ae Task-number: QTBUG-66676 Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-
Christian Ehrlicher authored
They were forgotten when the overloads for append()/push_back() were added in Qt 5.6 [ChangeLog][QtCore][QVarLengthArray] Added missing rvalue overload of operator+=() and operator<<() [ChangeLog][QtCore][QVector] Added missing rvalue overload of operator+=() and operator<<() Change-Id: I20fedfba2bf282773bd1f9cf2c8ec06f05896a7d Reviewed-by:
Martin Smith <martin.smith@qt.io> Reviewed-by:
Mårten Nordheim <marten.nordheim@qt.io>
-
Christian Ehrlicher authored
Rearrange QSqlFieldPrivate members to only need 64Byte instead 72 in an 64bit environment. Change-Id: I620c18aca06a11b7ab4bd8e99b377b9d823da7f4 Reviewed-by:
Andy Shaw <andy.shaw@qt.io>
-
Christian Ehrlicher authored
When QStandardItem::insertRows/Columns is called with an empty list or an insert count of 0, do not assert but return false. Task-number: QTBUG-66491 Change-Id: I328598e08584fb9b0a35075458bfeb31c57ebfee Reviewed-by:
Samuel Gaist <samuel.gaist@edeltech.ch> Reviewed-by:
Richard Moe Gustavsen <richard.gustavsen@qt.io>
-
Christian Ehrlicher authored
Since Qt 5.4 the QTabBar can be automatically hidden when it has less then 2 tabs. Therefore the sizeHint should not consider the tabbars size when the tabbar is hidden. Task-number: QTBUG-64715 Change-Id: I2f248f88d9070de5354f7344c7628a78442ab499 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by:
Richard Moe Gustavsen <richard.gustavsen@qt.io>
-
Christian Ehrlicher authored
Postgresql needs a special value for nan and +/- inf. This was considered during insert but not during select. Also remove some pre-c++11 inf/nan - handling and replace it with Qt equivalents. Change-Id: I044ca58e9cf673f4b100b05a0d8e25c8a9c29ec5 Reviewed-by:
Robert Szefner <robertsz27@interia.pl> Reviewed-by:
Andy Shaw <andy.shaw@qt.io>
-
Marcus Calhoun-Lopez authored
On Apple OSes, both compilers and linkers are given an absolute path. For consistency, the same should be done with the C linkers. The change is also a convenience to the MacPorts project, which actively discourages ambiguous compiler names. (https://trac.macports.org/wiki/UsingTheRightCompiler ). Change-Id: Ic1885aed825340696e9fde766788eebf51de3ff6 Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-
Tor Arne Vestbø authored
The privately exported qt_logging_to_console() function has been renamed to shouldLogToStderr, and exported in the QtPrivate namespace for QtTestLib. [ChangeLog][Important behavior changes][Logging (including qDebug and qWarning)] The QT_LOGGING_TO_CONSOLE environment variable has been deprecated. Use the more specific QT_ASSUME_STDERR_HAS_CONSOLE or QT_FORCE_STDERR_LOGGING, depending on your usecase. Change-Id: Ie29228eeac3b700c3de94fee022d5d66d9b5c210 Reviewed-by:
Simon Hausmann <simon.hausmann@qt.io>
-
Kari Oikarinen authored
Task-number: QTBUG-66851 Task-number: QTBUG-66216 Change-Id: Iea3d7823ccef718b52d097298250efddc981f3bb Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
Kari Oikarinen authored
Avoid lots of warnings about not being able to set "modal". Change-Id: I396718f14a55203f9989c03e20efc647c64795a9 Reviewed-by:
Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
-
Ville Voutilainen authored
This reverts commit 2eec3272 . The change to qWaitForWindowActive causes regressions in qtdeclarative, so we need a better fix for the problems we have with window waiting. Task-number: QTBUG-66866 Change-Id: I8300dabc870d6aeaa9ba6bfcf3d64146b13c1955 Reviewed-by:
Sami Nurmenniemi <sami.nurmenniemi@qt.io> Reviewed-by:
Mitch Curtis <mitch.curtis@qt.io>
-
Friedemann Kleint authored
Determine the virtual desktop geometry in native pixels from the QPlatformScreen siblings. Use the platform window to determine the local position. Task-number: QTBUG-36937 Change-Id: Ic250f1b41d8e74099558796112dbd70a7e1f6956 Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io>
-
Friedemann Kleint authored
Use the new API of QWindowSystemInterface to send the release event which does not depend on the state of QGuiApplicationPrivate::mouse_buttons. Amends 1f6bd8bf . Task-number: QTBUG-66447 Change-Id: Iae889ea416b633c9307da9535dfb51ad1dbf288e Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io>
-
David Faure authored
The code that updates a section size must also update length, otherwise saveState can end up saving inconsistent state, and restoreState() goes to an early-return, not doing anything. The actual bug was fixed meanwhile because _q_sectionsChanged is called again, which recalculates length. I still see this only as a safety measure, every other code path that changes section sizes updates length right away. Change-Id: I6cc16261692d93b3640afafef600a5bdff8dca0c Reviewed-by:
Thorbjørn Lund Martsum <tmartsum@gmail.com>
-
- 06 Mar, 2018 - 6 commits
-
-
Johan Klokkhammer Helsing authored
Before running tests that depend on QWindow::requestActivate Gets rid of several Wayland platform checks in tst_QWindow. Change-Id: I7a5e029044a968dfcf87ecbb5105c01d52852d35 Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by:
Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
-
Johan Klokkhammer Helsing authored
And make it easier to fix if platformName == wayland-egl etc. Change-Id: Ia2d62ba003796e08f3e8a5bbfd0c3fd9d185e4e0 Reviewed-by:
Pier Luigi Fiorini <pierluigi.fiorini@liri.io> Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io>
-
Johan Klokkhammer Helsing authored
Task-number: QTBUG-66824 Change-Id: I33b826c2a373b264cc9b66444c52070eac1cdd5c Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io>
-
Shawn Rutledge authored
If you enable both qt.qpa.input.touch and qt.qpa.cocoa.mouse you can see the order and interleaving of the touch and scroll events. Task-number: QBUG-66329 Change-Id: I8e1a63e2958b85f7964bb597e49cf8529cb3f32e Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-
Jarek Kobus authored
Task-number: QTBUG-66753 Change-Id: I31bd821396b59c8e83e19e02634cf1440a271215 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
Vyacheslav Koscheev authored
Task-number: QTBUG-66770 Change-Id: I5e8ced0fa60c67d7908f21e5c486fea0d7a50004 Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by:
BogDan Vatra <bogdan@kdab.com>
-
- 05 Mar, 2018 - 10 commits
-
-
Nico Vertriest authored
Changed old signal/slot syntax to new version Task-number: QTBUG-60635 Change-Id: I7cbe8851d321b7632a08c098b69a96cc346d5f83 Reviewed-by:
Topi Reiniö <topi.reinio@qt.io>
-
Kimmo Ollila authored
This is needed to be compatible with latest Qualcomm BSP releases. This patch also makes it possible to select HW layer via QT_OPENWFD_CLIENT_ID and QT_OPENWFD_PIPELINE_ID environment variables. Change-Id: Ie795b21afc61a1de7c1d0b52cdb30a754e3f8266 Reviewed-by:
Janne Koskinen <janne.p.koskinen@qt.io> Reviewed-by:
Timo Aarnipuro <timo.aarnipuro@qt.io> Reviewed-by:
Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit 00f693d3 ) Reviewed-by:
Simon Hausmann <simon.hausmann@qt.io>
-
Sergio Martins authored
"since format" copied from QEvent's documentation. Change-Id: Ib11609cd11f9cb9906d947f46c2cd61c7abd853a Reviewed-by:
Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-
Johan Klokkhammer Helsing authored
By using qWaitForWindowExposed instead of qWaitForWindowActivated. Task-number: QTBUG-66824 Change-Id: Idf604157070731d9c92ccf64d8349c8571960b7c Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io>
-
Johan Klokkhammer Helsing authored
The test actually passes, so there's no need to skip it. Task-number: QTBUG-66824 Change-Id: Id091776ff7ca7637fdcf0e0ced833982b5788d92 Reviewed-by:
Shawn Rutledge <shawn.rutledge@qt.io>
-
Simon Hausmann authored
The default value for a default constructed FindFlags QFlag is zero and FindCaseSensitively is 0x2. Therefore the default behavior for find() is case insensitive. Change-Id: Id3419c3562fc6170fdb281098a22dd8205603847 Task-number: QTBUG-62660 Reviewed-by:
Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-
André Klitzing authored
Found by spotbugs. Change-Id: I0aa81e45ced0a995adb5e4a45be925e5ef219a77 Reviewed-by:
Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-
Liang Qi authored
Task-number: QTBUG-66756 Change-Id: I5a00625b73085a9ac2471b03bcc21db4b9a98962 Reviewed-by:
Kari Oikarinen <kari.oikarinen@qt.io> Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io>
-
Kari Oikarinen authored
Has been flaky in CI. Task-number: QTBUG-66815 Task-number: QTBUG-66216 Change-Id: I2c3eb42507eae618486aa402474b4b3f85ff310e Reviewed-by:
Frederik Gladhorn <frederik.gladhorn@qt.io>
-
Andy Shaw authored
This follows on from a2322519 which covered a similar instance of this. As with that change, we should not abort the compilation, just ignore it. Task-number: QTBUG-63772 Change-Id: Ide958080a90f43ed19edd8a320e7d45de1c96821 Reviewed-by:
Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
-
- 04 Mar, 2018 - 1 commit
-
-
Christian Ehrlicher authored
When _q_sectionsChanged() is called from e.g. QSortFilterProxyModel the LayoutChangeHint is set which can be used to avoid useless work in this function. Change-Id: I034db3fcc7a5f9ea7ebc0fa3ffd7429edb154eb7 Reviewed-by:
Richard Moe Gustavsen <richard.gustavsen@qt.io>
-
- 03 Mar, 2018 - 1 commit
-
-
Christian Ehrlicher authored
The indentation of large code blocks in setModel() and clear() are not correct. Needed for another change to avoid whitespace changeds in there. Change-Id: I620c8c5e83e98747f5c17469738722cf976fb467 Reviewed-by:
David Faure <david.faure@kdab.com> Reviewed-by:
Thorbjørn Lund Martsum <tmartsum@gmail.com>
-