Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtFontStyle::Key Struct Reference

#include <qfontdatabase_p.h>

+ Collaboration diagram for QtFontStyle::Key:

Public Member Functions

 Key (const QString &styleString)
 
 Key ()
 
 Key (const Key &o)
 
bool operator== (const Key &other) const noexcept
 
bool operator!= (const Key &other) const noexcept
 

Public Attributes

uint style: 2
 
uint weight: 10
 
signed int stretch: 12
 

Detailed Description

Definition at line 66 of file qfontdatabase_p.h.

Constructor & Destructor Documentation

◆ Key() [1/3]

QtFontStyle::Key::Key ( const QString & styleString)

Definition at line 151 of file qfontdatabase.cpp.

References QString::contains(), getFontWeight(), QString::isEmpty(), style, QFont::StyleItalic, QFont::StyleOblique, and QCoreApplication::translate().

+ Here is the call graph for this function:

◆ Key() [2/3]

QtFontStyle::Key::Key ( )
inline

Definition at line 70 of file qfontdatabase_p.h.

◆ Key() [3/3]

QtFontStyle::Key::Key ( const Key & o)
inline

Definition at line 76 of file qfontdatabase_p.h.

Member Function Documentation

◆ operator!=()

bool QtFontStyle::Key::operator!= ( const Key & other) const
inlinenoexcept

Definition at line 92 of file qfontdatabase_p.h.

References operator==(), and other().

+ Here is the call graph for this function:

◆ operator==()

bool QtFontStyle::Key::operator== ( const Key & other) const
inlinenoexcept

Definition at line 86 of file qfontdatabase_p.h.

References other().

+ Here is the call graph for this function:

Member Data Documentation

◆ stretch

signed int QtFontStyle::Key::stretch

Definition at line 84 of file qfontdatabase_p.h.

Referenced by bestStyle().

◆ style

uint QtFontStyle::Key::style

◆ weight

uint QtFontStyle::Key::weight

Definition at line 83 of file qfontdatabase_p.h.

Referenced by bestStyle(), QFontDatabase::bold(), and QFontDatabase::weight().


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