X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Finifile.h;h=2ebe1c1c863c4ec340443e9d271900cb9f844453;hb=72ea4a16988f1c28e97064222e722f19bc31b3a6;hp=21a1bc4346ac293b8d96b03992242210efce013a;hpb=bb631d7ca67c86dd758428fb0e18b905514a16e3;p=evaf diff --git a/src/libs/Common/inifile.h b/src/libs/Common/inifile.h index 21a1bc4..2ebe1c1 100644 --- a/src/libs/Common/inifile.h +++ b/src/libs/Common/inifile.h @@ -59,7 +59,7 @@ namespace Internal { * of different data types: * * @li Bool - '0', 'false', 'off', 'no' are equal to false and '1', 'true', 'on', 'yes' are equal to true; - * @li Char - a single character or an ASCII code as '\0NNN' (oct) or '\0xNN' (hex); + * @li Char - a single character or an UTF-16 code as '\0NNNNNN' (oct) or '\0xNNNN' (hex); * @li Date - date string in the ISO 8601 format YYYY-MM-DD; * @li DateTime - date and time string in the ISO 8601 format YYY-MM-DDTHH:MM:SSTZD; * @li Double - the decimal point is always '.' regardless of the locale; @@ -119,7 +119,7 @@ public: * * @sa eVaf::Common::toVariant() */ - QVariant getValue(QString const & paramName, QVariant const & defaultValue = QVariant::Invalid); + QVariant getValue(QByteArray const & paramName, QVariant const & defaultValue = QVariant::Invalid); /** * Writes a value to the INI file. @@ -134,7 +134,7 @@ public: * The method returns true if the parameter value was written into the INI file and false if not. Use the errorString() method * to get a human-readable error string if writing to the INI file fails. */ - bool setValue(QString const & paramName, QVariant const & value); + bool setValue(QByteArray const & paramName, QVariant const & value); private: