File: mappingtable.cpp

package info (click to toggle)
kylin-display-switch 3.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 524 kB
  • sloc: cpp: 3,821; xml: 24; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#include "mappingtable.h"

MappingTable::MappingTable(QObject *parent) : QObject(parent)
{
    metaTipIcon = QMetaEnum::fromType<MappingTable::MTIKey>();

}

QString MappingTable::keyCodeToString(int code){
    return metaTipIcon.valueToKey(code);    //未匹配到则返回空
}