Feature request: Force predefined window's size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QBzr |
Confirmed
|
Low
|
Unassigned |
Bug Description
This hack required for using Qbzr on Slackware Linux with WindowMaker windows manager when windows titles are disabled. Qt is incorrectly detect the size of the qdiff window and maximized flag, and always reset those data to some defaults. With the change below it's possible to avoid this effect.
=== modified file 'lib/util.py'
--- lib/util.py 2010-05-25 11:45:52 +0000
+++ lib/util.py 2011-01-28 09:22:09 +0000
@@ -289,6 +289,11 @@
def restoreSize(self, name, defaultSize):
+ size = QtCore.QSize(1280, 1024)
+ self.resize(
+
+ def restoreSize_
+ self._window_name = name
config = QBzrGlobalConfig()
size = config.
if size:
Actually even self.resize is not needed.
The best way for us to workaround this problem with weird window managers is to introduce special config option to avoid save/restore the size and allow the user to force some size for all q-windows.
Changed in qbzr: | |
status: | New → Confirmed |
importance: | Undecided → Low |
description: | updated |
tags: | added: qdiff |
# bzr --version
Bazaar (bzr) 2.2.2
Python interpreter: /usr/bin/python 2.5.2
...
version of Qt: 4.5.1
version of PyQt 4.7.3
OS: Slackware 12.2