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
Graphics
digiKam
Commits
62e99542
Commit
62e99542
authored
May 06, 2014
by
Gilles Caulier
🗼
Browse files
add info about CPU cores available in Information Dialog
CCBUGS: 289204
parent
c63d1ffd
Changes
2
Hide whitespace changes
Inline
Side-by-side
libs/dialogs/libsinfodlg.cpp
View file @
62e99542
...
...
@@ -6,7 +6,7 @@
* Date : 2008-07-11
* Description : shared libraries list dialog
*
* Copyright (C) 2008-201
2
by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2008-201
4
by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
...
...
@@ -28,6 +28,7 @@
#include <QStringList>
#include <QString>
#include <QTreeWidget>
#include <QThreadPool>
// KDE includes
...
...
@@ -155,6 +156,9 @@ LibsInfoDlg::LibsInfoDlg(QWidget* const parent)
list
.
insert
(
i18n
(
"Parallelized PGF codec"
),
PGFUtils
::
libPGFUseOpenMP
()
?
i18n
(
"Yes"
)
:
i18n
(
"No"
));
int
nbcore
=
QThreadPool
::
globalInstance
()
->
maxThreadCount
();
list
.
insert
(
i18np
(
"CPU core"
,
"CPU cores"
,
nbcore
),
QString
(
"%1"
).
arg
(
nbcore
));
listView
()
->
setHeaderLabels
(
QStringList
()
<<
i18n
(
"Component"
)
<<
i18n
(
"Info"
));
setInfoMap
(
list
);
}
...
...
libs/dialogs/libsinfodlg.h
View file @
62e99542
...
...
@@ -6,7 +6,7 @@
* Date : 2008-07-11
* Description : shared libraries list dialog
*
* Copyright (C) 2008-201
3
by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2008-201
4
by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
...
...
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