[kandinsky] Move to KDFont

This commit is contained in:
Romain Goyet
2018-10-09 16:41:24 +02:00
committed by LeaNumworks
parent 29882768bd
commit f8beae3b86
149 changed files with 564 additions and 610 deletions

View File

@@ -9,9 +9,9 @@ class App;
class PythonTextArea : public TextArea {
public:
PythonTextArea(Responder * parentResponder, App * pythonDelegate, KDText::FontSize fontSize) :
TextArea(parentResponder, &m_contentView, fontSize),
m_contentView(pythonDelegate, fontSize)
PythonTextArea(Responder * parentResponder, App * pythonDelegate, const KDFont * font) :
TextArea(parentResponder, &m_contentView, font),
m_contentView(pythonDelegate, font)
{
}
void loadSyntaxHighlighter() { m_contentView.loadSyntaxHighlighter(); }
@@ -19,8 +19,8 @@ public:
protected:
class ContentView : public TextArea::ContentView {
public:
ContentView(App * pythonDelegate, KDText::FontSize fontSize) :
TextArea::ContentView(fontSize),
ContentView(App * pythonDelegate, const KDFont * font) :
TextArea::ContentView(font),
m_pythonDelegate(pythonDelegate)
{
}