Display KDE Frameworks (KXmlGui) version.

This commit is contained in:
Andrius Štikonas 2014-05-29 12:52:33 +01:00
parent 2129ee24ab
commit debfbade66
2 changed files with 4 additions and 2 deletions

View File

@ -972,6 +972,7 @@ void MainWindow::onConfigureOptions()
// FIXME: we'd normally use settingsChanged(), according to the kde api docs. however, this
// is emitted each time the user changes any of our own settings (backend, default file system), without
// applying or clicking ok. so the below is the workaround for that.
// FIXME: port KF5
connect(dlg, SIGNAL(applyClicked()), SLOT(onSettingsChanged()));
connect(dlg, SIGNAL(okClicked()), SLOT(onSettingsChanged()));

View File

@ -30,6 +30,7 @@
#include <KAboutData>
#include <KLocalizedString>
#include <kxmlgui_version.h>
#include <sys/utsname.h>
#include <unistd.h>
@ -77,8 +78,8 @@ QString HtmlReport::header()
s << "<table>\n"
<< tableLine(i18n("Date:"), QLocale().toString(QDateTime::currentDateTime(), QLocale::ShortFormat))
<< tableLine(i18n("Program version:"), QCoreApplication::applicationVersion())
// << tableLine(i18n("Backend:"), QString("%1 (%2)").arg(CoreBackendManager::self()->backend()->about().displayName()).arg(CoreBackendManager::self()->backend()->about().version()))
// << tableLine(i18n("KDE version:"), KDE_VERSION_STRING) /* FIXME: port KF5 */
// << tableLine(i18n("Backend:"), QString("%1 (%2)").arg(CoreBackendManager::self()->backend()->about().displayName()).arg(CoreBackendManager::self()->backend()->about().version())) /* FIXME: port KF5 */
<< tableLine(i18n("KDE Frameworks version:"), QStringLiteral(KXMLGUI_VERSION_STRING))
<< tableLine(i18n("Machine:"), unameString)
<< "</table>\n<br/>\n";