eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/qt history_widget.cpp


From: eliot-dev
Subject: [Eliot-dev] eliot/qt history_widget.cpp
Date: Sun, 27 Jan 2008 20:17:11 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>      08/01/27 20:17:11

Modified files:
        qt             : history_widget.cpp 

Log message:
        Fixed the colours in the history widget, when rack and solution are not 
on the same line

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/qt/history_widget.cpp?cvsroot=eliot&r1=1.5&r2=1.6

Patches:
Index: history_widget.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/qt/history_widget.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- history_widget.cpp  26 Jan 2008 23:03:34 -0000      1.5
+++ history_widget.cpp  27 Jan 2008 20:17:10 -0000      1.6
@@ -153,7 +153,10 @@
             // Set the color of the text
             for (int col = 0; col < 6; ++col)
             {
-                m_model->setData(m_model->index(rowNum, col),
+                int row = rowNum;
+                if (!align && col < 2)
+                    row = prevRowNum;
+                m_model->setData(m_model->index(row, col),
                                  QBrush(color), Qt::ForegroundRole);
             }
         }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]