diff --git a/sources/awesome-widget/advanced.ui b/sources/awesome-widget/advanced.ui index 07247b3..1649d51 100644 --- a/sources/awesome-widget/advanced.ui +++ b/sources/awesome-widget/advanced.ui @@ -7,7 +7,7 @@ 0 0 700 - 590 + 588 @@ -41,7 +41,7 @@ 0 - 0 + -250 675 822 @@ -481,9 +481,9 @@ $m - uptime minutes without zero - + - + Qt::Horizontal @@ -496,7 +496,7 @@ $m - uptime minutes without zero - + 0 diff --git a/sources/awesome-widget/customlabel.cpp b/sources/awesome-widget/customlabel.cpp index b50b88a..3854022 100644 --- a/sources/awesome-widget/customlabel.cpp +++ b/sources/awesome-widget/customlabel.cpp @@ -65,7 +65,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *event) if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode; if (process.exitCode != 0) if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error; - text += QString("Kernel: %1\n").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed()); + text += QString("Kernel: %1
").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed()); // hostname cmd = QString("uname -n"); if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd; @@ -73,7 +73,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *event) if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode; if (process.exitCode != 0) if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error; - text += QString("Hostname: %1\n").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed()); + text += QString("Hostname: %1
").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed()); // whoami cmd = QString("whoami"); if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd; @@ -81,7 +81,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *event) if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode; if (process.exitCode != 0) if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error; - text += QString("Whoami: %1\n").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed()); + text += QString("Whoami: %1
").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed()); // uptime cmd = QString("uptime"); if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd; @@ -89,7 +89,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *event) if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode; if (process.exitCode != 0) if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error; - text += QString("Uptime: %1\n").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed()); + text += QString("Uptime: %1").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed()); widget->sendNotification(QString("system"), text); }