forked from qt-creator/qt-creator
QmlProfiler: minor adjustments to timeline UI
Change-Id: I74460d9a32ced707fa4a550199bba5f5906f417e Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -526,8 +526,8 @@ Rectangle {
|
|||||||
width: parent.height
|
width: parent.height
|
||||||
height: parent.width
|
height: parent.width
|
||||||
gradient: Gradient {
|
gradient: Gradient {
|
||||||
GradientStop { position: 0.0; color: "#00A0A0A0"; }
|
GradientStop { position: 0.0; color: "#00000000"; }
|
||||||
GradientStop { position: 1.0; color: "#FFA0A0A0"; }
|
GradientStop { position: 1.0; color: "#86000000"; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -544,8 +544,8 @@ Rectangle {
|
|||||||
width: parent.height
|
width: parent.height
|
||||||
height: parent.width
|
height: parent.width
|
||||||
gradient: Gradient {
|
gradient: Gradient {
|
||||||
GradientStop { position: 0.0; color: "#FFA0A0A0"; }
|
GradientStop { position: 0.0; color: "#86000000"; }
|
||||||
GradientStop { position: 1.0; color: "#00A0A0A0"; }
|
GradientStop { position: 1.0; color: "#00000000"; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -556,8 +556,8 @@ Rectangle {
|
|||||||
width: root.width
|
width: root.width
|
||||||
x: 0
|
x: 0
|
||||||
gradient: Gradient {
|
gradient: Gradient {
|
||||||
GradientStop { position: 0.0; color: "#00A0A0A0"; }
|
GradientStop { position: 0.0; color: "#00000000"; }
|
||||||
GradientStop { position: 1.0; color: "#FFA0A0A0"; }
|
GradientStop { position: 1.0; color: "#86000000"; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,8 +105,8 @@ Canvas2D {
|
|||||||
ctxt.stroke();
|
ctxt.stroke();
|
||||||
|
|
||||||
// gradient borders
|
// gradient borders
|
||||||
var gradientDark = "rgba(160, 160, 160, 1)";
|
var gradientDark = "rgba(0, 0, 0, 0.53125)";
|
||||||
var gradientClear = "rgba(160, 160, 160, 0)";
|
var gradientClear = "rgba(0, 0, 0, 0)";
|
||||||
var grad = ctxt.createLinearGradient(0, 0, 0, 6);
|
var grad = ctxt.createLinearGradient(0, 0, 0, 6);
|
||||||
grad.addColorStop(0,gradientDark);
|
grad.addColorStop(0,gradientDark);
|
||||||
grad.addColorStop(1,gradientClear);
|
grad.addColorStop(1,gradientClear);
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 250 B |
Binary file not shown.
|
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 246 B |
@@ -161,6 +161,7 @@ void TimelineView::drawSelectionBoxes(QPainter *p)
|
|||||||
selectionColor = QColor(96,0,255);
|
selectionColor = QColor(96,0,255);
|
||||||
QPen strongPen(selectionColor, 3);
|
QPen strongPen(selectionColor, 3);
|
||||||
QPen lightPen(QBrush(selectionColor.lighter(130)), 2);
|
QPen lightPen(QBrush(selectionColor.lighter(130)), 2);
|
||||||
|
lightPen.setJoinStyle(Qt::MiterJoin);
|
||||||
p->setPen(lightPen);
|
p->setPen(lightPen);
|
||||||
|
|
||||||
int x, y, width, eventType;
|
int x, y, width, eventType;
|
||||||
@@ -183,7 +184,7 @@ void TimelineView::drawSelectionBoxes(QPainter *p)
|
|||||||
width = 1;
|
width = 1;
|
||||||
|
|
||||||
if (i == m_selectedItem)
|
if (i == m_selectedItem)
|
||||||
selectedItemRect = QRect(x,y,width,DefaultRowHeight);
|
selectedItemRect = QRect(x, y-1, width, DefaultRowHeight+1);
|
||||||
else
|
else
|
||||||
p->drawRect(x,y,width,DefaultRowHeight);
|
p->drawRect(x,y,width,DefaultRowHeight);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user