- 27 Oct, 2016 - 4 commits
-
-
Kai Koehne authored
qgrayraster_p.h, qgrayraster.cpp contain code from Freetype which unfortunately cannot be excluded by e.g. '-no-freetype'. Document this code therefore separately. Change-Id: I20d79e984013b2aec874774ddc765b1dc57ebe0e Reviewed-by:
Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-
James McDonnell authored
Recontribute QUrl::fromUserInput under the corporate license agreement; i.e. remove the separate BSD license from the code. Change-Id: I1e0b4aab921fb20d2fd558fe732cea596ecbc9ca Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
Dongmei Wang authored
The menu scrollers and the tear off items are painted in the layer of QMenu. In a case that QMenu contains QWidgetAction items, the items are painted under QWidgetAction items. They are visually hidden unless QWidgetAction items' background is transparent. The tear off doesn't work since QWidgetAction item on top of it grabs mouse events. To fix the issue, add two child widgets in QMenu, paint the scroll up and the tear off items in one child widget and the scroll down item in the other one. Both child widgets are painted on top of overlapping sibling menu item widgets. Change-Id: I7eaef21b667b388fbb78b60664f4a4bd91215309 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@qt.io>
-
Dongmei Wang authored
The QAction items overlap with the menu scrollers. The patch is to set correct clip regions for QAction items in order not to overlap with the scroll arrows. Change-Id: Ie724bd2be522daf5935fb489523b5d5f32bb7f71 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@qt.io>
-
- 26 Oct, 2016 - 10 commits
-
-
Friedemann Kleint authored
Fixes qdoc warnings: qtbase/src/widgets/kernel/qwidget.cpp:13053: warning: Cannot find 'macCGHandle(...)' in '\fn' Qt::HANDLE QWidget::macCGHandle() const qtbase/src/widgets/kernel/qwidget.cpp:13062: warning: Cannot find 'macQDHandle(...)' in '\fn' Qt::HANDLE QWidget::macQDHandle() const qtbase/src/widgets/kernel/qwidget.cpp:13071: warning: Cannot find 'x11Info(...)' in '\fn' const QX11Info &QWidget::x11Info() const qtbase/src/widgets/kernel/qwidget.cpp:13080: warning: Cannot find 'x11PictureHandle(...)' in '\fn' Qt::HANDLE QWidget::x11PictureHandle() const They were accidentally re-added in e6ddae07 . Change-Id: I1531a795ad182bc0b54d70d52e83422e782cc948 Reviewed-by:
Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-
Lars Knoll authored
... and use that variable in qt_configure.prf to find the pkg-config we detected during qtbase configuration. This is required for modules outside of qtbase being able to use pkg-config to configure external libraries. We do not use the PKG_CONFIG variable any more, as that interferes with the $$pkgConfigExecutable() function, which some Qt modules still use. Change-Id: I8886a266207e04301009fe8207c16b02c5455b2f Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
Lars Knoll authored
According to the latest XDG spec, FontsLocation should point to XDG_DATA_DIR/fonts, not ~/.fonts. Task-number: QTBUG-55507 Change-Id: Ia62ffe172abbb93d5ce7fd58bdf038ff13954f1b Reviewed-by:
David Faure <david.faure@kdab.com>
-
Lars Knoll authored
replace explicit pkg-config uses with the results of configure tests, for consistency. Change-Id: I3587db6085798ea7a49f8871fc6838eb687a6391 Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
Oswald Buddenhagen authored
this enables running non-installed prefix builds. Change-Id: I4169f276ff28506d0532cfe01a03e0fa102a25f8 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
Oswald Buddenhagen authored
Change-Id: Ia192aab9981a790f1a74a83d4894395b454ab0c1 Reviewed-by:
Jake Petroules <jake.petroules@qt.io>
-
Oswald Buddenhagen authored
QT_FOR_PRIVATE should end up in QT_PRIVATE instead of QT after being recorded in the private module pri. otherwise it's added to LIBS and becomes part of the library's (and thus also the public module's) link interface. after the fix, only the (semantically redundant) resolution of qt module dependencies will add the private deps, and only when the private module is explicitly requested. Change-Id: I3378457013cad5fa611a22ccbe184e6aa675a2ef Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
Kai Koehne authored
The origin of the class predate git history, but it has been apparently unused in Qt since Qt 4.5 times. Removing this relieves us from documenting its custom license. Change-Id: Ie91be5f0b2fbaf10dc212c44ebd37e6b9d781592 Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
Jesus Fernandez authored
Allows the usage of _BitScanForward, _BitScanReverse, __popcnt and __popcnt16 functions. Fixes part of the build with MSVC15. Change-Id: I5ec37184209196ad19beddb4d6a36f9a9fd3b315 Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
Thiago Macieira authored
Apparently, the CI can run something over 1000x slower than on my machine. We're getting over 100 ms delays in operations that shouldn't have taken more than half a millisecond. The last report was of 136% over budget, so I multiplied the resolution by 4. Change-Id: I9093948278414644a416fffd1474406967b2a6ee Reviewed-by:
Frederik Gladhorn <frederik.gladhorn@qt.io>
-
- 25 Oct, 2016 - 2 commits
-
-
Anton Kudryavtsev authored
For CoW types, prefer const methods to avoid needless detach()ing. Change-Id: I625d57c0c19e87ac2de681bb16d0cc5a7a59b366 Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io>
-
Anton Kudryavtsev authored
QVector was used as just RAII for local array. It's inefficient usage of CoW type. So use QVarLengthArray instead. Change-Id: I494ecc49af9049569a65e258581137bad3ce7dc7 Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io> Reviewed-by:
Marc Mutz <marc.mutz@kdab.com>
-
- 24 Oct, 2016 - 5 commits
-
-
Kai Koehne authored
Change-Id: If2db8db20cac00a0e4fa89721ede17a41a18e3c1 Reviewed-by:
Topi Reiniö <topi.reinio@theqtcompany.com>
-
Jarek Kobus authored
With the current API it is not possible to reset the index into -1. We have setClean() method, but we are lacking setDirty(). This is needed in case when the document has changed outside of the editor and nothing has changed in the undo stack history. In this case we don't know the state of the file modified externally so we need to mark that editor's contents is different from the file contents and undoing or redoing commands can't bring the editor to the clean state. This may also be useful to call it when we created a new document and haven't saved it yet or when the document was restored from backup file. Task-number: QTCREATORBUG-17048 Change-Id: I64e2052b3559299e0b6939831557a07a59a851b6 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
Eskil Abrahamsen Blomfeldt authored
Change ddef89b3 broke decorations set using setExtraSelections(), because these decorations are drawn with a second drawTextItem() call where numGlyphs is set to 0. When the drawTextDecoration() call was moved into the branches for multi/no-multi font engines, the call for the cut-off when numGlyphs == 0 was unintentionally removed. Task-number: QTBUG-54626 Change-Id: Ieb9fc23099a9d7daf87cc364d3fc9da128ec516d Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
Kai Koehne authored
Also explicitly mention the GPL exception for OpenSSL. Change-Id: I460189ee4d2dd79f8eca320ac82460e186b0f84c Reviewed-by:
Topi Reiniö <topi.reinio@theqtcompany.com>
-
Kai Koehne authored
The property is 'purpose' now. Also elaborate a bit more on the feature. Change-Id: I66aa4165044f132dff018cfd01d54b939bb64fac Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
- 23 Oct, 2016 - 1 commit
-
-
Thiago Macieira authored
error #68: integer conversion resulted in a change of sign Change-Id: I33dc971f005a4848bb8ffffd1475ee53d394acf6 Reviewed-by:
Andrew Knight <andrew.knight@intopalo.com> Reviewed-by:
Laszlo Agocs <laszlo.agocs@qt.io>
-
- 21 Oct, 2016 - 3 commits
-
-
Marc Mutz authored
The new takeRow() functions return a pair of pointers to QLayoutItems and, as the name particle 'take' suggests, releases ownership of these layout items. Which in turn means that the caller of the function is supposed to deal with them. This was not done here. To fix, write a RAII class that takes ownership of the returned layout items, deleting them when it goes out of scope or gets a new value assigned (only move special member functions are implemented, making the class move -only). Deleting the QLayoutItems is not so easy, though: QFormLayout has a special function for clearing the QLayoutItems out, so it appears that just calling their destructors is not going to fly (though I don't know off the top of the head why that should be a problem). Solve this, for now, by adding the layout items back into a temporary QFormLayout for destruction. Change-Id: If862989207b20f1e3f757c19ec9d498c4491184f Reviewed-by:
Samuel Gaist <samuel.gaist@edeltech.ch> Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
Timur Pocheptsov authored
HTTP/2 allows a server to pre-emptively send (or "push") responses (along with corresponding "promised" requests) to a client in association with a previous client-initiated request. This can be useful when the server knows the client will need to have those responses available in order to fully process the response to the original request. Server push is semantically equivalent to a server responding to a request; however, in this case, that request is also sent by the server, as a PUSH_PROMISE frame. The PUSH_PROMISE frame includes a header block that contains a complete set of request header fields that the server attributes to the request. After sending the PUSH_PROMISE frame, the server can begin delivering the pushed response as a response on a server-initiated stream that uses the promised stream identifier. This patch: - fixes the HPACK decompression of PUSH_PROMISE frames; - allows a user to enable PUSH_PROMISE; - processes and caches pushed data for promised streams; - updates auto-test - emulates a simple PUSH_PROMISE scenario. Change-Id: Ic4850863a5e3895320baac3871a723fc091b4aca Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io>
-
Anton Kudryavtsev authored
Change-Id: Id78ce43137e352292a9933222fe2f92d4ff4d69b Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io> Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
- 20 Oct, 2016 - 2 commits
-
-
Oswald Buddenhagen authored
the parens aren't matched, so the syntax was bogus. amends 32a3413b . Task-number: QTBUG-56580 Change-Id: Ic00ba50844b822c7e4524ae81fbb1bc112a158a9 Reviewed-by:
Jake Petroules <jake.petroules@qt.io> Reviewed-by:
Liang Qi <liang.qi@qt.io>
-
Tor Arne Vestbø authored
The Qt::ISODate format strips milliseconds, so a new format is introduced that keeps the milliseconds. A new format was chosen over fixing the existing format due to the behavioral change of suddenly having ms as part of Qt::ISODate. Change-Id: If8b852daed068cce8eee9b61a7cd4576bc763443 Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
- 19 Oct, 2016 - 3 commits
-
-
Leena Miettinen authored
Apparently, the example has been moved. Change-Id: If68e5db87321e8ff4af652a1cbbd0c3243acb515 Reviewed-by:
Topi Reiniö <topi.reinio@theqtcompany.com>
-
Oswald Buddenhagen authored
mac/sdk.prf puts some indirections into them. Task-number: QTBUG-56580 Change-Id: I8ffd2438309702466edd3ad5c51284c7cab4fda9 Reviewed-by:
Jake Petroules <jake.petroules@qt.io>
-
Friedemann Kleint authored
QBenchmarkTimeMeasurer uses the 3rd party header cycle_p.h which may include windows.h on Windows (32bit). This can cause clashes in qmltest, which uses QBenchmarkMeasurerBase. Move the derived classes to a separate header to prevent this. Change-Id: I943a11c32a575594e6e79e722e8809b42de35092 Reviewed-by:
Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
- 18 Oct, 2016 - 9 commits
-
-
Anton Kudryavtsev authored
Prefer QStringRef methods to avoid allocations. Use startsWith/endsWith rather than comparing substrings; and avoid substrings where references suffice. Use new QStringList::join(QL1S). Change-Id: I46c44aca96578633370006d613eb0ac13f7cfc03 Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io> Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
Anton Kudryavtsev authored
Use QStringBuilder more. Avoid quadratic behavior when prepending zeros in a loop, prepend whole string intead. Use const API more for CoW types. Change-Id: If114107dc3d9876b9a7c77bc0071878cb6e00892 Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io> Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
Anton Kudryavtsev authored
Change-Id: I1b639272d38f8463b17a85a406addb74bb572756 Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io> Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
Anton Kudryavtsev authored
Replace if-else chain with switch statement. Change-Id: Idd2d0198178685bdaf8f77fa6cae5025ea9de561 Reviewed-by:
Edward Welbourne <edward.welbourne@qt.io> Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
Marc Mutz authored
By templating on the <chrono> types and unconditionally using duration_cast to coerce the duration into a milliseconds, we violate a principal design rule of <chrono>, namely that non- narrowing conversions are implicit, but narrowing conversions need duration_cast. By accepting any duration, we allow non- sensical code such as QTimer::singleShot(10us, ...) to compile, which is misleading, since it's actually a zero- timeout timer. Overloading a non-template with a template also has adverse effects: it breaks qOverload(). Fix by replacing the function templates with functions that just take std::chrono::milliseconds. This way, benign code such as QTimer::singleShot(10s, ...) QTimer::singleShot(10min, ...) QTimer::singleShot(1h, ...) work as expected, but attempts to use sub-millisecond resolution fails to compile / needs an explicit user- provided duration_cast. To allow future extension to more precise timers, forcibly inline the functions, so they don't partake in the ABI of the class and we can later support sub-millisecond resolution by simply taking micro- or nano- instead of milliseconds. Change-Id: I12c9a98bdabefcd8ec18a9eb09f87ad908d889de Reviewed-by:
Thiago Macieira <thiago.macieira@intel.com>
-
Oswald Buddenhagen authored
Change-Id: Idd137251c6db5effd3571591d837d49e8fb9525d Reviewed-by:
Jake Petroules <jake.petroules@qt.io> Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
Oswald Buddenhagen authored
all users of this functionality have been removed, and not emitting the version info saves quite some noise from the generated files. the reason why the users have been removed is that it was unreliable in the first place: if a dependency is found without pkg-config, no version information would be available. the extraction of the version via pkg-config itself is kept in place, as configure tests could be potentially optimized by utilizing it. this reverts much of commit 48b4e0bf . Change-Id: I01917f3b2a56b747d7cc54955141d20d23d0990a Reviewed-by:
Jake Petroules <jake.petroules@qt.io> Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
Oswald Buddenhagen authored
amends 310bf3f5 . Change-Id: I6706e9435b7af558a3639d5824330d57430bb057 Reviewed-by:
Jake Petroules <jake.petroules@qt.io> Reviewed-by:
Lars Knoll <lars.knoll@qt.io>
-
Lars Knoll authored
Otherwise, those tools do not compile in configurations which exclude features that these tools require (e.g., -no-feature-textcodec). Change-Id: I9f27257221755a35a48ae2efa9df63f1a319118e Reviewed-by:
Lars Knoll <lars.knoll@qt.io> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-
- 17 Oct, 2016 - 1 commit
-
-
Eskil Abrahamsen Blomfeldt authored
At certain sizes and scales, GDI will clip away the bottom line of pixels when rendering the MingLiU fonts. Since DirectWrite renders it correctly, we force the use of DirectWrite in this case. This also requires supporting classic GDI rendering in the DirectWrite engine, to make sure the rendering still looks correct. Note that this does not cover the corner case where the font is loaded directly from data with QRawFont. [ChangeLog][QtGui][Windows] Fixed rendering error when using the MingLiU fonts at certain combinations of pixel size and scale. Task-number: QTBUG-49346 Change-Id: Ie026c0d5932717858c4536dae077013eb6a1eafc Reviewed-by:
Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by:
Simon Hausmann <simon.hausmann@qt.io>
-