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

Method convertUrlsToLocalPaths

ChatView/ChatRootView.cpp:759–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759QStringList ChatRootView::convertUrlsToLocalPaths(const QVariantList &urls) const
760{
761 QStringList localPaths;
762 for (const QVariant &urlVariant : urls) {
763 QUrl url(urlVariant.toString());
764 if (url.isLocalFile()) {
765 QString localPath = url.toLocalFile();
766 if (!localPath.isEmpty()) {
767 localPaths.append(localPath);
768 }
769 }
770 }
771 return localPaths;
772}
773
774void ChatRootView::calculateMessageTokensCount(const QString &message)
775{

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
toStringMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected