summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/sysinfo.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-08-15 17:02:25 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-08-15 17:02:25 +0000
commit426bfa8d037e458bd58a4c2dca82cbddae2a2f66 (patch)
treeae7250597cec8a9a1dcbd680e044204ca331cc27 /rbutil/rbutilqt/sysinfo.cpp
parent2402aecbb5eeb82c5920f9d837cd287581c11c05 (diff)
downloadrockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.tar.gz
rockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.tar.bz2
rockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.zip
rbutil: add a errorlog function into rbutil and the possibility to save a log if a error happens. (thanks to bluebrother for the trace functionality)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22329 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/sysinfo.cpp')
-rw-r--r--rbutil/rbutilqt/sysinfo.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/sysinfo.cpp b/rbutil/rbutilqt/sysinfo.cpp
index ca34b4b063..65818df068 100644
--- a/rbutil/rbutilqt/sysinfo.cpp
+++ b/rbutil/rbutilqt/sysinfo.cpp
@@ -28,8 +28,7 @@
Sysinfo::Sysinfo(QWidget *parent) : QDialog(parent)
{
ui.setupUi(this);
- this->setModal(true);
-
+
updateSysinfo();
connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(close()));
connect(ui.buttonRefresh, SIGNAL(clicked()), this, SLOT(updateSysinfo()));
@@ -37,6 +36,11 @@ Sysinfo::Sysinfo(QWidget *parent) : QDialog(parent)
void Sysinfo::updateSysinfo(void)
{
+ ui.textBrowser->setHtml(getInfo());
+}
+
+QString Sysinfo::getInfo()
+{
QString info;
info += tr("<b>OS</b><br/>") + System::osVersionString() + "<hr/>";
info += tr("<b>Username</b><br/>%1<hr/>").arg(System::userName());
@@ -67,6 +71,7 @@ void Sysinfo::updateSysinfo(void)
}
info += "<hr/>";
- ui.textBrowser->setHtml(info);
+ return info;
}
+