Initial commit of detail panel
This commit is contained in:
parent
4c82a5e84a
commit
9d575707f0
@ -7691,6 +7691,18 @@ void MainWindow::on_tableWidgetRXAll_selectionChanged(const QItemSelection &/*se
|
|||||||
}
|
}
|
||||||
ui->extFreeTextMsgEdit->setPlaceholderText(placeholderText);
|
ui->extFreeTextMsgEdit->setPlaceholderText(placeholderText);
|
||||||
|
|
||||||
|
// heard detail
|
||||||
|
auto hearing = m_heardGraphOutgoing.value(selectedCall).values().join(", ");
|
||||||
|
auto heardby = m_heardGraphIncoming.value(selectedCall).values().join(", ");
|
||||||
|
auto html = selectedCall.isEmpty() || selectedCall.contains("@") ? "" : (
|
||||||
|
QString("<h1>%1</h1>").arg(selectedCall) +
|
||||||
|
QString("<p><strong>HEARING</strong>: %1</p>").arg(hearing) +
|
||||||
|
QString("<p><strong>HEARD BY</strong>: %1</p>").arg(heardby)
|
||||||
|
);
|
||||||
|
ui->callDetailTextBrowser->setHtml(html);
|
||||||
|
ui->callDetailTextBrowser->setMinimumHeight((qreal)50.0 + min(ui->callDetailTextBrowser->document()->size().height(), ui->callsVerticalSplitter->height() * 0.33));
|
||||||
|
|
||||||
|
|
||||||
// immediately update the display);
|
// immediately update the display);
|
||||||
updateButtonDisplay();
|
updateButtonDisplay();
|
||||||
updateTextDisplay();
|
updateTextDisplay();
|
||||||
@ -10511,16 +10523,6 @@ void MainWindow::displayCallActivity() {
|
|||||||
|
|
||||||
auto displayItem = new QTableWidgetItem(displayCall);
|
auto displayItem = new QTableWidgetItem(displayCall);
|
||||||
displayItem->setData(Qt::UserRole, QVariant(d.call));
|
displayItem->setData(Qt::UserRole, QVariant(d.call));
|
||||||
auto hearing = m_heardGraphOutgoing.value(d.call).values().join(", ");
|
|
||||||
auto heardby = m_heardGraphIncoming.value(d.call).values().join(", ");
|
|
||||||
QStringList tip = {};
|
|
||||||
if(!hearing.isEmpty()){
|
|
||||||
tip.append(QString("HEARING: %1").arg(hearing));
|
|
||||||
}
|
|
||||||
if(!heardby.isEmpty()){
|
|
||||||
tip.append(QString("HEARD BY: %1").arg(heardby));
|
|
||||||
}
|
|
||||||
displayItem->setToolTip(tip.join("\n"));
|
|
||||||
|
|
||||||
ui->tableWidgetCalls->setItem(row, col++, displayItem);
|
ui->tableWidgetCalls->setItem(row, col++, displayItem);
|
||||||
|
|
||||||
|
@ -1103,6 +1103,19 @@ QTextEdit[transmitting="true"] {
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QSplitter" name="callsVerticalSplitter">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
|
<horstretch>10</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="handleWidth">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
<widget class="QTableWidget" name="tableWidgetCalls">
|
<widget class="QTableWidget" name="tableWidgetCalls">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
@ -1209,6 +1222,12 @@ QTextEdit[transmitting="true"] {
|
|||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QTextBrowser" name="callDetailTextBrowser">
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::Box</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="macroHorizonalWidget" native="true">
|
<widget class="QWidget" name="macroHorizonalWidget" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
Loading…
Reference in New Issue
Block a user