[education/rkward] rkward/windows: Add title for (potentially long) recent files links
Thomas Friedrichsmeier
null at kde.org
Thu Apr 21 16:25:02 BST 2022
Git commit e6e8429884bdf8362f0053a2822fcb9ee91f4e27 by Thomas Friedrichsmeier.
Committed on 21/04/2022 at 15:24.
Pushed by tfry into branch 'master'.
Add title for (potentially long) recent files links
M +2 -2 rkward/windows/rkhtmlwindow.cpp
https://invent.kde.org/education/rkward/commit/e6e8429884bdf8362f0053a2822fcb9ee91f4e27
diff --git a/rkward/windows/rkhtmlwindow.cpp b/rkward/windows/rkhtmlwindow.cpp
index 70c77c29..815297f0 100644
--- a/rkward/windows/rkhtmlwindow.cpp
+++ b/rkward/windows/rkhtmlwindow.cpp
@@ -1117,9 +1117,9 @@ bool RKHelpRenderer::renderRKHelp (const QUrl &url, RKHTMLWindow* container) {
QString category = help_xml_helper.getStringAttribute(*it, "category", QString(), DL_WARNING);
auto list = RKRecentUrls::allRecentUrls(category);
for (int i = 0; i < list.size(); ++i) {
- writeHTML(QString("<li><a href=\"rkward://open/%1/%2\">%3</a></li>\n").arg(category, list[i].url(), RKCommonFunctions::escape(list[i].url(QUrl::PreferLocalFile))));
+ writeHTML(QString("<li><a href=\"rkward://open/%1/%2\" title=\"%2\">%3</a></li>\n").arg(category, list[i].url(), RKCommonFunctions::escape(list[i].url(QUrl::PreferLocalFile))));
}
- writeHTML(QString("<li><<a href=\"rkward://open/%1/\">%2</a>></li>\n").arg(category, i18n("Choose another file")));
+ writeHTML(QString("<li><<a href=\"rkward://open/%1/\">%3</a>></li>\n").arg(category, i18n("Choose another file")));
writeHTML("</ul>\n");
if (container && !container_refresh_connected) {
container_refresh_connected = true;
More information about the rkward-tracker
mailing list