Feature request: Force predefined window's size

Bug #709114 reported by vitaly.v.ch
6
This bug affects 1 person
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):
         self._window_name = name
+ size = QtCore.QSize(1280, 1024)
+ self.resize(size.expandedTo(self.minimumSizeHint()))
+
+ def restoreSize_disabled(self, name, defaultSize):
+ self._window_name = name
         config = QBzrGlobalConfig()
         size = config.get_user_option(name + "_window_size")
         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.

Tags: qdiff
Changed in qbzr:
status: New → Confirmed
importance: Undecided → Low
description: updated
tags: added: qdiff
Revision history for this message
vitaly.v.ch (vitaly-v-ch) wrote :

# 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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.