examples/help/contextsensitivehelp/wateringconfigdialog.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    52     m_widgetInfo.insert(m_ui.startTimeEdit, tr("starting time"));
    52     m_widgetInfo.insert(m_ui.startTimeEdit, tr("starting time"));
    53     m_widgetInfo.insert(m_ui.amountSpinBox, tr("water amount"));
    53     m_widgetInfo.insert(m_ui.amountSpinBox, tr("water amount"));
    54     m_widgetInfo.insert(m_ui.sourceComboBox, tr("water source"));
    54     m_widgetInfo.insert(m_ui.sourceComboBox, tr("water source"));
    55     m_widgetInfo.insert(m_ui.filterCheckBox, tr("water filtering"));
    55     m_widgetInfo.insert(m_ui.filterCheckBox, tr("water filtering"));
    56 
    56 
    57     connect(qApp, SIGNAL(focusChanged(QWidget*, QWidget*)),
    57     connect(qApp, SIGNAL(focusChanged(QWidget*,QWidget*)),
    58         this, SLOT(focusChanged(QWidget*, QWidget*)));
    58         this, SLOT(focusChanged(QWidget*,QWidget*)));
    59 }
    59 }
    60 
    60 
    61 void WateringConfigDialog::focusChanged(QWidget *, QWidget *now)
    61 void WateringConfigDialog::focusChanged(QWidget *, QWidget *now)
    62 {
    62 {
    63     if (m_widgetInfo.contains(now)) {
    63     if (m_widgetInfo.contains(now)) {