Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma Workspace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
63
Merge Requests
63
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Plasma Workspace
Commits
fc363725
Commit
fc363725
authored
Mar 01, 2019
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated method
parent
2286c89b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
klipper/autotests/modeltest.cpp
klipper/autotests/modeltest.cpp
+2
-2
No files found.
klipper/autotests/modeltest.cpp
View file @
fc363725
...
...
@@ -458,12 +458,12 @@ void ModelTest::data()
}
// General Purpose roles that should return a QColor
QVariant
colorVariant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
Background
Color
Role
);
QVariant
colorVariant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
BackgroundRole
);
if
(
colorVariant
.
isValid
()
)
{
QVERIFY
(
colorVariant
.
canConvert
<
QColor
>
()
);
}
colorVariant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
TextColor
Role
);
colorVariant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
Foreground
Role
);
if
(
colorVariant
.
isValid
()
)
{
QVERIFY
(
colorVariant
.
canConvert
<
QColor
>
()
);
}
...
...
Write
Preview
Markdown
is supported
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