path: root/examples/widgets/itemviews/addressbook/tablemodel.cpp
diff options
authorAlex Trotsenko <>2021-07-21 14:44:13 +0300
committerAlex Trotsenko <>2021-08-01 20:20:46 +0300
commit3bc976c2bda1516066de1eeb706826d26b098952 (patch)
treebbee6cba66c1f37afde40ca8c662f824e177a294 /examples/widgets/itemviews/addressbook/tablemodel.cpp
parent69c833dae91d004b48f815e0156d6caeb4cdb491 (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 <> Reviewed-by: Oswald Buddenhagen <>
Diffstat (limited to 'examples/widgets/itemviews/addressbook/tablemodel.cpp')
0 files changed, 0 insertions, 0 deletions