X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=datamodel.py;h=828374e823cb63155f7d0d83215a69138fded421;hb=HEAD;hp=a90cbc7ab40c6de02d9c9870388e7060f847c17b;hpb=68348e5abaa05fbbde7f3e6b0b28c2d12a7a2601;p=sigrok-meter.git diff --git a/datamodel.py b/datamodel.py index a90cbc7..828374e 100644 --- a/datamodel.py +++ b/datamodel.py @@ -14,8 +14,7 @@ ## 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 . ## import itertools @@ -52,7 +51,7 @@ class MeasurementDataModel(QtGui.QStandardItemModel): '''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.''' @@ -235,7 +234,7 @@ class MultimeterDelegate(QtGui.QStyledItemDelegate): '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)