Class: Ruber::ProjectConfigWidget

Inherits:
Qt::Widget
  • Object
show all
Defined in:
lib/ruber/project.rb

Overview

Small class which can be used instead of Qt::Widget for widgets to be used in the configuration dialog.

The only difference between this class and Qt::Widget is in the arguments taken by the constructor: instead of taking the parent (which is instead set to nil), this class accepts the project the dialog refers to and stores it in its project attribute.

Direct Known Subclasses

ProjectFilesWidget

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ ProjectConfigWidget

Creates a new instance. project is the Project associated with the dialog the widget will be put into.



512
513
514
515
# File 'lib/ruber/project.rb', line 512

def initialize project
  super()
  @project = project
end

Instance Attribute Details

#projectObject (readonly)

The project associated with the dialog containing the widget



506
507
508
# File 'lib/ruber/project.rb', line 506

def project
  @project
end