Coding style
This commit is contained in:
parent
75e9fd6aa3
commit
b246a95606
@ -33,7 +33,8 @@
|
|||||||
// Qt
|
// Qt
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
|
|
||||||
static QColor COLORS[ 4 ] = {
|
static QColor COLORS[ 4 ] =
|
||||||
|
{
|
||||||
"#448eca",
|
"#448eca",
|
||||||
"#a5cc42",
|
"#a5cc42",
|
||||||
"#d87e30",
|
"#d87e30",
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user