Changeset View
Changeset View
Standalone View
Standalone View
sheets/part/CanvasItem.cpp
Context not available. | |||||
136 | , d(new Private) | 136 | , d(new Private) | ||
---|---|---|---|---|---|
137 | { | 137 | { | ||
138 | setAttribute(Qt::WA_OpaquePaintEvent); | 138 | setAttribute(Qt::WA_OpaquePaintEvent); | ||
139 | setAttribute(Qt::WA_StaticContents); | | |||
140 | //setBackgroundRole(QPalette::Base); | 139 | //setBackgroundRole(QPalette::Base); | ||
141 | 140 | | |||
142 | QGraphicsWidget::setFocusPolicy(Qt::StrongFocus); | 141 | QGraphicsWidget::setFocusPolicy(Qt::StrongFocus); | ||
Context not available. | |||||
146 | 145 | | |||
147 | installEventFilter(this); // for TAB key processing, otherwise focus change | 146 | installEventFilter(this); // for TAB key processing, otherwise focus change | ||
148 | setAcceptDrops(true); | 147 | setAcceptDrops(true); | ||
149 | setAttribute(Qt::WA_InputMethodEnabled, true); // ensure using the InputMethod | | |||
150 | 148 | | |||
151 | d->doc = doc; | 149 | d->doc = doc; | ||
152 | d->rowHeader = 0; | 150 | d->rowHeader = 0; | ||
Context not available. |