refs #478 refs #488, utils / free functions

* seed for random numbers per thread
* added function to get all user metatypes as string
* added new read file function per path/name
* removed DBus operators for pixmap
* JSON operators for byte array
* util function for JSON string
This commit is contained in:
Klaus Basan
2015-10-14 01:48:52 +02:00
committed by Mathew Sutcliffe
parent 19df8a5d71
commit a725ce2181
14 changed files with 120 additions and 64 deletions

View File

@@ -35,11 +35,6 @@ inline void initBlackMiscResources()
// cannot be declared within namespace, see docu
// hence BlackMisc::initResources() calls this inline function
Q_INIT_RESOURCE(blackmisc);
// set seed for random number if ever used
// that is needed only once on application startup
QTime time = QTime::currentTime();
qsrand((uint)time.msec());
}
//! Free functions in BlackMisc
@@ -258,6 +253,9 @@ namespace BlackMisc
//! \remarks Used in order to debug code, do not remove
BLACKMISC_EXPORT void displayAllUserMetatypesTypes(QTextStream &out);
//! Get all user metatypes
BLACKMISC_EXPORT QString getAllUserMetatypesTypes(const QString &separator = "\n");
/*!
* \brief Calculate a single hash value based on a list of individual hash values
* \param values