| 2794 | } |
| 2795 | |
| 2796 | void QItemSetupDialog::updateMappingCodeDisplay() |
| 2797 | { |
| 2798 | if (m_MappingCodeLineEdit == Q_NULLPTR) { |
| 2799 | return; |
| 2800 | } |
| 2801 | |
| 2802 | if (m_ItemRow < 0 || m_ItemRow >= QKeyMapper::KeyMappingDataList->size()) { |
| 2803 | m_MappingCodeLineEdit->clear(); |
| 2804 | m_MappingCodeLineEdit->setToolTip(QString()); |
| 2805 | return; |
| 2806 | } |
| 2807 | |
| 2808 | const QString mappingCode = QKeyMapper::generateMappingCode(QKeyMapper::KeyMappingDataList->at(m_ItemRow)); |
| 2809 | m_MappingCodeLineEdit->setText(mappingCode); |
| 2810 | m_MappingCodeLineEdit->setCursorPosition(0); |
| 2811 | m_MappingCodeLineEdit->setToolTip(tr("Generated automatically from the current mapping item settings")); |
| 2812 | } |
| 2813 | |
| 2814 | void QItemSetupDialog::refreshAllRelatedUI() |
| 2815 | { |
no test coverage detected