def _setup_symbol_combo(self): self._symbols = list(POINT_ICONS.keys()) for idx, symbol in enumerate(self._symbols): icon = symbol_icon(symbol) self.ui.combo_symbol.addItem(icon, '', userData=symbol) self.ui.combo_symbol.setIconSize(QtCore.QSize(20, 20)) self.ui.combo_symbol.setMinimumSize(10, 32)
def __init__(self, layer, parent=None, edit_label=True): super(StyleDialog, self).__init__(parent) self.setWindowTitle("Style Editor") self.layer = layer self._edit_label = edit_label self._symbols = list(POINT_ICONS.keys()) self._setup_widgets() self._connect()
def _setup_symbol_combo(self): self._symbols = list(POINT_ICONS.keys()) for idx, symbol in enumerate(self._symbols): icon = symbol_icon(symbol) self.ui.combo_symbol.addItem(icon, '', userData=symbol) self.ui.combo_symbol.setIconSize(QtCore.QSize(16, 16))
def _setup_symbol_combo(self): self._symbols = list(POINT_ICONS.keys()) for idx, symbol in enumerate(self._symbols): icon = symbol_icon(symbol) self.ui.combo_symbol.addItem(icon, '', userData=symbol) self.ui.combo_symbol.setMinimumSize(10, 32)