#include "qfontcombobox.h"
#include <qstringlistmodel.h>
#include <qitemdelegate.h>
#include <qlistview.h>
#include <qpainter.h>
#include <qevent.h>
#include <qapplication.h>
#include <private/qcombobox_p.h>
#include <qdebug.h>
#include "qfontcombobox.moc"
#include "moc_qfontcombobox.cpp"
Go to the source code of this file.
◆ writingSystemForFont()
Definition at line 57 of file qfontcombobox.cpp.
Referenced by QFontFamilyDelegate::paint().
72 if (writingSystems.
count())
73 system = writingSystems.
last();
82 system = writingSystems.
at(0);
86 if (writingSystems.
count() <= 2
89 system = writingSystems.
last();
93 if (writingSystems.
count() <= 5
96 system = writingSystems.
last();
int count(const T &t) const
Returns the number of occurrences of value in the list.
QList< WritingSystem > writingSystems() const
Returns a sorted list of the available writing systems.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
The QFontDatabase class provides information about the fonts available in the underlying window syste...
const T & at(int i) const
Returns the item at index position i in the list.
QString family() const
Returns the requested font family name, i.e.
T & last()
Returns a reference to the last item in the list.
int removeAll(const T &t)
Removes all occurrences of value in the list and returns the number of entries removed.