mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-02-26 08:53:04 -05:00
refactor: UI for opening content from chat (#318)
* refactor: Changed options to opening images from chat * refactor: Add customizable tooltip
This commit is contained in:
@ -117,8 +117,10 @@ QVariant ChatModel::data(const QModelIndex &index, int role) const
|
||||
QString contentFolder = QDir(dirPath).filePath(baseName + "_content");
|
||||
QString fullPath = QDir(contentFolder).filePath(image.storedPath);
|
||||
imageMap["imageUrl"] = QUrl::fromLocalFile(fullPath).toString();
|
||||
imageMap["filePath"] = fullPath;
|
||||
} else {
|
||||
imageMap["imageUrl"] = QString();
|
||||
imageMap["filePath"] = QString();
|
||||
}
|
||||
|
||||
imagesList.append(imageMap);
|
||||
|
||||
Reference in New Issue
Block a user