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
globals.h File Reference

(0e1e27cb244219c63e8b50875ad3e00ec88d303a)

#include <QPixmap>
#include <QString>
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  TranslationMarks {
  OnMark , OffMark , ObsoleteMark , DangerMark ,
  WarningMark , EmptyMark
}

Functions

const QStringsettingsPrefix ()
QString settingPath (const char *path)
bool isDarkMode ()
QPixmap createMarkIcon (TranslationMarks mark, bool darkMode=isDarkMode())

Enumeration Type Documentation

◆ TranslationMarks

enum class TranslationMarks
strong
Enumerator
OnMark 
OffMark 
ObsoleteMark 
DangerMark 
WarningMark 
EmptyMark 

Definition at line 12 of file globals.h.

Function Documentation

◆ createMarkIcon()

QPixmap createMarkIcon ( TranslationMarks mark,
bool darkMode = isDarkMode() )

Definition at line 44 of file globals.cpp.

◆ isDarkMode()

bool isDarkMode ( )

Definition at line 38 of file globals.cpp.

Referenced by MessageHighlighter::adjustColors(), and MessageModel::data().

Here is the caller graph for this function:

◆ settingPath()

QString settingPath ( const char * path)

Definition at line 33 of file globals.cpp.

◆ settingsPrefix()

const QString & settingsPrefix ( )

Definition at line 25 of file globals.cpp.