From f8092f96b373f851eb91ae2ff94581bcba8d0279 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 7 Jun 2018 13:04:38 -0700 Subject: [PATCH] Qt: Move wireshark-qt.cpp back to ui/qt/main.cpp. The Qt UI's main module started out as ui/qt/main.cpp but was moved to the top-level directory in order to appease Autotools. We don't need to do that any more, so move it back. Change-Id: Ic5bc0ed5b754e36cc2b9e682f2ca097781233dfd Reviewed-on: https://code.wireshark.org/review/28090 Reviewed-by: Gerald Combs Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- CMakeLists.txt | 2 +- docbook/wsdg_src/WSDG_chapter_userinterface.asciidoc | 2 +- image/wireshark.exe.manifest.in | 2 +- tools/update-tx | 3 +-- ui/qt/CMakeLists.txt | 1 + wireshark-qt.cpp => ui/qt/main.cpp | 2 +- ui/qt/main_window.cpp | 2 +- ui/qt/widgets/wireshark_file_dialog.h | 4 ++-- ui/win32/file_dlg_win32.h | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) rename wireshark-qt.cpp => ui/qt/main.cpp (99%) diff --git a/CMakeLists.txt b/CMakeLists.txt index bee2583601..64754847e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2117,7 +2117,7 @@ if(BUILD_wireshark AND QT_FOUND) ${WIN_VERSION_LIBRARY} ) - add_executable(wireshark WIN32 MACOSX_BUNDLE wireshark-qt.cpp ${wireshark_FILES} ${EXTRA_BUNDLE_FILES}) + add_executable(wireshark WIN32 MACOSX_BUNDLE ${wireshark_FILES} ${EXTRA_BUNDLE_FILES}) add_dependencies(wireshark version) set(PROGLIST ${PROGLIST} wireshark) if(CMAKE_VERSION VERSION_LESS "2.8.12" diff --git a/docbook/wsdg_src/WSDG_chapter_userinterface.asciidoc b/docbook/wsdg_src/WSDG_chapter_userinterface.asciidoc index 9abc369d91..dd6ee31f65 100644 --- a/docbook/wsdg_src/WSDG_chapter_userinterface.asciidoc +++ b/docbook/wsdg_src/WSDG_chapter_userinterface.asciidoc @@ -88,7 +88,7 @@ prompt you to re-run CMake. ==== Source Code Overview -Wireshark’s `main` entry point is in _wireshark-qt.cpp_. Command-line arguments +Wireshark’s `main` entry point is in _ui/qt/main.cpp_. Command-line arguments are processed there and the main application class (`WiresharkApplication`) instance is created there along with the main window. diff --git a/image/wireshark.exe.manifest.in b/image/wireshark.exe.manifest.in index 805c2d9603..b75cb55fb4 100644 --- a/image/wireshark.exe.manifest.in +++ b/image/wireshark.exe.manifest.in @@ -50,7 +50,7 @@ MSDN recommends setting our DPI awareness to PerMonitorV2 instead of PerMonitor. Unfortunately that causes layout issues with Qt 5.6 and 5.9. For now enable PerMonitor DPI awareness by enabling - Qt::AA_EnableHighDpiScaling in wireshark-qt.cpp. + Qt::AA_EnableHighDpiScaling in ui/qt/main.cpp. -->