|
Krita Source Code Documentation
|
The GlyphPaletteAltPopup class. More...
#include <GlyphPaletteAltPopup.h>
Inheritance diagram for GlyphPaletteAltPopup:Public Slots | |
| void | slotInsertRichText (const int charRow, const int glyphRow=-1, const bool replace=false, const bool useCharMap=false) |
Signals | |
| void | sigInsertRichText (int charRow, int glyphRow, bool replace, bool useCharMap) |
Public Member Functions | |
| GlyphPaletteAltPopup (QWidget *parent=nullptr) | |
| void | setCellSize (const int width, const int height) |
| setCellSize Set the size of the pop-up relative to its cellsize. The popup is 3 cells wide and 4 high, allowing for 12 alternates to be visible at once. | |
| void | setMarkup (const QStringList &families, const int size, const int weight, const int width, const QFont::Style style, const QVariantMap &axes, const QString &language) |
| setMarkup Set the css font markup to be used inside the palette. | |
| void | setModel (QAbstractItemModel *model) |
| setModel Set the glyph proxy model. | |
| void | setRootIndex (const int index) |
| setRootIndex Set the charmap root index to show glyph alts for. | |
| ~GlyphPaletteAltPopup () | |
Private Attributes | |
| QAbstractItemModel * | m_charMapModel {0} |
| KisQQuickWidget * | m_quickWidget {0} |
The GlyphPaletteAltPopup class.
Because QtQuickWidgets don't allow pop-ups to be drawn outside of their geometry, we use this frame as a workaround, to allow the glyph-alts in the character map to overlap the rest of the window.
Definition at line 20 of file GlyphPaletteAltPopup.h.
| GlyphPaletteAltPopup::GlyphPaletteAltPopup | ( | QWidget * | parent = nullptr | ) |
Definition at line 15 of file GlyphPaletteAltPopup.cpp.
References m_quickWidget, and palette.
| GlyphPaletteAltPopup::~GlyphPaletteAltPopup | ( | ) |
Prevent accessing destroyed objects in QML engine See:
Definition at line 42 of file GlyphPaletteAltPopup.cpp.
References m_quickWidget.
| void GlyphPaletteAltPopup::setCellSize | ( | const int | width, |
| const int | height ) |
setCellSize Set the size of the pop-up relative to its cellsize. The popup is 3 cells wide and 4 high, allowing for 12 alternates to be visible at once.
Definition at line 62 of file GlyphPaletteAltPopup.cpp.
References m_quickWidget.
| void GlyphPaletteAltPopup::setMarkup | ( | const QStringList & | families, |
| const int | size, | ||
| const int | weight, | ||
| const int | width, | ||
| const QFont::Style | style, | ||
| const QVariantMap & | axes, | ||
| const QString & | language ) |
setMarkup Set the css font markup to be used inside the palette.
Definition at line 76 of file GlyphPaletteAltPopup.cpp.
References m_quickWidget.
| void GlyphPaletteAltPopup::setModel | ( | QAbstractItemModel * | model | ) |
setModel Set the glyph proxy model.
Definition at line 67 of file GlyphPaletteAltPopup.cpp.
References m_charMapModel, and m_quickWidget.
| void GlyphPaletteAltPopup::setRootIndex | ( | const int | index | ) |
setRootIndex Set the charmap root index to show glyph alts for.
Definition at line 52 of file GlyphPaletteAltPopup.cpp.
References m_charMapModel, and m_quickWidget.
|
signal |
|
slot |
Definition at line 89 of file GlyphPaletteAltPopup.cpp.
References sigInsertRichText().
|
private |
Definition at line 58 of file GlyphPaletteAltPopup.h.
|
private |
Definition at line 57 of file GlyphPaletteAltPopup.h.