src/lib/src/models/image.cpp
/**
 * Try to guess the size of the image in pixels for sorting.
 * @return The guessed number of pixels in the image.
 */
Try to guess the size of the image in pixels for sorting.
@return The guessed number of pixels in the image.
Try to guess the size of the image in pixels for sorting . @return The guessed number of pixels in the image .
int Image::value() const
{
	QSize size = m_sizes[Image::Size::Full]->size;
	if (!size.isEmpty()) {
		return size.width() * size.height();
	}
	if (hasTag("incredibly_absurdres")) {
		return 10000 * 10000;
	}
	if (hasTag("absurdres")) {
		return 3200 * 2400;
	}
	if (hasTag("highres")) {
		return 1600 * 1200;
	}
	if (hasTag("lowres")) {
		return 500 * 500;
	}
	return 1200 * 900;
}
int Image :: value ( ) const { QSize size = m_sizes [ Image :: Size :: Full ] -> size ; if ( ! size . isEmpty ( ) ) { return size . width ( ) * size . height ( ) ; } if ( hasTag ( " " ) ) { return 10000 * 10000 ; } if ( hasTag ( " " ) ) { return 3200 * 2400 ; } if ( hasTag ( " " ) ) { return 1600 * 1200 ; } if ( hasTag ( " " ) ) { return 500 * 500 ; } return 1200 * 900 ; }
Try to guess the size of the image in pixels for sorting.
Try to guess the size of the image in pixels for sorting .
// Get from image size // Get from tags