[rkward-cvs] SF.net SVN: rkward:[3702] trunk/rkward/rkward/settings

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Jun 27 12:17:44 UTC 2011


Revision: 3702
          http://rkward.svn.sourceforge.net/rkward/?rev=3702&view=rev
Author:   tfry
Date:     2011-06-27 12:17:44 +0000 (Mon, 27 Jun 2011)

Log Message:
-----------
Silence some runtime warnings.

Modified Paths:
--------------
    trunk/rkward/rkward/settings/rksettingsmodulegraphics.cpp
    trunk/rkward/rkward/settings/rksettingsmoduleoutput.cpp

Modified: trunk/rkward/rkward/settings/rksettingsmodulegraphics.cpp
===================================================================
--- trunk/rkward/rkward/settings/rksettingsmodulegraphics.cpp	2011-06-26 17:57:44 UTC (rev 3701)
+++ trunk/rkward/rkward/settings/rksettingsmodulegraphics.cpp	2011-06-27 12:17:44 UTC (rev 3702)
@@ -63,12 +63,12 @@
 	graphics_hist_box->setCheckable (true);
 	graphics_hist_box->setChecked (graphics_hist_enable);
 	group_layout = new QVBoxLayout (graphics_hist_box);
-	connect (graphics_hist_box, SIGNAL (toggled ()), this, SLOT (boxChanged ()));
-	QHBoxLayout *h_layout = new QHBoxLayout (graphics_hist_box);
+	connect (graphics_hist_box, SIGNAL (toggled (bool)), this, SLOT (boxChanged ()));
+	QHBoxLayout *h_layout = new QHBoxLayout ();
 	group_layout->addLayout (h_layout);
 	h_layout->addWidget (new QLabel (i18n ("Maximum number of recorded plots:"), graphics_hist_box));
 	h_layout->addWidget (graphics_hist_max_length_box = new KIntSpinBox (1, 200, 1, graphics_hist_max_length, graphics_hist_box));
-	h_layout = new QHBoxLayout (graphics_hist_box);
+	h_layout = new QHBoxLayout ();
 	group_layout->addLayout (h_layout);
 	h_layout->addWidget (new QLabel (i18n ("Maximum size of a single recorded plot (in KB):"), graphics_hist_box));
 	h_layout->addWidget (graphics_hist_max_plotsize_box = new KIntSpinBox (4, 20000, 4, graphics_hist_max_plotsize, graphics_hist_box));

Modified: trunk/rkward/rkward/settings/rksettingsmoduleoutput.cpp
===================================================================
--- trunk/rkward/rkward/settings/rksettingsmoduleoutput.cpp	2011-06-26 17:57:44 UTC (rev 3701)
+++ trunk/rkward/rkward/settings/rksettingsmoduleoutput.cpp	2011-06-27 12:17:44 UTC (rev 3702)
@@ -66,8 +66,6 @@
 	connect (cc_command_output_box, SIGNAL (clicked(bool)), this, SLOT (settingChanged()));
 	group_layout->addWidget (cc_command_output_box);
 
-	cc_globally_enabled_box->setLayout (group_layout);
-
 	update ();
 	instances.append (this);
 }
@@ -168,7 +166,7 @@
 
 	group = new QGroupBox (i18n ("Graphics"), this);
 	group_layout = new QVBoxLayout (group);
-	QHBoxLayout *h_layout = new QHBoxLayout (group);
+	QHBoxLayout *h_layout = new QHBoxLayout ();
 	group_layout->addLayout (h_layout);
 	h_layout->addWidget (new QLabel (i18n ("File format"), group));
 	h_layout->addWidget (graphics_type_box = new QComboBox (group));
@@ -186,7 +184,7 @@
 	connect (graphics_jpg_quality_box, SIGNAL (valueChanged (int)), this, SLOT (boxChanged()));
 	h_layout->addStretch ();
 
-	h_layout = new QHBoxLayout (group);
+	h_layout = new QHBoxLayout ();
 	group_layout->addLayout (h_layout);
 	h_layout->addWidget (new QLabel (i18n ("Width:"), group));
 	h_layout->addWidget (graphics_width_box = new KIntSpinBox (1, INT_MAX, 1, graphics_width, group));


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