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
KInfoCenter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
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
KInfoCenter
Commits
1e5c0470
Commit
1e5c0470
authored
Oct 22, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some clazy warning
parent
4ba4f7e2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
8 deletions
+7
-8
Modules/base/info_wayland.cpp
Modules/base/info_wayland.cpp
+1
-1
Modules/base/os_base.h
Modules/base/os_base.h
+0
-1
Modules/devinfo/devicelisting.cpp
Modules/devinfo/devicelisting.cpp
+1
-1
Modules/devinfo/devicelisting.h
Modules/devinfo/devicelisting.h
+2
-2
Modules/opengl/opengl.cpp
Modules/opengl/opengl.cpp
+3
-3
No files found.
Modules/base/info_wayland.cpp
View file @
1e5c0470
...
...
@@ -72,7 +72,7 @@ void WaylandModule::init()
queue
->
setup
(
m_connection
);
registry
->
setEventQueue
(
queue
);
connect
(
registry
,
&
Registry
::
interfaceAnnounced
,
this
,
[
this
,
interfacesItem
]
(
QByteArray
interface
,
quint32
name
,
quint32
version
)
{
[
this
,
interfacesItem
]
(
const
QByteArray
&
interface
,
quint32
name
,
quint32
version
)
{
Q_UNUSED
(
name
)
new
QTreeWidgetItem
(
interfacesItem
,
QStringList
()
<<
interface
<<
QString
::
number
(
version
));
}
...
...
Modules/base/os_base.h
View file @
1e5c0470
...
...
@@ -218,7 +218,6 @@ static bool GetInfo_XServer_Generic(QTreeWidget *lBox) {
Display
*
dpy
;
XPixmapFormatValues
*
pmf
;
QString
str
,
txt
;
QTreeWidgetItem
*
last
,
*
item
,
*
next
;
dpy
=
XOpenDisplay
(
0
);
...
...
Modules/devinfo/devicelisting.cpp
View file @
1e5c0470
...
...
@@ -140,7 +140,7 @@ void DeviceListing::itemActivatedSlot(QTreeWidgetItem *listItemIn ,const int col
}
}
void
DeviceListing
::
deviceAddedSlot
(
const
QString
udi
)
void
DeviceListing
::
deviceAddedSlot
(
const
QString
&
udi
)
{
SolidHelper
*
solhelp
=
new
SolidHelper
();
const
QList
<
Solid
::
Device
>
list
=
Solid
::
Device
::
allDevices
();
...
...
Modules/devinfo/devicelisting.h
View file @
1e5c0470
...
...
@@ -61,7 +61,7 @@ class DeviceListing : public QTreeWidget
DeviceListing
(
QWidget
*
,
InfoPanel
*
,
DevInfoPlugin
*
);
~
DeviceListing
();
static
QTreeWidgetItem
*
getTreeWidgetItemFromUdi
(
QTreeWidget
*
widget
,
QString
udi
)
static
QTreeWidgetItem
*
getTreeWidgetItemFromUdi
(
QTreeWidget
*
widget
,
const
QString
&
udi
)
{
QTreeWidgetItemIterator
treeWidget
(
widget
);
while
(
*
treeWidget
)
...
...
@@ -87,7 +87,7 @@ class DeviceListing : public QTreeWidget
public
Q_SLOTS
:
void
itemActivatedSlot
(
QTreeWidgetItem
*
,
const
int
);
void
deviceAddedSlot
(
const
QString
);
void
deviceAddedSlot
(
const
QString
&
);
void
deviceRemovedSlot
(
const
QString
);
void
collapseAllDevicesSlot
();
void
expandAllDevicesSlot
();
...
...
Modules/opengl/opengl.cpp
View file @
1e5c0470
...
...
@@ -203,7 +203,7 @@ static bool get_dri_device()
if
(
end2
>
end
)
end
=
end2
;
dri_info
.
pci
[
end
]
=
'.'
;
QString
cmd
=
QString
(
"lspci -m -v -s "
)
+
dri_info
.
pci
;
QString
cmd
=
QString
Literal
(
"lspci -m -v -s "
)
+
dri_info
.
pci
;
QStringList
pci_info
;
int
num
;
if
(((
num
=
ReadPipe
(
cmd
,
pci_info
))
||
...
...
@@ -537,8 +537,8 @@ print_limits(QTreeWidgetItem *l1, const char * glExtensions, bool getProcAddress
if
(
glGetError
()
==
GL_NONE
)
{
QString
s
;
if
(
!
tfloat
&&
count
==
1
)
s
=
QString
::
number
(
max
[
0
]);
else
if
(
!
tfloat
&&
count
==
2
)
s
=
QString
(
"%1, %2"
).
arg
(
max
[
0
]).
arg
(
max
[
1
]);
else
if
(
tfloat
&&
count
==
2
)
s
=
QString
(
"%1 - %2"
).
arg
(
fmax
[
0
],
0
,
'f'
,
6
).
arg
(
fmax
[
1
],
0
,
'f'
,
6
);
else
if
(
!
tfloat
&&
count
==
2
)
s
=
QString
Literal
(
"%1, %2"
).
arg
(
max
[
0
]).
arg
(
max
[
1
]);
else
if
(
tfloat
&&
count
==
2
)
s
=
QString
Literal
(
"%1 - %2"
).
arg
(
fmax
[
0
],
0
,
'f'
,
6
).
arg
(
fmax
[
1
],
0
,
'f'
,
6
);
else
if
(
tfloat
&&
count
==
1
)
s
=
QString
::
number
(
fmax
[
0
],
'f'
,
6
);
if
(
l3
)
l3
=
newItem
(
l2
,
l3
,
cur_token
->
name
,
s
);
else
l3
=
newItem
(
l2
,
cur_token
->
name
,
s
);
...
...
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