Utility functions
Convert an object getter to a collection getter. The resulting class is callable and will make sure object_getter is only called once, even if collection getter is called multiple times.
Like ugettext but look the message up in the specified domain. This uses the Translation table.
Parameters: | qobj – a QtCore.QObject |
---|---|
Returns: | True if the qobj was deleted, False otherwise |
Parameters: | qobj – a QtCore.QObject |
---|---|
Returns: | True if the qobj was deleted, False otherwise |
Parameters: | qobj – a QtCore.QObject |
---|---|
Returns: | True if the qobj was deleted, False otherwise |
Fill the global dictionary of translations with all data from the database, to be able to do fast gui thread lookups of translations
Store a tranlation in the global translation dictionary
Translate the string_to_translate to the language of the current locale. This is a two step process. First the function will try to get the translation out of the Translation entity, if this is not successfull, the function will ask QCoreApplication to translate string_to_translate (which tries to get the translation from the .qm files)
Like :function:`ugettext`, but delays the translation until the string is shown to the user. This makes it possible for the user to translate the string.
Try to convert a QVariant to a python object as good as possible