(self)
Rename selected categories and merging them.

        Popup an editable combo box for selection/edit of a new value.
Rename selected categories and merging them.
Rename selected categories and merging them .
def _rename_selected_categories(self):
        """
        Rename selected categories and merging them.

        Popup an editable combo box for selection/edit of a new value.
        """
        view = self.values_edit
        selmodel = view.selectionModel()
        index = view.currentIndex()
        if not selmodel.isSelected(index):
            indices = selmodel.selectedRows(0)
            if indices:
                index = indices[0]
        # delegate to the CategoriesEditDelegate
        view.edit(index)
def _rename_selected_categories ( self ) : view = self . values_edit selmodel = view . selectionModel ( ) index = view . currentIndex ( ) if not selmodel . isSelected ( index ) : indices = selmodel . selectedRows ( 0 ) if indices : index = indices [ 0 ] # delegate to the CategoriesEditDelegate view . edit ( index )