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.
466 467 468 469 |
# File 'lib/ruber/project.rb', line 466 def initialize project super() @project = project end |
Instance Attribute Details
#project ⇒ Object (readonly)
The project associated with the dialog containing the widget
460 461 462 |
# File 'lib/ruber/project.rb', line 460 def project @project end |