[PATCH v2 4/6] kernel-shark: Add getIds() to class KsCheckBoxWidget

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a simple "get" method that returns a copy of the vector of Ids
managed by this CheckBox widget.
---
 kernel-shark/src/KsWidgetsLib.hpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/kernel-shark/src/KsWidgetsLib.hpp b/kernel-shark/src/KsWidgetsLib.hpp
index 0d79250..59e773d 100644
--- a/kernel-shark/src/KsWidgetsLib.hpp
+++ b/kernel-shark/src/KsWidgetsLib.hpp
@@ -99,6 +99,12 @@ public:
 
 	void set(QVector<bool> v);
 
+	/**
+	 * Get a vector containing all Ids (can be PID CPU Ids etc.) managed
+	 * by this widget.
+	 */
+	QVector<int> getIds() const {return _id;}
+
 	QVector<int> getCheckedIds();
 
 private:
-- 
2.20.1




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux