Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dtk
dtk
Commits
a9219c76
Commit
a9219c76
authored
Nov 28, 2012
by
Julien Wintz
Browse files
Styling of generic composer controls entries (some bg tests).
parent
dd6a6832
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/dtkComposer/dtkComposerControlsDelegate.cpp
View file @
a9219c76
...
...
@@ -4,9 +4,9 @@
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Wed Nov 28 15:12:23 2012 (+0100)
* Version: $Id$
* Last-Updated: Wed Nov 28 1
6:06:09
2012 (+0100)
* Last-Updated: Wed Nov 28 1
7:16:25
2012 (+0100)
* By: Julien Wintz
* Update #:
92
* Update #:
135
*/
/* Commentary:
...
...
@@ -59,7 +59,19 @@ QWidget *dtkComposerControlsDelegate::createEditor(QWidget *parent, const QStyle
void
dtkComposerControlsDelegate
::
paint
(
QPainter
*
painter
,
const
QStyleOptionViewItem
&
option
,
const
QModelIndex
&
index
)
const
{
painter
->
fillRect
(
option
.
rect
,
Qt
::
lightGray
);
QLinearGradient
gradient
;
gradient
.
setStart
(
option
.
rect
.
topLeft
());
gradient
.
setFinalStop
(
option
.
rect
.
bottomLeft
());
gradient
.
setColorAt
(
0
,
Qt
::
lightGray
);
gradient
.
setColorAt
(
1
,
Qt
::
gray
);
painter
->
save
();
painter
->
fillRect
(
option
.
rect
,
gradient
);
painter
->
setPen
(
QColor
(
"#eeeeee"
));
painter
->
drawLine
(
option
.
rect
.
topLeft
(),
option
.
rect
.
topRight
());
painter
->
setPen
(
Qt
::
darkGray
);
painter
->
drawLine
(
option
.
rect
.
bottomLeft
(),
option
.
rect
.
bottomRight
());
painter
->
restore
();
QStyledItemDelegate
::
paint
(
painter
,
option
,
index
);
}
...
...
tools/dtkCreator/dtkCreator.qss
View file @
a9219c76
...
...
@@ -4,9 +4,9 @@
;; Copyright (C) 2008-2011 - Julien Wintz, Inria.
;; Created: Thu Mar 15 12:05:17 2012 (+0100)
;; Version: $Id$
;; Last-Updated: Wed Nov 28 1
6
:0
8:27
2012 (+0100)
;; Last-Updated: Wed Nov 28 1
7
:0
3:56
2012 (+0100)
;; By: Julien Wintz
;; Update #: 4
40
;; Update #: 4
55
*/
/*Commentary:
...
...
@@ -401,6 +401,11 @@ dtkComposerPath {
border-bottom: 1px solid #6c6c6c;
}
dtkComposerPath:!active {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f5f5f5, stop: 1.0 #dadada);
border-bottom: 1px solid #6c6c6c;
}
dtkComposerPath QLabel {
color : #111111;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment