Class: Systray
- Inherits:
-
RubyQt6::Bando::QWidget
- Object
- RubyQt6::Bando::QWidget
- Systray
- Defined in:
- lib/clash-systray/app/views/systray.rb,
lib/clash-systray/app/views/systray/helpers.rb
Defined Under Namespace
Modules: Helpers
Instance Method Summary collapse
-
#initialize ⇒ Systray
constructor
A new instance of Systray.
- #show ⇒ Object
Constructor Details
#initialize ⇒ Systray
Returns a new instance of Systray.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/clash-systray/app/views/systray.rb', line 11 def initialize super initialize_actions @systray = QSystemTrayIcon.new(self) @systray.set_icon(QApplication.window_icon) @systray.(@menu) end |
Instance Method Details
#show ⇒ Object
22 23 24 |
# File 'lib/clash-systray/app/views/systray.rb', line 22 def show @systray.show end |