comparison src/uncommitteditem.cpp @ 386:7ef46fb73b48 item_appearance_adjustments

Use rounded rectangles throughout
author Chris Cannam
date Tue, 24 May 2011 14:05:35 +0100
parents b9c153e00e84
children b1f0fa991c49
comparison
equal deleted inserted replaced
385:5cc0d897eb26 386:7ef46fb73b48
135 int x0 = -((width - 50) / 2 - 1); 135 int x0 = -((width - 50) / 2 - 1);
136 136
137 int height = 49; 137 int height = 49;
138 QRectF r(x0, 0, width - 3, height); 138 QRectF r(x0, 0, width - 3, height);
139 paint->setBrush(Qt::white); 139 paint->setBrush(Qt::white);
140 paint->drawRect(r); 140 paint->drawRoundedRect(r, 7, 7);
141 141
142 if (m_wide) { 142 if (m_wide) {
143 QString label = tr("Uncommitted changes"); 143 QString label = tr("Uncommitted changes");
144 paint->drawText(-(fm.width(label) - 50)/2, 144 paint->drawText(-(fm.width(label) - 50)/2,
145 25 - fm.height()/2 + fm.ascent(), 145 25 - fm.height()/2 + fm.ascent(),