19 , m_logcatProcess(parent)
22 QString program =
"logcat";
23 QStringList arguments = {
"-v",
"time",
"--pid", QString::number(getpid())};
26 if (!errorOutput.isEmpty()) {
27 qWarning() <<
"Couldn't spawn logcat process" << errorOutput;
37 if (loggingButton->isChecked()) {
44 QRect screen_rect = QGuiApplication::primaryScreen()->availableGeometry();
45 int frame_height = parentWidget()->frameGeometry().height() - parentWidget()->size().height();
46 resize(
m_page->size().width(), screen_rect.height() - frame_height);
57 QScrollBar *scrollBar =
m_page->txtBugInfo->verticalScrollBar();
58 const bool scrollbarAtBottom = scrollBar->value() >= scrollBar->maximum();
63 QTextCursor
tmp(
m_page->txtBugInfo->document());
64 tmp.movePosition(QTextCursor::End);
65 tmp.insertText(output);
68 if (scrollbarAtBottom) {
69 scrollBar->setValue(scrollBar->maximum());