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 <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Gerald Combs 2018-06-07 13:04:38 -07:00 committed by Anders Broman
parent 37119e5da0
commit f8092f96b3
9 changed files with 11 additions and 11 deletions

View File

@ -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"

View File

@ -88,7 +88,7 @@ prompt you to re-run CMake.
==== Source Code Overview
Wiresharks `main` entry point is in _wireshark-qt.cpp_. Command-line arguments
Wiresharks `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.

View File

@ -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.
-->
<!--
<application xmlns="urn:schemas-microsoft-com:asm.v3">

View File

@ -11,9 +11,8 @@ while getopts "n" OPTCHAR ; do
done
shift $((OPTIND - 1))
# All .cpp, .h, and .ui files under ui/qt plus wireshark-qt.cpp.
# All .cpp, .h, and .ui files under ui/qt
LUPDATE_FILES=$(find ui/qt -name '*.cpp' -o -name '*.h' -o -name '*.ui')
LUPDATE_FILES=($LUPDATE_FILES wireshark-qt.cpp)
# Add line numbers
for i in ui/qt/*.ts ; do

View File

@ -373,6 +373,7 @@ set(WIRESHARK_QT_SRC
lte_rlc_statistics_dialog.cpp
main_status_bar.cpp
welcome_page.cpp
main.cpp
main_window.cpp
main_window_preferences_frame.cpp
main_window_layout.cpp

View File

@ -1,4 +1,4 @@
/* wireshark-qt.cpp
/* main.cpp
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>

View File

@ -958,7 +958,7 @@ void MainWindow::closeEvent(QCloseEvent *event) {
}
wsApp->quit();
// When the main loop is not yet running (i.e. when openCaptureFile is
// executing in wireshark-qt.cpp), the above quit action has no effect.
// executing in main.cpp), the above quit action has no effect.
// Schedule a quit action for the next execution of the main loop.
QMetaObject::invokeMethod(wsApp, "quit", Qt::QueuedConnection);
}

View File

@ -16,8 +16,8 @@
* @brief The WiresharkFileDialog class
*
* Qt <= 5.9 supports setting old (Windows 8.1) per-monitor DPI awareness
* via Qt:AA_EnableHighDpiScaling. We do this in wireshark-qt.cpp. In order
* for native dialogs to be rendered correctly we need to to set per-monitor
* via Qt:AA_EnableHighDpiScaling. We do this in main.cpp. In order for
* native dialogs to be rendered correctly we need to to set per-monitor
* *v2* awareness prior to creating the dialog.
* Qt doesn't render correctly when per-monitor v2 awareness is enabled, so
* we need to revert our thread context when we're done.

View File

@ -24,8 +24,8 @@ extern "C" {
* @brief set_thread_per_monitor_v2_awareness
*
* Qt <= 5.9 supports setting old (Windows 8.1) per-monitor DPI awareness
* via Qt:AA_EnableHighDpiScaling. We do this in wireshark-qt.cpp. In order
* for native dialogs to be rendered correctly we need to to set per-monitor
* via Qt:AA_EnableHighDpiScaling. We do this in main.cpp. In order for
* native dialogs to be rendered correctly we need to to set per-monitor
* *v2* awareness prior to creating the dialog, which we can do here.
* Qt doesn't render correctly when per-monitor v2 awareness is enabled, so
* we need to revert our thread context when we're done.