mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
QFontEngine, QStaticTextItem, QTextControlPrivate and QTextHtmlElement cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
1e5dfefe57
commit
6af0946c92
10 changed files with 17 additions and 23 deletions
|
@ -61,14 +61,14 @@
|
|||
#include "qt_x11_p.h"
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef QT_NO_FONTCONFIG
|
||||
#include <fontconfig/fontconfig.h>
|
||||
#endif
|
||||
|
||||
#include <harfbuzz-shaper.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
/*
|
||||
|
|
|
@ -53,7 +53,6 @@
|
|||
// We mean it.
|
||||
//
|
||||
|
||||
#include "QtCore/qglobal.h"
|
||||
#include "QtCore/qatomic.h"
|
||||
#include <QtCore/qvarlengtharray.h>
|
||||
#include <QtCore/QLinkedList>
|
||||
|
@ -87,9 +86,7 @@ public:
|
|||
Box,
|
||||
Multi,
|
||||
|
||||
// QWS types
|
||||
Freetype,
|
||||
Proxy,
|
||||
|
||||
TestFontEngine = 0x1000
|
||||
};
|
||||
|
|
|
@ -45,8 +45,7 @@
|
|||
#include <qfontengine_p.h>
|
||||
#include <qfontmetrics.h>
|
||||
#include <qabstracttextdocumentlayout.h>
|
||||
|
||||
#include <QtGui/qapplication.h>
|
||||
#include <qapplication.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ QT_BEGIN_NAMESPACE
|
|||
class Q_GUI_EXPORT QStaticTextItem
|
||||
{
|
||||
public:
|
||||
QStaticTextItem() : chars(0), numChars(0), m_fontEngine(0) {}
|
||||
QStaticTextItem() : chars(Q_NULLPTR), numChars(0), m_fontEngine(Q_NULLPTR) {}
|
||||
|
||||
QStaticTextItem(const QStaticTextItem &other)
|
||||
{
|
||||
|
@ -80,7 +80,7 @@ public:
|
|||
font = other.font;
|
||||
color = other.color;
|
||||
|
||||
m_fontEngine = 0;
|
||||
m_fontEngine = Q_NULLPTR;
|
||||
setFontEngine(other.fontEngine());
|
||||
}
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ QTextControlPrivate::QTextControlPrivate()
|
|||
#ifndef QT_NO_DRAGANDDROP
|
||||
mousePressed(false), mightStartDrag(false),
|
||||
#endif
|
||||
lastSelectionState(false), ignoreAutomaticScrollbarAdjustement(false),
|
||||
lastSelectionState(false),
|
||||
overwriteMode(false),
|
||||
acceptRichText(true),
|
||||
preeditCursor(0), hideCursor(false),
|
||||
|
|
|
@ -69,13 +69,9 @@ QT_BEGIN_HEADER
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
class QStyleSheet;
|
||||
class QTextDocument;
|
||||
class QMenu;
|
||||
class QTextControlPrivate;
|
||||
class QMimeData;
|
||||
class QAbstractScrollArea;
|
||||
class QEvent;
|
||||
class QTimerEvent;
|
||||
|
||||
|
|
|
@ -66,7 +66,6 @@
|
|||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QMimeData;
|
||||
class QAbstractScrollArea;
|
||||
|
||||
class QTextControlPrivate : public QObjectPrivate
|
||||
{
|
||||
|
@ -87,9 +86,9 @@ public:
|
|||
void createAutoBulletList();
|
||||
|
||||
void init(Qt::TextFormat format = Qt::RichText, const QString &text = QString(),
|
||||
QTextDocument *document = 0);
|
||||
QTextDocument *document = Q_NULLPTR);
|
||||
void setContent(Qt::TextFormat format = Qt::RichText, const QString &text = QString(),
|
||||
QTextDocument *document = 0);
|
||||
QTextDocument *document = Q_NULLPTR);
|
||||
void startDrag();
|
||||
|
||||
void paste(const QMimeData *source);
|
||||
|
@ -188,8 +187,6 @@ public:
|
|||
|
||||
bool lastSelectionState;
|
||||
|
||||
bool ignoreAutomaticScrollbarAdjustement;
|
||||
|
||||
QTextCursor selectedWordOnDoubleClick;
|
||||
QTextCursor selectedBlockOnTrippleClick;
|
||||
|
||||
|
|
|
@ -140,9 +140,15 @@ enum QTextHTMLElements {
|
|||
|
||||
struct QTextHtmlElement
|
||||
{
|
||||
enum DisplayMode {
|
||||
DisplayBlock,
|
||||
DisplayInline,
|
||||
DisplayTable,
|
||||
DisplayNone
|
||||
};
|
||||
const char *name;
|
||||
QTextHTMLElements id;
|
||||
enum DisplayMode { DisplayBlock, DisplayInline, DisplayTable, DisplayNone } displayMode;
|
||||
DisplayMode displayMode;
|
||||
};
|
||||
|
||||
class QTextHtmlParser;
|
||||
|
|
|
@ -246,7 +246,7 @@ public:
|
|||
void setLineCount(int count);
|
||||
int lineCount() const;
|
||||
|
||||
class Q_GUI_EXPORT iterator {
|
||||
class iterator {
|
||||
const QTextDocumentPrivate *p;
|
||||
int b;
|
||||
int e;
|
||||
|
|
|
@ -187,7 +187,6 @@ static const ClassInfoEntry qclass_lib_map[] = {
|
|||
{ "QTextFrame", "QtGui/qtextobject.h"},
|
||||
{ "QTextBlockUserData", "QtGui/qtextobject.h"},
|
||||
{ "QTextBlock", "QtGui/qtextobject.h"},
|
||||
{ "iterator", "QtGui/qtextobject.h"},
|
||||
{ "QTextFragment", "QtGui/qtextobject.h"},
|
||||
{ "QTextOption", "QtGui/qtextoption.h"},
|
||||
{ "Tab", "QtGui/qtextoption.h"},
|
||||
|
@ -700,6 +699,6 @@ static const ClassInfoEntry qclass_lib_map[] = {
|
|||
{ "QFormBuilder", "QtUiTools/formbuilder.h"},
|
||||
{ "QUiLoader", "QtUiTools/quiloader.h"},
|
||||
};
|
||||
static const int qclass_lib_count = 694;
|
||||
static const int qclass_lib_count = 693;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue