MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / updateMappingCodeDisplay

Method updateMappingCodeDisplay

QKeyMapper/qitemsetupdialog.cpp:2796–2812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2794}
2795
2796void 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
2814void QItemSetupDialog::refreshAllRelatedUI()
2815{

Callers 1

notifySaveSettingDirtyFunction · 0.80

Calls 2

sizeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected