Class: Ruber::FindInFiles::ReplaceWidget::Model

Inherits:
OutputWidget::Model show all
Defined in:
plugins/find_in_files/find_in_files_widgets.rb

Overview

Model used in the ReplaceWidget

It only differs from #OutputWidget::Model in the flags it gives to items

Instance Attribute Summary

Attributes inherited from OutputWidget::Model

global_flags

Instance Method Summary (collapse)

Methods inherited from OutputWidget::Model

#initialize, #insert, #insert_lines, #set

Methods inherited from Qt::StandardItemModel

#each, #each_row

Constructor Details

This class inherits a constructor from Ruber::OutputWidget::Model

Instance Method Details

- (Object) flags(idx)



208
209
210
211
212
213
214
215
# File 'plugins/find_in_files/find_in_files_widgets.rb', line 208

def flags idx
  default_flags = Qt::ItemIsSelectable | Qt::ItemIsEnabled
  if !idx.parent.valid? or idx.column == 0 
    default_flags | Qt::ItemIsUserCheckable
  else default_flags
  end
  
end