Windows: Make sure more native dialogs handle HiDPI.
authorGerald Combs <gerald@wireshark.org>
Wed, 16 May 2018 00:02:26 +0000 (17:02 -0700)
committerAnders Broman <a.broman58@gmail.com>
Wed, 16 May 2018 04:22:20 +0000 (04:22 +0000)
commit62999cc6776e2b94e5a888ce77d6452a1020c660
tree5fb2f0ac932eb72277e45d59bc298f36c01347c1
parentd3427b8a65d926ae4c85d0ec730eaf1a574041c3
Windows: Make sure more native dialogs handle HiDPI.

Add a WiresharkFileDialog class, which is a thin wrapper around a few
QFileDialog functions that sets per-monitor v2 DPI awareness before
showing native dialogs and resets the awareness context afterward.
Use it where we call QFileDialog::getXXX.

Change-Id: Ib711a70aa94b693a2515804a729f666ea7fbd673
Reviewed-on: https://code.wireshark.org/review/27568
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
32 files changed:
ui/qt/CMakeLists.txt
ui/qt/bluetooth_att_server_attributes_dialog.cpp
ui/qt/bluetooth_device_dialog.cpp
ui/qt/bluetooth_devices_dialog.cpp
ui/qt/bluetooth_hci_summary_dialog.cpp
ui/qt/capture_interfaces_dialog.cpp
ui/qt/coloring_rules_dialog.cpp
ui/qt/export_object_dialog.cpp
ui/qt/extcap_argument_file.cpp
ui/qt/firewall_rules_dialog.cpp
ui/qt/follow_stream_dialog.cpp
ui/qt/iax2_analysis_dialog.cpp
ui/qt/import_text_dialog.cpp
ui/qt/io_graph_dialog.cpp
ui/qt/lte_rlc_graph_dialog.cpp
ui/qt/main_window_preferences_frame.cpp
ui/qt/main_window_slots.cpp
ui/qt/manage_interfaces_dialog.cpp
ui/qt/manager/wireshark_preference.cpp
ui/qt/models/path_chooser_delegate.cpp
ui/qt/module_preferences_scroll_area.cpp
ui/qt/rtp_analysis_dialog.cpp
ui/qt/rtp_stream_dialog.cpp
ui/qt/sctp_all_assocs_dialog.cpp
ui/qt/sctp_graph_dialog.cpp
ui/qt/sequence_dialog.cpp
ui/qt/show_packet_bytes_dialog.cpp
ui/qt/tap_parameter_dialog.cpp
ui/qt/tcp_stream_dialog.cpp
ui/qt/widgets/editor_file_dialog.cpp
ui/qt/widgets/wireshark_file_dialog.cpp [new file with mode: 0644]
ui/qt/widgets/wireshark_file_dialog.h [new file with mode: 0644]