/*! Returns true if this content object is equivalent to \a other, otherwise returns false. */ bool QPlaceContent::operator==(const QPlaceContent &other) const { // An invalid content object is only equal to another invalid content object if (!d_ptr) return !other.d_ptr; if (type() != other.type()) return false; return d_ptr->compare(other.d_ptr); }
bool tst_QPlaceImage::checkType(const QPlaceContent &content) { return content.type() == QPlaceContent::ImageType; }
bool tst_QPlaceEditorial::checkType(const QPlaceContent &content) { return content.type() == QPlaceContent::EditorialType; }