equal
deleted
inserted
replaced
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)) { |