42 const QString result_key = QString::fromStdString(key);
43 QTextBrowser *textBrowser =
new QTextBrowser(
ui->scrollAreaWidgetContents);
44 textBrowser->setObjectName(result_key);
46 textBrowser->setTextColor(Qt::red);
47 textBrowser->append(QString::fromStdString(resultitem.
Name())+
":");
48 textBrowser->setTextColor(Qt::black);
49 textBrowser->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
56 str = QString::fromStdString(
"Push the graph or table button");
58 str = QString::fromStdString(
"Push the graph button");
60 str = QString::fromStdString(
"Push the table button");
64 textBrowser->append(str);
66 for(
int i = 0;i < str.length();i++)
67 if(str.at(i).cell() ==
'\n')
69 textBrowser->setMaximumHeight(textBrowser->fontMetrics().height() * (count+3));
70 textBrowser->setMinimumHeight(textBrowser->fontMetrics().height() * (count+2));
71 ui->gridLayout->setAlignment(Qt::AlignTop);
72 ui->gridLayout->addWidget(textBrowser,
ui->gridLayout->rowCount(),0);
75 QPushButton *pushButtonGraph =
new QPushButton(
this);
76 QIcon iconGraph = QIcon(qApp->applicationDirPath()+
"/../../resources/Icons/Graph.png");
77 pushButtonGraph->setIcon(iconGraph);
79 pushButtonGraph->setMaximumWidth(20);
80 pushButtonGraph->setObjectName(result_key);
82 ui->gridLayout->addWidget(pushButtonGraph,
ui->gridLayout->rowCount()-1,1,1,1,Qt::AlignTop);
86 QPushButton *pushButtonExport =
new QPushButton(
this);
87 QIcon iconExport = QIcon(qApp->applicationDirPath()+
"/../../resources/Icons/export.png");
88 pushButtonExport->setIcon(iconExport);
90 pushButtonExport->setMaximumWidth(20);
91 pushButtonExport->setObjectName(result_key);
92 ui->gridLayout->addWidget(pushButtonExport,
ui->gridLayout->rowCount()-1,2,1,1,Qt::AlignTop);
97 { QPushButton *pushButtonTable =
new QPushButton(
this);
98 QIcon iconTable = QIcon(qApp->applicationDirPath()+
"/../../resources/Icons/table.png");
99 pushButtonTable->setIcon(iconTable);
101 pushButtonTable->setMaximumWidth(20);
102 pushButtonTable->setObjectName(result_key);
103 ui->gridLayout->addWidget(pushButtonTable,
ui->gridLayout->rowCount()-1,3,1,1,Qt::AlignTop);