Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
main.cpp File Reference

(d6dfdf3ad3f68a97fd4fc2843a5d5fb424193b4b)

#include "translator.h"
#include <profileutils.h>
#include <projectdescriptionreader.h>
#include <runqttool.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QTranslator>
#include <QtCore/QDebug>
#include <QtCore/QDir>
#include <QtCore/QFile>
#include <QtCore/QFileInfo>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QTextStream>
#include <QtCore/QLibraryInfo>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

static void printOut (const QString &out)
 
static void printErr (const QString &out)
 
static void printUsage ()
 
static bool loadTsFile (Translator &tor, const QString &tsFileName, bool)
 
static bool releaseTranslator (Translator &tor, const QString &qmFileName, ConversionData &cd, bool removeIdentical)
 
static bool releaseTsFile (const QString &tsFileName, ConversionData &cd, bool removeIdentical)
 
static QStringList translationsFromProjects (const Projects &projects, bool topLevel)
 
static QStringList translationsFromProject (const Project &project, bool topLevel)
 
int main (int argc, char **argv)
 [48]
 

Function Documentation

◆ loadTsFile()

static bool loadTsFile ( Translator & tor,
const QString & tsFileName,
bool  )
static

Definition at line 77 of file main.cpp.

References ConversionData::clearErrors().

+ Here is the call graph for this function:

◆ main()

int main ( int argc,
char ** argv )

[48]

[dynamic_tooltip]

[5]

[2]

[0]

[6]

[48]

[48]

[6]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[0]

[0]

[1]

[1]

[1]

[1]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

Definition at line 168 of file main.cpp.

References ConversionData::m_idBased, ConversionData::m_ignoreUnfinished, ConversionData::m_saveMode, ConversionData::m_verbose, printUsage(), SaveEverything, and SaveStripped.

+ Here is the call graph for this function:

◆ printErr()

static void printErr ( const QString & out)
static

Definition at line 33 of file main.cpp.

References stream.

◆ printOut()

static void printOut ( const QString & out)
static

Definition at line 27 of file main.cpp.

References stream.

◆ printUsage()

static void printUsage ( )
static

Definition at line 39 of file main.cpp.

◆ releaseTranslator()

static bool releaseTranslator ( Translator & tor,
const QString & qmFileName,
ConversionData & cd,
bool removeIdentical )
static

Definition at line 91 of file main.cpp.

References ConversionData::clearErrors(), ConversionData::isVerbose(), Translator::normalizeTranslations(), Translator::resolveDuplicates(), and Translator::stripIdenticalSourceTranslations().

+ Here is the call graph for this function:

◆ releaseTsFile()

static bool releaseTsFile ( const QString & tsFileName,
ConversionData & cd,
bool removeIdentical )
static

Definition at line 125 of file main.cpp.

◆ translationsFromProject()

static QStringList translationsFromProject ( const Project & project,
bool topLevel )
static

Definition at line 146 of file main.cpp.

◆ translationsFromProjects()

static QStringList translationsFromProjects ( const Projects & projects,
bool topLevel = true )
static

Definition at line 160 of file main.cpp.