[rkward-cvs] SF.net SVN: rkward: [2301] trunk/rkward/rkward/robjectbrowser.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Jan 7 14:15:33 UTC 2008


Revision: 2301
          http://rkward.svn.sourceforge.net/rkward/?rev=2301&view=rev
Author:   tfry
Date:     2008-01-07 06:15:32 -0800 (Mon, 07 Jan 2008)

Log Message:
-----------
Fix Object Browser layout

Modified Paths:
--------------
    trunk/rkward/rkward/robjectbrowser.cpp

Modified: trunk/rkward/rkward/robjectbrowser.cpp
===================================================================
--- trunk/rkward/rkward/robjectbrowser.cpp	2008-01-03 17:27:27 UTC (rev 2300)
+++ trunk/rkward/rkward/robjectbrowser.cpp	2008-01-07 14:15:32 UTC (rev 2301)
@@ -2,7 +2,7 @@
                           robjectbrowser  -  description
                              -------------------
     begin                : Thu Aug 19 2004
-    copyright            : (C) 2004, 2006, 2007 by Thomas Friedrichsmeier
+    copyright            : (C) 2004, 2006, 2007, 2008 by Thomas Friedrichsmeier
     email                : tfry at users.sourceforge.net
  ***************************************************************************/
 
@@ -24,7 +24,7 @@
 #include <QFocusEvent>
 #include <QVBoxLayout>
 #include <QMenu>
-#include <QGroupBox>
+#include <QButtonGroup>
 
 #include <klocale.h>
 #include <kinputdialog.h>
@@ -272,19 +272,19 @@
 	QVBoxLayout *layout = new QVBoxLayout (this);
 	layout->setContentsMargins (0, 0, 0, 0);
 
-	QGroupBox* group = new QGroupBox (this);
-	QHBoxLayout *grouplayout = new QHBoxLayout (group);
-	grouplayout->setContentsMargins (0, 0, 0, 0);
-	all = new QRadioButton (i18n ("All"), group);
-	nonfunctions = new QRadioButton (i18n ("Non-Functions"), group);
-	functions = new QRadioButton (i18n ("Functions"), group);
-	grouplayout->addWidget (all);
-	grouplayout->addWidget (nonfunctions);
-	grouplayout->addWidget (functions);
+	QButtonGroup *group = new QButtonGroup (this);
+	QHBoxLayout *hbox = new QHBoxLayout ();
+	hbox->setContentsMargins (0, 0, 0, 0);
+	group->addButton (all = new QRadioButton (i18n ("All"), this));
+	group->addButton (nonfunctions = new QRadioButton (i18n ("Non-Functions"), this));
+	group->addButton (functions = new QRadioButton (i18n ("Functions"), this));
+	hbox->addWidget (all);
+	hbox->addWidget (nonfunctions);
+	hbox->addWidget (functions);
 	connect (all, SIGNAL(clicked(bool)), this, SLOT(modeChanged(bool)));
 	connect (nonfunctions, SIGNAL(clicked(bool)), this, SLOT(modeChanged(bool)));
 	connect (functions, SIGNAL(clicked(bool)), this, SLOT(modeChanged(bool)));
-	layout->addWidget (group);
+	layout->addLayout (hbox);
 
 	all_envirs = new QCheckBox (i18n ("Show All Environments"), this);
 	connect (all_envirs, SIGNAL (clicked(bool)), this, SLOT (boxChanged(bool)));


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