~ian-clatworthy/bzr-explorer/extensible-init-workspace

« back to all changes in this revision

Viewing changes to lib/tool_dialogs.py

  • Committer: Alexander Belchenko
  • Date: 2009-12-11 08:05:35 UTC
  • Revision ID: bialix@ukr.net-20091211080535-ii1976mb8in6zh9f
use QVariant to be compatible with PyQt 4.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
    def _build_combo_with_labels(self, data_label_tuples):
62
62
        combo = QtGui.QComboBox()
63
63
        for data, label in data_label_tuples:
64
 
            combo.addItem(label, data)
 
64
            combo.addItem(label, QtCore.QVariant(data))
65
65
        return combo
66
66
 
67
67
    def _build_icon_selector(self):