MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / isImageFile

Method isImageFile

ChatView/ClientInterface.cpp:649–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649bool ClientInterface::isImageFile(const QString &filePath) const
650{
651 static const QSet<QString> imageExtensions = {"png", "jpg", "jpeg", "gif", "webp", "bmp", "svg"};
652
653 QFileInfo fileInfo(filePath);
654 QString extension = fileInfo.suffix().toLower();
655
656 return imageExtensions.contains(extension);
657}
658
659QString ClientInterface::getMediaTypeForImage(const QString &filePath) const
660{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected