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

(973119c4e38b4c9ce1fb589d8fa71adcf9e2f813)

#include "messagemodel.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 int calcMergeScore (const DataModel *one, const DataModel *two)
 

Variables

static const uchar paletteRGBs [7][3]
 

Function Documentation

◆ calcMergeScore()

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

Definition at line 140 of file messagemodel.cpp.

References DataModel::contextCount(), DataModel::contextItem(), ContextItem::messageCount(), DataModel::messageCount(), and ContextItem::messageItem().

Referenced by DataModel::isWellMergeable().

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

Variable Documentation

◆ paletteRGBs

static const uchar paletteRGBs
static
Initial value:
= {
{ 236, 244, 255 },
{ 236, 255, 255 },
{ 236, 255, 232 },
{ 255, 255, 230 },
{ 255, 242, 222 },
{ 255, 236, 236 },
{ 252, 236, 255 }
}

Definition at line 644 of file messagemodel.cpp.