Changeset View
Changeset View
Standalone View
Standalone View
plasma-windowed/plasmawindowedview.cpp
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | 166 | { | |||
---|---|---|---|---|---|
170 | 170 | | |||
171 | QQuickItem *i = m_applet->property("_plasma_graphicObject").value<QQuickItem *>(); | 171 | QQuickItem *i = m_applet->property("_plasma_graphicObject").value<QQuickItem *>(); | ||
172 | if (!i) { | 172 | if (!i) { | ||
173 | return; | 173 | return; | ||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | minimumWidthChanged(); | 176 | minimumWidthChanged(); | ||
177 | minimumHeightChanged(); | 177 | minimumHeightChanged(); | ||
178 | i->setWidth(ev->size().width()); | | |||
179 | i->setHeight(ev->size().height()); | | |||
180 | 178 | | |||
181 | contentItem()->setWidth(ev->size().width()); | 179 | i->setSize(ev->size()); | ||
182 | contentItem()->setHeight(ev->size().height()); | 180 | contentItem()->setSize(ev->size()); | ||
183 | 181 | | |||
184 | m_applet->config().writeEntry("geometry", QRect(position(), ev->size())); | 182 | m_applet->config().writeEntry("geometry", QRect(position(), ev->size())); | ||
185 | } | 183 | } | ||
186 | 184 | | |||
187 | void PlasmaWindowedView::mouseReleaseEvent(QMouseEvent *ev) | 185 | void PlasmaWindowedView::mouseReleaseEvent(QMouseEvent *ev) | ||
188 | { | 186 | { | ||
189 | QQuickWindow::mouseReleaseEvent(ev); | 187 | QQuickWindow::mouseReleaseEvent(ev); | ||
190 | 188 | | |||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |