Changeset View
Changeset View
Standalone View
Standalone View
src/kgesture.cpp
Show First 20 Lines • Show All 371 Lines • ▼ Show 20 Line(s) | |||||
372 | { | 372 | { | ||
373 | return !operator==(other); | 373 | return !operator==(other); | ||
374 | } | 374 | } | ||
375 | 375 | | |||
376 | uint KShapeGesture::hashable() const | 376 | uint KShapeGesture::hashable() const | ||
377 | { | 377 | { | ||
378 | uint hash = 0; | 378 | uint hash = 0; | ||
379 | 379 | | |||
380 | foreach (const QPoint &point, d->m_shape) { | 380 | for (const QPoint point : qAsConst(d->m_shape)) { | ||
381 | hash += qHash(point.x()) + qHash(point.y()); | 381 | hash += qHash(point.x()) + qHash(point.y()); | ||
382 | } | 382 | } | ||
383 | 383 | | |||
384 | return hash; | 384 | return hash; | ||
385 | } | 385 | } | ||
386 | 386 | | |||
387 | /******************************************************** | 387 | /******************************************************** | ||
388 | * KRockerGesture * | 388 | * KRockerGesture * | ||
▲ Show 20 Lines • Show All 197 Lines • Show Last 20 Lines |