0c51a87563
The ui_XXX.h include did not match the location of the XXX.ui file, and AUTOUIC failed with "SRC:/addtorrentdialog.h" includes the uic file "ui_addtorrentform.h", but the user interface file "addtorrentform.ui" could not be found in the following directories "SRC:" While this could be fixed by adjusting the include paths properly, this would complicate the CMake project file, and we're dealing with an example where needless complexity would cloud comprehensibility. Move the .ui file next to corresponding source files instead. This removes the need for any special cases in CMakeLists.txt, and we can remove .prev_CMakeLists.txt. Fixes: QTBUG-87457 Pick-to: 6.1 Change-Id: Ic2dec5ded7100e22d5afc571efc4b009bc62e41c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
36 lines
888 B
Prolog
36 lines
888 B
Prolog
QT += network widgets
|
|
requires(qtConfig(filedialog))
|
|
|
|
HEADERS += addtorrentdialog.h \
|
|
bencodeparser.h \
|
|
connectionmanager.h \
|
|
mainwindow.h \
|
|
metainfo.h \
|
|
peerwireclient.h \
|
|
ratecontroller.h \
|
|
filemanager.h \
|
|
torrentclient.h \
|
|
torrentserver.h \
|
|
trackerclient.h
|
|
|
|
SOURCES += main.cpp \
|
|
addtorrentdialog.cpp \
|
|
bencodeparser.cpp \
|
|
connectionmanager.cpp \
|
|
mainwindow.cpp \
|
|
metainfo.cpp \
|
|
peerwireclient.cpp \
|
|
ratecontroller.cpp \
|
|
filemanager.cpp \
|
|
torrentclient.cpp \
|
|
torrentserver.cpp \
|
|
trackerclient.cpp
|
|
|
|
# Forms and resources
|
|
FORMS += addtorrentform.ui
|
|
RESOURCES += icons.qrc
|
|
|
|
# install
|
|
target.path = $$[QT_INSTALL_EXAMPLES]/network/torrent
|
|
INSTALLS += target
|