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
messagemodel.cpp File Reference

(d9e43af7ece745ef0922db12351d44f5933a8d5d)

#include "messagemodel.h"
#include "globals.h"
#include "statistics.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QDebug>
#include <QtWidgets/QMessageBox>
#include <QtGui/QPainter>
#include <QtGui/QPixmap>
#include <QtGui/QTextDocument>
#include <private/qtranslator_p.h>
#include <limits.h>
Include dependency graph for messagemodel.cpp:

Go to the source code of this file.

Functions

static QString resolveNcr (QStringView str)
static QString showNcr (const QString &str)
static QString adjustNcrVisibility (const QString &str, bool ncrMode)
static int calcMergeScore (const DataModel *one, const DataModel *two)

Variables

static const QColor lightPaletteColors [7]
static const QColor darkPaletteColors [7]

Function Documentation

◆ adjustNcrVisibility()

QString adjustNcrVisibility ( const QString & str,
bool ncrMode )
static

Definition at line 81 of file messagemodel.cpp.

◆ calcMergeScore()

int calcMergeScore ( const DataModel * one,
const DataModel * two )
static

Definition at line 264 of file messagemodel.cpp.

References DataModel::contextCount(), DataModel::groupItem(), IDBASED, DataModel::labelCount(), DataModel::messageCount(), GroupItem::messageCount(), GroupItem::messageItem(), and TEXTBASED.

Referenced by DataModel::isWellMergeable().

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

◆ resolveNcr()

QString resolveNcr ( QStringView str)
static

Definition at line 23 of file messagemodel.cpp.

◆ showNcr()

QString showNcr ( const QString & str)
static

Definition at line 68 of file messagemodel.cpp.

Variable Documentation

◆ darkPaletteColors

const QColor darkPaletteColors
static
Initial value:
= {
QColor(60, 80, 100),
QColor(50, 90, 70),
QColor(100, 90, 50),
QColor(50, 90, 90),
QColor(100, 70, 50),
QColor(90, 50, 50),
QColor(70, 50, 90),
}
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:30

Definition at line 780 of file messagemodel.cpp.

◆ lightPaletteColors

const QColor lightPaletteColors
static
Initial value:
{
QColor(210, 235, 250),
QColor(210, 250, 220),
QColor(250, 240, 210),
QColor(210, 250, 250),
QColor(250, 230, 200),
QColor(250, 210, 210),
QColor(235, 210, 250),
}

Definition at line 770 of file messagemodel.cpp.