[rkward/releases/0.6.4] rkward: Fix optionset header status updating.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Sun Dec 6 10:55:50 UTC 2015


Git commit a9e68fac948d020a6eaedfc2f1b47abefeefaa54 by Thomas Friedrichsmeier.
Committed on 06/12/2015 at 10:55.
Pushed by tfry into branch 'releases/0.6.4'.

Fix optionset header status updating.

M  +4    -0    rkward/misc/rkaccordiontable.cpp
M  +2    -2    rkward/plugins/testing/optionset.xml

http://commits.kde.org/rkward/a9e68fac948d020a6eaedfc2f1b47abefeefaa54

diff --git a/rkward/misc/rkaccordiontable.cpp b/rkward/misc/rkaccordiontable.cpp
index d374451..115eac0 100644
--- a/rkward/misc/rkaccordiontable.cpp
+++ b/rkward/misc/rkaccordiontable.cpp
@@ -153,6 +153,7 @@ public:
 		connect (source_model, SIGNAL (rowsInserted(const QModelIndex&,int,int)), this, SLOT (r_rowsInserted(QModelIndex,int,int)));
 		connect (source_model, SIGNAL (rowsRemoved(const QModelIndex&,int,int)), this, SLOT (r_rowsRemoved(QModelIndex,int,int)));
 		connect (source_model, SIGNAL (dataChanged(QModelIndex,QModelIndex)), this, SLOT (r_dataChanged(QModelIndex,QModelIndex)));
+		connect (source_model, SIGNAL (headerDataChanged(Qt::Orientation,int,int)), this, SLOT (r_headerDataChanged(Qt::Orientation,int,int)));
 		connect (source_model, SIGNAL (layoutChanged()), this, SLOT (r_layoutChanged()));
 		QAbstractProxyModel::setSourceModel (source_model);
 	}
@@ -183,6 +184,9 @@ public slots:
 	void r_dataChanged (const QModelIndex& from, const QModelIndex& to) {
 		emit (dataChanged (mapFromSource (from), mapFromSource (to)));
 	}
+	void r_headerDataChanged(Qt::Orientation o,int from,int to) {
+		emit (headerDataChanged (o, from, to));
+	}
 	void r_layoutChanged () {
 		emit (layoutChanged());
 	}
diff --git a/rkward/plugins/testing/optionset.xml b/rkward/plugins/testing/optionset.xml
index bbf60e8..2a87fd7 100644
--- a/rkward/plugins/testing/optionset.xml
+++ b/rkward/plugins/testing/optionset.xml
@@ -19,7 +19,7 @@
 		</text>
 		<tabbook>
 			<tab label="Manual set">
-				<optionset id="mset" exp_mode="accordion">
+				<optionset id="mset" min_rows="1">
 					<content>
 						<row>
 							<varselector id="vars"/>
@@ -36,7 +36,7 @@
 				</optionset>
 			</tab>
 			<tab label="Manual set B">
-				<optionset id="msetb" exp_mode="detached">
+				<optionset id="msetb">
 					<content>
 						<frame>
 							<optiondisplay index="true"/>



More information about the rkward-tracker mailing list