Qt: declare one_em to fix compile error when HAVE_PCAP_REMOTE is defined
Occured on Windows(10) x64 build. Change-Id: I04d88bec1660dae20f459d2e03c88864c9366dc3 Reviewed-on: https://code.wireshark.org/review/18315 Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
parent
1d35c7f096
commit
10c46fc308
|
@ -122,6 +122,7 @@ ManageInterfacesDialog::ManageInterfacesDialog(QWidget *parent) :
|
|||
#if defined(HAVE_PCAP_REMOTE)
|
||||
// The default indentation (20) means our checkboxes are shifted too far on Windows.
|
||||
// Assume that our disclosure and checkbox controls are square, or at least fit within an em.
|
||||
int one_em = fontMetrics().height();
|
||||
ui->remoteList->setIndentation(one_em);
|
||||
ui->remoteList->setColumnWidth(col_r_show_, one_em * 4);
|
||||
ui->remoteSettings->setEnabled(false);
|
||||
|
|
Loading…
Reference in New Issue