Escher: Make m_superview protected

Change-Id: I1f04f007ff338a9957eef691a6eb5031bb58655e
This commit is contained in:
Romain Goyet
2016-06-14 13:51:22 +02:00
parent 7b1febdfd4
commit f466ff0b34
2 changed files with 2 additions and 1 deletions

View File

@@ -54,12 +54,12 @@ protected:
virtual View * subview(int index) = 0;
virtual void storeSubviewAtIndex(View * v, int index) = 0;
virtual void layoutSubviews() = 0;
View * m_superview;
KDRect m_frame;
private:
void redraw(KDRect rect);
KDRect absoluteDrawingArea() const;
View * m_superview;
bool m_needsRedraw;
//TODO: We may want a dynamic size at some point
/*

View File

@@ -162,6 +162,7 @@ std::ostream &operator<<(std::ostream &os, View &view) {
view.logAttributes(os);
os << ">";
for (int i=0; i<view.numberOfSubviews(); i++) {
assert(view.subview(i)->m_superview == &view);
os << *view.subview(i);
}
os << "</" << view.className() << ">";