Commit 62e99542 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

add info about CPU cores available in Information Dialog

CCBUGS: 289204
parent c63d1ffd
......@@ -6,7 +6,7 @@
* Date : 2008-07-11
* Description : shared libraries list dialog
*
* Copyright (C) 2008-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2008-2014 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);
}
......
......@@ -6,7 +6,7 @@
* Date : 2008-07-11
* Description : shared libraries list dialog
*
* Copyright (C) 2008-2013 by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2008-2014 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment