[rkward-cvs] rkward/rkward/windows detachedwindowcontainer.cpp,1.2,1.3
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Thu Nov 10 15:59:08 UTC 2005
Update of /cvsroot/rkward/rkward/rkward/windows
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv943/rkward/windows
Modified Files:
detachedwindowcontainer.cpp
Log Message:
Some code cleanups, and keep window captions up to date
Index: detachedwindowcontainer.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/windows/detachedwindowcontainer.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** detachedwindowcontainer.cpp 21 Oct 2005 16:04:32 -0000 1.2
--- detachedwindowcontainer.cpp 10 Nov 2005 15:59:05 -0000 1.3
***************
*** 44,48 ****
widget_to_capture->reparent (this, QPoint (0, 0));
setCentralWidget (widget_to_capture);
- setCaption (widget_to_capture->caption ());
createGUI (part_to_capture);
--- 44,47 ----
***************
*** 51,54 ****
--- 50,55 ----
// should self-destruct, when child widget is destroyed
connect (widget_to_capture, SIGNAL (destroyed (QObject *)), this, SLOT (viewDestroyed (QObject *)));
+ connect (widget_to_capture, SIGNAL (windowCaptionChanged (const QString&)), this, SLOT (setCaption (const QString&)));
+ setCaption (widget_to_capture->caption ()); // has to come after createGUI!
}
More information about the rkward-tracker
mailing list