[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/system-monitor
From:       Petri Damstén <petri.damsten () kdemail ! net>
Date:       2009-09-09 14:28:42
Message-ID: 1252506522.818376.12158.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1021569 by pdamsten:

Strange hopping of values when <table> in tooltip.
BUG:199772

 M  +2 -3      net.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/system-monitor/net.cpp #1021568:1021569
@@ -149,15 +149,14 @@
         if (plotter) {
             plotter->addSample(m_data[interface]);
             if (mode() == SM::Applet::Panel) {
-                m_html[source] = QString("<tr><td>%1</td><td>in %2</td><td>out %3</td></tr>")
+                m_html[source] = QString("%1&nbsp;&nbsp;in %2&nbsp;&nbsp;out %3</br>")
                         .arg(plotter->title())
                         .arg(m_data[interface][0])
                         .arg(m_data[interface][1]);
-                QString html = "<table>";
+                QString html;
                 foreach (const QString& s, m_html.keys()) {
                     html += m_html[s];
                 }
-                html += "</table>";
                 Plasma::ToolTipContent data(title(), html);
                 Plasma::ToolTipManager::self()->setContent(this, data);
             }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic