diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2021-07-21 14:44:13 +0300 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2021-08-01 20:20:46 +0300 |
commit | 3bc976c2bda1516066de1eeb706826d26b098952 (patch) | |
tree | bbee6cba66c1f37afde40ca8c662f824e177a294 /src/plugins/platforms/xcb/qxcbclipboard.cpp | |
parent | 69c833dae91d004b48f815e0156d6caeb4cdb491 (diff) |
QIODevice: allow subclasses to enforce unbuffered mode
For subclasses that implement alternative buffering (such as
QLocalSocket), it would be useful to bypass the QIODevice's internal
buffer, even if the QIODeviceBase::Unbuffered flag is not set when
opened.
By setting the readBufferChunkSize member to 0 in their constructors,
these classes now unconditionally switch the base class to unbuffered
mode, while still reporting buffering with openMode() function.
Change-Id: I351bc57ac0ccb45c81f8c6be15f1745131aa26ba
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbclipboard.cpp')
0 files changed, 0 insertions, 0 deletions