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.
481 482 483 484 |
# File 'lib/ruber/project.rb', line 481 def initialize project super() @project = project end |
Instance Attribute Details
#project ⇒ Object (readonly)
The project associated with the dialog containing the widget
475 476 477 |
# File 'lib/ruber/project.rb', line 475 def project @project end |