[rkward-cvs] SF.net SVN: rkward: [2075] branches/KDE4_port/rkward/windows

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Oct 15 22:53:12 UTC 2007


Revision: 2075
          http://rkward.svn.sourceforge.net/rkward/?rev=2075&view=rev
Author:   tfry
Date:     2007-10-15 15:53:11 -0700 (Mon, 15 Oct 2007)

Log Message:
-----------
Make the basic window layout work

Modified Paths:
--------------
    branches/KDE4_port/rkward/windows/rktoolwindowbar.cpp
    branches/KDE4_port/rkward/windows/rkworkplace.cpp

Modified: branches/KDE4_port/rkward/windows/rktoolwindowbar.cpp
===================================================================
--- branches/KDE4_port/rkward/windows/rktoolwindowbar.cpp	2007-10-15 22:40:44 UTC (rev 2074)
+++ branches/KDE4_port/rkward/windows/rktoolwindowbar.cpp	2007-10-15 22:53:11 UTC (rev 2075)
@@ -108,8 +108,7 @@
 	int id = widget_to_id[widget];
 
 	// close any others
-	QMap<RKMDIWindow*, int>::const_iterator it = widget_to_id.constBegin ();
-	while (it != widget_to_id.constEnd()) {
+	for (QMap<RKMDIWindow*, int>::const_iterator it = widget_to_id.constBegin (); it != widget_to_id.constEnd (); ++it) {
 		RKMDIWindow *cur = it.key ();
 		if (cur != widget) {
 			if (cur->isAttached ()) {
@@ -170,8 +169,7 @@
 RKMDIWindow* RKToolWindowBar::idToWidget (int id) {
 	RK_TRACE (APP);
 
-	QMap<RKMDIWindow*, int>::const_iterator it = widget_to_id.constBegin ();
-	while (it != widget_to_id.constEnd()) {
+	for (QMap<RKMDIWindow*, int>::const_iterator it = widget_to_id.constBegin (); it != widget_to_id.constEnd (); ++it) {
 		if (it.value () == id) {
 			return (it.key ());
 		}

Modified: branches/KDE4_port/rkward/windows/rkworkplace.cpp
===================================================================
--- branches/KDE4_port/rkward/windows/rkworkplace.cpp	2007-10-15 22:40:44 UTC (rev 2074)
+++ branches/KDE4_port/rkward/windows/rkworkplace.cpp	2007-10-15 22:53:11 UTC (rev 2075)
@@ -89,6 +89,9 @@
 	tool_window_bars[KMultiTabBar::Right] = new RKToolWindowBar (KMultiTabBar::Right, hbox);
 	tool_window_bars[KMultiTabBar::Right]->setSplitter (horiz_splitter);
 
+	// now add it all to this widget
+	QVBoxLayout *box = new QVBoxLayout (this);
+	box->addWidget (hbox);
 
 	history = new RKMDIWindowHistory (this);
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list