QObject *parent)
: QDeclarativeExpression(ctxt, obj, str, isRewritten, url, lineNumber, columnNumber, *new QDeclarativeBindingPrivate)
{
- Q_D(QDeclarativeBinding);
-
setParent(parent);
setNotifyOnValueChanged(true);
}
static QJSEngine* get(QV8Engine* d) { Q_ASSERT(d); return d->q; }
QV8Engine(QJSEngine* qq,QJSEngine::ContextOwnership ownership = QJSEngine::CreateNewContext);
- ~QV8Engine();
+ virtual ~QV8Engine();
// ### TODO get rid of it, do we really need CppOwnership?
// This enum should be in sync with QDeclarativeEngine::ObjectOwnership
{
public:
QQuickContext2DTile();
- ~QQuickContext2DTile();
+ virtual ~QQuickContext2DTile();
bool dirty() const {return m_dirty;}
void markDirty(bool dirty) {m_dirty = dirty;}
return dependency;
if (fill == controlItem) {
- if ((controlItem == item->parentItem()))
+ if (controlItem == item->parentItem())
dependency |= QQuickItemPrivate::SizeChange;
else //sibling
dependency |= QQuickItemPrivate::GeometryChange;
}
if (centerIn == controlItem) {
- if ((controlItem == item->parentItem()))
+ if (controlItem == item->parentItem())
dependency |= QQuickItemPrivate::SizeChange;
else //sibling
dependency |= QQuickItemPrivate::GeometryChange;
if ((usedAnchors & QQuickAnchors::LeftAnchor && left.item == controlItem) ||
(usedAnchors & QQuickAnchors::RightAnchor && right.item == controlItem) ||
(usedAnchors & QQuickAnchors::HCenterAnchor && hCenter.item == controlItem)) {
- if ((controlItem == item->parentItem()))
+ if (controlItem == item->parentItem())
dependency |= QQuickItemPrivate::WidthChange;
else //sibling
dependency |= QFlags<QQuickItemPrivate::GeometryChangeType>(QQuickItemPrivate::XChange | QQuickItemPrivate::WidthChange);
(usedAnchors & QQuickAnchors::BottomAnchor && bottom.item == controlItem) ||
(usedAnchors & QQuickAnchors::VCenterAnchor && vCenter.item == controlItem) ||
(usedAnchors & QQuickAnchors::BaselineAnchor && baseline.item == controlItem)) {
- if ((controlItem == item->parentItem()))
+ if (controlItem == item->parentItem())
dependency |= QQuickItemPrivate::HeightChange;
else //sibling
dependency |= QFlags<QQuickItemPrivate::GeometryChangeType>(QQuickItemPrivate::YChange | QQuickItemPrivate::HeightChange);
if (!mouseGrabberItem &&
event->type() == QEvent::MouseButtonPress &&
- (event->button() & event->buttons()) == event->buttons()) {
+ (event->buttons() & event->button()) == event->buttons()) {
if (deliverInitialMousePressEvent(rootItem, event))
event->accept();
else
qWarning() << "QQuickCanvas::mouseDoubleClickEvent()" << event->pos() << event->button() << event->buttons();
#endif
- if (!d->mouseGrabberItem && (event->button() & event->buttons()) == event->buttons()) {
+ if (!d->mouseGrabberItem && (event->buttons() & event->button()) == event->buttons()) {
if (d->deliverInitialMousePressEvent(d->rootItem, event))
event->accept();
else
class QQuickItemChangeListener
{
public:
+ virtual ~QQuickItemChangeListener() {};
+
virtual void itemGeometryChanged(QQuickItem *, const QRectF & /* new */, const QRectF & /* old */ ) {}
virtual void itemSiblingOrderChanged(QQuickItem *) {}
virtual void itemVisibilityChanged(QQuickItem *) {}
{
public:
FxViewItem(QQuickItem *, bool own);
- ~FxViewItem();
+ virtual ~FxViewItem();
// these are positions and sizes along the current direction of scrolling/flicking
virtual qreal position() const = 0;
if (QQuickPathViewAttached *att = d->attached(d->currentItem))
att->setOnPath(false);
} else if (!waiting && d->currentIndex >= 0 && d->currentIndex < d->modelCount) {
- if (d->currentItem = d->getItem(d->currentIndex, d->currentIndex, false)) {
+ if ((d->currentItem = d->getItem(d->currentIndex, d->currentIndex, false))) {
d->updateItem(d->currentItem, d->currentIndex < d->firstIndex ? 0.0 : 1.0);
if (QQuickPathViewAttached *att = d->attached(d->currentItem))
att->setIsCurrentItem(true);
}
}
} else if (!waiting && !d->currentItem) {
- if (d->currentItem = d->getItem(d->currentIndex, d->currentIndex, true)) {
+ if ((d->currentItem = d->getItem(d->currentIndex, d->currentIndex, true))) {
d->currentItem->setFocus(true);
if (QQuickPathViewAttached *att = d->attached(d->currentItem))
att->setIsCurrentItem(true);
return;
int itemIndex = (currentIndex - firstIndex + modelCount) % modelCount;
if (itemIndex < items.count()) {
- if (currentItem = getItem(currentIndex, currentIndex, true)) {
+ if ((currentItem = getItem(currentIndex, currentIndex, true))) {
currentItem->setFocus(true);
if (QQuickPathViewAttached *att = attached(currentItem))
att->setIsCurrentItem(true);
}
} else if (currentIndex >= 0 && currentIndex < modelCount) {
- if (currentItem = getItem(currentIndex, currentIndex, false)) {
+ if ((currentItem = getItem(currentIndex, currentIndex, false))) {
updateItem(currentItem, currentIndex < firstIndex ? 0.0 : 1.0);
if (QQuickPathViewAttached *att = attached(currentItem))
att->setIsCurrentItem(true);
};
QSGMaterialShader();
+ virtual ~QSGMaterialShader() {};
virtual void activate();
virtual void deactivate();
m_opacity_stack.add(1);
}
+QSGNodeUpdater::~QSGNodeUpdater()
+{
+}
+
void QSGNodeUpdater::updateStates(QSGNode *n)
{
m_current_clip = 0;
{
public:
QSGNodeUpdater();
+ virtual ~QSGNodeUpdater();
virtual void updateStates(QSGNode *n);
virtual bool isNodeBlocked(QSGNode *n, QSGNode *root) const;
virtual QStringList keys() const = 0;
virtual QSGContext *create(const QString &key) const = 0;
- virtual QDeclarativeTextureFactory *createTextureFactoryFromImage(const QImage &image) { return 0; }
+ virtual QDeclarativeTextureFactory *createTextureFactoryFromImage(const QImage &) { return 0; }
};
QT_END_NAMESPACE