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
MessageItem Class Reference

#include <messagemodel.h>

+ Collaboration diagram for MessageItem:

Public Member Functions

 MessageItem (const TranslatorMessage &message)
 
bool danger () const
 
void setDanger (bool danger)
 
void setTranslation (const QString &translation)
 
QString id () const
 
QString context () const
 
QString text () const
 
QString pluralText () const
 
QString comment () const
 
QString fileName () const
 
QString extraComment () const
 
QString translatorComment () const
 
void setTranslatorComment (const QString &cmt)
 
int lineNumber () const
 
QString translation () const
 
QStringList translations () const
 
void setTranslations (const QStringList &translations)
 
TranslatorMessage::Type type () const
 
void setType (TranslatorMessage::Type type)
 
bool isFinished () const
 
bool isUnfinished () const
 
bool isObsolete () const
 
const TranslatorMessagemessage () const
 
bool compare (const QString &findText, bool matchSubstring, Qt::CaseSensitivity cs) const
 

Detailed Description

Definition at line 22 of file messagemodel.h.

Constructor & Destructor Documentation

◆ MessageItem()

QT_BEGIN_NAMESPACE MessageItem::MessageItem ( const TranslatorMessage & message)

Definition at line 27 of file messagemodel.cpp.

Member Function Documentation

◆ comment()

QString MessageItem::comment ( ) const
inline

Definition at line 37 of file messagemodel.h.

◆ compare()

bool MessageItem::compare ( const QString & findText,
bool matchSubstring,
Qt::CaseSensitivity cs ) const

Definition at line 36 of file messagemodel.cpp.

◆ context()

QString MessageItem::context ( ) const
inline

Definition at line 34 of file messagemodel.h.

Referenced by testing.tools.safetynet_job.JobRun::_BuildRunMetadata(), testing.tools.safetynet_job.JobRun::_IncrementalRun(), testing.tools.safetynet_job.JobRun::_WriteCheckpoint(), testing.tools.safetynet_job.JobRun::_WriteRawJson(), and testing.tools.safetynet_job.JobRun::Run().

+ Here is the caller graph for this function:

◆ danger()

bool MessageItem::danger ( ) const
inline

Definition at line 27 of file messagemodel.h.

Referenced by MessageModel::data(), MultiDataModel::setDanger(), and MultiDataModel::setFinished().

+ Here is the caller graph for this function:

◆ extraComment()

QString MessageItem::extraComment ( ) const
inline

Definition at line 39 of file messagemodel.h.

◆ fileName()

QString MessageItem::fileName ( ) const
inline

Definition at line 38 of file messagemodel.h.

◆ id()

QString MessageItem::id ( ) const
inline

Definition at line 33 of file messagemodel.h.

◆ isFinished()

bool MessageItem::isFinished ( ) const
inline

Definition at line 51 of file messagemodel.h.

References TranslatorMessage::Finished, and type().

Referenced by MessageModel::data(), MultiDataModel::setDanger(), and DataModel::updateStatistics().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isObsolete()

bool MessageItem::isObsolete ( ) const
inline

Definition at line 53 of file messagemodel.h.

References TranslatorMessage::Obsolete, type(), and TranslatorMessage::Vanished.

Referenced by MessageModel::data(), and DataModel::updateStatistics().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isUnfinished()

bool MessageItem::isUnfinished ( ) const
inline

Definition at line 52 of file messagemodel.h.

References type(), and TranslatorMessage::Unfinished.

Referenced by DataModel::updateStatistics().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lineNumber()

int MessageItem::lineNumber ( ) const
inline

Definition at line 42 of file messagemodel.h.

◆ message()

const TranslatorMessage & MessageItem::message ( ) const
inline

Definition at line 55 of file messagemodel.h.

Referenced by PRESUBMIT_test_mocks.MockOutputApi.PresubmitResult::__repr__(), MessageModel::data(), DataModel::release(), MessageEditor::showMessage(), and similarTextHeuristicCandidates().

+ Here is the caller graph for this function:

◆ pluralText()

QString MessageItem::pluralText ( ) const
inline

Definition at line 36 of file messagemodel.h.

◆ setDanger()

void MessageItem::setDanger ( bool danger)
inline

Definition at line 28 of file messagemodel.h.

Referenced by MultiDataModel::setDanger().

+ Here is the caller graph for this function:

◆ setTranslation()

void MessageItem::setTranslation ( const QString & translation)
inline

Definition at line 30 of file messagemodel.h.

◆ setTranslations()

void MessageItem::setTranslations ( const QStringList & translations)
inline

Definition at line 45 of file messagemodel.h.

◆ setTranslatorComment()

void MessageItem::setTranslatorComment ( const QString & cmt)
inline

Definition at line 41 of file messagemodel.h.

◆ setType()

void MessageItem::setType ( TranslatorMessage::Type type)
inline

Definition at line 49 of file messagemodel.h.

Referenced by MultiDataModel::setFinished().

+ Here is the caller graph for this function:

◆ text()

QString MessageItem::text ( ) const
inline

Definition at line 35 of file messagemodel.h.

◆ translation()

QString MessageItem::translation ( ) const
inline

Definition at line 43 of file messagemodel.h.

◆ translations()

QStringList MessageItem::translations ( ) const
inline

Definition at line 44 of file messagemodel.h.

◆ translatorComment()

QString MessageItem::translatorComment ( ) const
inline

Definition at line 40 of file messagemodel.h.

◆ type()

TranslatorMessage::Type MessageItem::type ( ) const
inline

Definition at line 48 of file messagemodel.h.

Referenced by isFinished(), isObsolete(), isUnfinished(), and MultiDataModel::setFinished().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: