Use monospace font family in tooltips.
authorMilian Wolff <mail@milianw.de>
Tue, 23 Feb 2016 22:48:45 +0000 (23:48 +0100)
committerMilian Wolff <mail@milianw.de>
Tue, 23 Feb 2016 22:48:55 +0000 (23:48 +0100)
Bug got fixed upstream in Qt but for older Qt this improves
readability significantly.

gui/treemodel.cpp

index 573943d..1569153 100644 (file)
@@ -192,7 +192,7 @@ QVariant TreeModel::data(const QModelIndex& index, int role) const
     } else if (role == Qt::ToolTipRole) {
         QString tooltip;
         QTextStream stream(&tooltip);
-        stream << "<qt><pre>";
+        stream << "<qt><pre style='font-family:monospace;'>";
         stream << i18nc("1: function, 2: file, 3: line, 4: module", "%1\n  at %2:%3\n  in %4",
                         row->location->function, row->location->file, row->location->line, row->location->module);
         stream << '\n';