Coding style

This commit is contained in:
Aurélien Gâteau 2014-08-05 09:54:30 +02:00
parent 75e9fd6aa3
commit b246a95606
6 changed files with 29 additions and 27 deletions

View File

@ -33,7 +33,8 @@
// Qt // Qt
#include <QColor> #include <QColor>
static QColor COLORS[ 4 ] = { static QColor COLORS[ 4 ] =
{
"#448eca", "#448eca",
"#a5cc42", "#a5cc42",
"#d87e30", "#d87e30",

View File

@ -99,7 +99,8 @@ PartitionPreview::drawPartitions( QPainter* painter, const QRect& rect, const QM
return; return;
const int count = modl->rowCount( parent ); const int count = modl->rowCount( parent );
const int totalWidth = rect.width(); const int totalWidth = rect.width();
struct Item { struct Item
{
qreal size; qreal size;
QModelIndex index; QModelIndex index;
}; };