src/ChildWidget.cpp
/* Get symbol string and convert it to hexadecimal codes */
Get symbol string and convert it to hexadecimal codes
Get symbol string and convert it to hexadecimal codes
QString ChildWidget::getSymbolHexCode() {
  if (DMESS > 10) qDebug() << Q_FUNC_INFO;
  QModelIndex index = selectionModel->currentIndex();
  if (index.isValid()) {
    QString symbol = model->index(index.row(), 0).data().toString();
    QString result = "";
    for (int i = 0; i < symbol.size(); ++i) {
      QString str2 = QString::number(symbol[i].unicode(),
                                     16).toUpper().rightJustified(4, '0');
      result.append("0x" + str2 + " ");
    }
    return result;
  }
  return QString::null;
}
QString ChildWidget :: getSymbolHexCode ( ) { if ( DMESS > 10 ) qDebug ( ) << Q_FUNC_INFO ; QModelIndex index = selectionModel -> currentIndex ( ) ; if ( index . isValid ( ) ) { QString symbol = model -> index ( index . row ( ) , 0 ) . data ( ) . toString ( ) ; QString result = " " ; for ( int i = 0 ; i < symbol . size ( ) ; ++ i ) { QString str2 = QString :: number ( symbol [ i ] . unicode ( ) , 16 ) . toUpper ( ) . rightJustified ( 4 , ' ' ) ; result . append ( " " + str2 + " " ) ; } return result ; } return QString :: null ; }
Get symbol string and convert it to hexadecimal codes
Get symbol string and convert it to hexadecimal codes