## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
##
import itertools
'''Role used to store the device vendor and model.'''
descRole = QtCore.Qt.UserRole + 2
- '''Role used to store a dictionary with the traces'''
+ '''Role used to store a dictionary with the traces.'''
tracesRole = QtCore.Qt.UserRole + 3
'''Role used to store the color to draw the graph of the channel.'''
'Choose new color for channel')
if c.isValid():
# False if cancel is pressed (resulting in a black
- # color)
+ # color).
item = model.itemFromIndex(index)
item.setData(c, MeasurementDataModel.colorRole)