SF.net SVN: fclient:[851] trunk/fclient/fclient/impl/lib/qt4ex/ dlgpreferences.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-08-02 09:41:10
|
Revision: 851
http://fclient.svn.sourceforge.net/fclient/?rev=851&view=rev
Author: jUrner
Date: 2008-08-02 09:41:20 +0000 (Sat, 02 Aug 2008)
Log Message:
-----------
looks like a comb-over is necessary
Modified Paths:
--------------
trunk/fclient/fclient/impl/lib/qt4ex/dlgpreferences.py
Modified: trunk/fclient/fclient/impl/lib/qt4ex/dlgpreferences.py
===================================================================
--- trunk/fclient/fclient/impl/lib/qt4ex/dlgpreferences.py 2008-08-02 00:01:59 UTC (rev 850)
+++ trunk/fclient/fclient/impl/lib/qt4ex/dlgpreferences.py 2008-08-02 09:41:20 UTC (rev 851)
@@ -16,6 +16,7 @@
# x. maybe call close on all pages to allow for cleanup
# x. maybe weakref this thingy
# x. user hits apply then hits cancel. can't tell from the top of my head ...should we undo changes?
+# x. path to page (on title bar feedback) is always name of the page not path as expected
#
#*******************************************************************************
"""Preferences dialog"""
@@ -535,14 +536,13 @@
# setup page controler
self._pageControler = PageControler(
- self,
- self.onPageControler,
- self.controlById(self.IdFramePages),
- self.controlById(self.IdButtonBox),
- maxPageDepth=maxDepth,
- pages=pages
- )
-
+ self,
+ self.onPageControler,
+ self.controlById(self.IdFramePages),
+ self.controlById(self.IdButtonBox),
+ maxPageDepth=maxDepth,
+ pages=pages
+ )
if caption is None:
self.setWindowTitle(self._oldWindowTitle)
else:
@@ -563,10 +563,7 @@
else:
self.restoreState(state)
-
-
-
#########################################
## overwritten methods
########################################
@@ -579,7 +576,6 @@
self.setCursor(oldCursor)
QtGui.QDialog.accept(self)
-
#######################################
## slots
#######################################
@@ -717,14 +713,10 @@
out = QtCore.QString()
while True:
out.prepend(page.displayName() + '/')
- #out.append(page.displayName())
+ test.append(page)
if page.isRoot():
break
page = page.parent()
- if page.parent() is None:
- break
- #out.reverse()
- #title = self._oldWindowTitle + ' - [' + '/'.join(out) + ']'
title = QtCore.QString('%1 - [%2]').arg(self._oldWindowTitle, out)
QtGui.QDialog.setWindowTitle(self, title)
@@ -737,9 +729,7 @@
In contrast to DlgPreferencesTree(), child pages of a page have a fixed indent
and no decorations are shown to save space. Best use with page hirarchys nested
at most 1 level deep.
-
"""
-
def __init__(self, *args, **kwargs):
kwargs['maxDepth'] = 1
DlgPreferencesTree.__init__(self, *args, **kwargs)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|