Qt Utilities  5.11.0
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Namespaces | Functions
resources.cpp File Reference
#include "./resources.h"
#include "resources/config.h"
#include <QDir>
#include <QFile>
#include <QFont>
#include <QIcon>
#include <QLibraryInfo>
#include <QLocale>
#include <QSettings>
#include <QString>
#include <QStringBuilder>
#include <QTranslator>
#include <QCoreApplication>
#include <iostream>
Include dependency graph for resources.cpp:

Go to the source code of this file.

Namespaces

 QtUtilitiesResources
 !
 
 TranslationFiles
 Convenience functions to load translations for Qt and the application.
 
 ApplicationInstances
 Convenience functions to check whether a QCoreApplication/QGuiApplication/QApplication singleton has been instantiated yet.
 
 ConfigFile
 Provides convenience functions for handling config files.
 

Functions

QT_UTILITIES_EXPORT void QtUtilitiesResources::init ()
 Initiates the resources used and provided by this library. More...
 
QT_UTILITIES_EXPORT void QtUtilitiesResources::cleanup ()
 Frees the resources used and provided by this library. More...
 
QT_UTILITIES_EXPORT QString & TranslationFiles::additionalTranslationFilePath ()
 Allows to set an additional search path for translation files. More...
 
QT_UTILITIES_EXPORT void TranslationFiles::loadQtTranslationFile (std::initializer_list< QString > repositoryNames)
 Loads and installs the appropriate Qt translation file for the current locale. More...
 
void TranslationFiles::loadQtTranslationFile (initializer_list< QString > repositoryNames, const QString &localeName)
 Loads and installs the appropriate Qt translation file for the specified locale. More...
 
QT_UTILITIES_EXPORT void TranslationFiles::loadApplicationTranslationFile (const QString &applicationName)
 Loads and installs the appropriate application translation file for the current locale. More...
 
QT_UTILITIES_EXPORT void TranslationFiles::loadApplicationTranslationFile (const QString &applicationName, const QString &localeName)
 Loads and installs the appropriate application translation file for the specified locale. More...
 
QT_UTILITIES_EXPORT void TranslationFiles::loadApplicationTranslationFile (const std::initializer_list< QString > &applicationNames)
 Loads and installs the appropriate application translation file for the current locale. More...
 
QT_UTILITIES_EXPORT void TranslationFiles::loadApplicationTranslationFile (const std::initializer_list< QString > &applicationNames, const QString &localeName)
 Loads and installs the appropriate application translation file for the specified locale. More...
 
QT_UTILITIES_EXPORT bool ApplicationInstances::hasCoreApp ()
 Returns whether a QCoreApplication has been instantiated yet. More...
 
QT_UTILITIES_EXPORT QString ConfigFile::locateConfigFile (const QString &applicationName, const QString &fileName, const QSettings *settings)
 Locates the config file with the specified fileName for the application with the specified applicationName. More...