Ticket #3853: uitypes.diff
File uitypes.diff, 3.1 KB (added by , 17 years ago) |
---|
-
libs/libmyth/uitypes.cpp
old new 1043 1043 { 1044 1044 int offsetRight = 0; 1045 1045 int offsetLeft = 0; 1046 int caw = columnWidth[j]; 1047 1048 if (caw == 0) 1049 caw = m_area.width(); 1046 1050 1047 1051 if (j > 1 && lastShown == true) 1048 1052 left = left + columnWidth[j - 1] + m_pad; … … 1101 1105 (int)(2 * m_wmult))); 1102 1106 dr->drawText((int)(left + fontdrop.x()) + offsetLeft, 1103 1107 (int)(m_area.top() + (int)(i*m_selheight) + 1104 fontdrop.y()), m_area.width() - offsetRight, m_selheight, 1108 // fontdrop.y()), m_area.width() - offsetRight, m_selheight, 1109 fontdrop.y()), caw - offsetRight, m_selheight, 1105 1110 m_justification, tempWrite); 1106 1111 } 1107 1112 dr->setBrush(tmpfont->color); 1108 1113 dr->setPen(QPen(tmpfont->color, (int)(2 * m_wmult))); 1109 1114 1110 1111 1112 1113 1115 dr->drawText(left + offsetLeft, m_area.top() + (int)(i*m_selheight), 1114 m_area.width() - offsetRight, m_selheight, m_justification, 1116 // m_area.width() - offsetRight, m_selheight, m_justification, 1117 caw - offsetRight, m_selheight, m_justification, 1115 1118 tempWrite); 1116 1119 dr->setFont(tmpfont->face); 1117 1120 if (m_debug == true) … … 1159 1162 { 1160 1163 int offsetRight = 0; 1161 1164 int offsetLeft = 0; 1165 int caw = columnWidth[j]; 1166 1167 if (caw == 0) 1168 caw = m_area.width(); 1162 1169 1163 1170 if (j > 1 && lastShown == true) 1164 1171 left = left + columnWidth[j - 1] + m_pad; … … 1211 1218 dr->setPen(QPen(tmpfont->dropColor, (int)(2 * m_wmult))); 1212 1219 dr->drawText((int)(left + fontdrop.x()) + offsetLeft, 1213 1220 (int)(m_area.top() + (int)(i*m_selheight) + 1214 fontdrop.y()), m_area.width() - offsetRight, m_selheight, 1221 // fontdrop.y()), m_area.width() - offsetRight, m_selheight, 1222 fontdrop.y()), caw - offsetRight, m_selheight, 1215 1223 m_justification, tempWrite); 1216 1224 } 1217 1225 dr->setBrush(tmpfont->color); 1218 1226 dr->setPen(QPen(tmpfont->color, (int)(2 * m_wmult))); 1219 1227 1220 1228 dr->drawText(left + offsetLeft, m_area.top() + (int)(i*m_selheight), 1221 m_area.width() - offsetRight, m_selheight, m_justification, 1229 // m_area.width() - offsetRight, m_selheight, m_justification, 1230 caw - offsetRight, m_selheight, m_justification, 1222 1231 tempWrite); 1223 1232 1224 1233 dr->setFont(tmpfont->face);