lib/jacman/qt/base/central_widget.rb
# Add a subtitle label with a help button
# @param [String] title label of the line
# @param [Symbol] help_command slot to call by button
Add a subtitle label with a help button
Add a subtitle label with a help button
def add_line_header_with_help(title, help_command)
        horiz = Qt::HBoxLayout.new
        label = Qt::Label.new("<b>#{title.upcase}</b>")
        label.indent = 50
        horiz.add_widget(label)
        help_button = Qt::PushButton.new(Icons.icon('standardbutton-help'), 'Aide')
        self.class.slots help_command
        connect(help_button, SIGNAL(:clicked), self, SLOT(help_command))
        horiz.add_stretch
        horiz.add_widget(help_button)
        @layout.add_layout(horiz)
      end
def add_line_header_with_help ( title , help_command ) horiz = Qt :: HBoxLayout . new label = Qt :: Label . new ( "<b>#{title.upcase}</b>" ) label . indent = 50 horiz . add_widget ( label ) help_button = Qt :: PushButton . new ( Icons . icon ( 'standardbutton-help' ) , 'Aide' ) self . class . slots help_command connect ( help_button , SIGNAL ( :clicked ) , self , SLOT ( help_command ) ) horiz . add_stretch horiz . add_widget ( help_button ) @layout . add_layout ( horiz ) end
Add a subtitle label with a help button
Add a subtitle label with a help button
# noinspection RubyArgCount # noinspection RubyArgCount
title
<not_specific>
help_command
<not_specific>
<not_specific>
help_command slot to call by button
help_command slot to call by button