E5Gui/E5SideBar.py

branch
5_2_x
changeset 2096
63205cd717b5
parent 1509
c0b5e693b0eb
child 2114
c07f0cb40b18
equal deleted inserted replaced
2093:060d051757a2 2096:63205cd717b5
490 self.__minSize = self.minimumSizeHint().width() 490 self.__minSize = self.minimumSizeHint().width()
491 self.__maxSize = self.maximumWidth() 491 self.__maxSize = self.maximumWidth()
492 492
493 data = QByteArray() 493 data = QByteArray()
494 stream = QDataStream(data, QIODevice.WriteOnly) 494 stream = QDataStream(data, QIODevice.WriteOnly)
495 stream.setVersion(QDataStream.Qt_4_6)
495 496
496 stream.writeUInt16(self.Version) 497 stream.writeUInt16(self.Version)
497 stream.writeBool(self.__minimized) 498 stream.writeBool(self.__minimized)
498 stream << self.__bigSize 499 stream << self.__bigSize
499 stream.writeUInt16(self.__minSize) 500 stream.writeUInt16(self.__minSize)
522 minSize = self.layout.minimumSize().width() 523 minSize = self.layout.minimumSize().width()
523 maxSize = self.maximumWidth() 524 maxSize = self.maximumWidth()
524 525
525 data = QByteArray(state) 526 data = QByteArray(state)
526 stream = QDataStream(data, QIODevice.ReadOnly) 527 stream = QDataStream(data, QIODevice.ReadOnly)
528 stream.setVersion(QDataStream.Qt_4_6)
527 stream.readUInt16() # version 529 stream.readUInt16() # version
528 minimized = stream.readBool() 530 minimized = stream.readBool()
529 531
530 if minimized: 532 if minimized:
531 self.shrink() 533 self.shrink()

eric ide

mercurial