Class: Ruber::ProjectConfigWidget
- 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
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
The project associated with the dialog containing the widget.
Instance Method Summary collapse
-
#initialize(project) ⇒ ProjectConfigWidget
constructor
Creates a new instance.
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
#project ⇒ Object (readonly)
The project associated with the dialog containing the widget
506 507 508 |
# File 'lib/ruber/project.rb', line 506 def project @project end |