From: Milian Wolff Date: Tue, 23 Feb 2016 22:48:45 +0000 (+0100) Subject: Use monospace font family in tooltips. X-Git-Tag: submit/tizen/20180620.112952^2~221 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e09e3dd1d5e6f9ce8e16b93ce03b3b79b5dea0bd;p=sdk%2Ftools%2Fheaptrack.git Use monospace font family in tooltips. Bug got fixed upstream in Qt but for older Qt this improves readability significantly. --- diff --git a/gui/treemodel.cpp b/gui/treemodel.cpp index 573943d..1569153 100644 --- a/gui/treemodel.cpp +++ b/gui/treemodel.cpp @@ -192,7 +192,7 @@ QVariant TreeModel::data(const QModelIndex& index, int role) const } else if (role == Qt::ToolTipRole) { QString tooltip; QTextStream stream(&tooltip); - stream << "
";
+        stream << "
";
         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';