mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Merge pull request #12718 from glassez/improve-cmake
Improve CMake project
This commit is contained in:
@@ -1,176 +1,165 @@
|
||||
set(CMAKE_AUTORCC True)
|
||||
set(CMAKE_AUTOUIC True)
|
||||
|
||||
add_library(qbt_gui_headers INTERFACE)
|
||||
target_include_directories(qbt_gui_headers INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_library(qbt_gui STATIC
|
||||
# headers
|
||||
aboutdialog.h
|
||||
addnewtorrentdialog.h
|
||||
advancedsettings.h
|
||||
autoexpandabledialog.h
|
||||
banlistoptionsdialog.h
|
||||
categoryfiltermodel.h
|
||||
categoryfilterproxymodel.h
|
||||
categoryfilterwidget.h
|
||||
cookiesdialog.h
|
||||
cookiesmodel.h
|
||||
deletionconfirmationdialog.h
|
||||
downloadfromurldialog.h
|
||||
executionlogwidget.h
|
||||
fspathedit.h
|
||||
hidabletabwidget.h
|
||||
ipsubnetwhitelistoptionsdialog.h
|
||||
lineedit.h
|
||||
mainwindow.h
|
||||
optionsdialog.h
|
||||
previewlistdelegate.h
|
||||
previewselectdialog.h
|
||||
private/fspathedit_p.h
|
||||
private/tristatewidget.h
|
||||
raisedmessagebox.h
|
||||
scanfoldersdelegate.h
|
||||
shutdownconfirmdialog.h
|
||||
speedlimitdialog.h
|
||||
statsdialog.h
|
||||
statusbar.h
|
||||
tagfiltermodel.h
|
||||
tagfilterproxymodel.h
|
||||
tagfilterwidget.h
|
||||
torrentcategorydialog.h
|
||||
torrentcontentfiltermodel.h
|
||||
torrentcontentmodel.h
|
||||
torrentcontentmodelfile.h
|
||||
torrentcontentmodelfolder.h
|
||||
torrentcontentmodelitem.h
|
||||
torrentcontenttreeview.h
|
||||
torrentcreatordialog.h
|
||||
trackerentriesdialog.h
|
||||
transferlistdelegate.h
|
||||
transferlistfilterswidget.h
|
||||
transferlistmodel.h
|
||||
transferlistsortmodel.h
|
||||
transferlistwidget.h
|
||||
tristateaction.h
|
||||
uithememanager.h
|
||||
updownratiodialog.h
|
||||
utils.h
|
||||
|
||||
# sources
|
||||
aboutdialog.cpp
|
||||
addnewtorrentdialog.cpp
|
||||
advancedsettings.cpp
|
||||
autoexpandabledialog.cpp
|
||||
banlistoptionsdialog.cpp
|
||||
categoryfiltermodel.cpp
|
||||
categoryfilterproxymodel.cpp
|
||||
categoryfilterwidget.cpp
|
||||
cookiesdialog.cpp
|
||||
cookiesmodel.cpp
|
||||
deletionconfirmationdialog.cpp
|
||||
downloadfromurldialog.cpp
|
||||
executionlogwidget.cpp
|
||||
fspathedit.cpp
|
||||
hidabletabwidget.cpp
|
||||
ipsubnetwhitelistoptionsdialog.cpp
|
||||
lineedit.cpp
|
||||
mainwindow.cpp
|
||||
optionsdialog.cpp
|
||||
previewlistdelegate.cpp
|
||||
previewselectdialog.cpp
|
||||
private/fspathedit_p.cpp
|
||||
private/tristatewidget.cpp
|
||||
raisedmessagebox.cpp
|
||||
scanfoldersdelegate.cpp
|
||||
shutdownconfirmdialog.cpp
|
||||
speedlimitdialog.cpp
|
||||
statsdialog.cpp
|
||||
statusbar.cpp
|
||||
tagfiltermodel.cpp
|
||||
tagfilterproxymodel.cpp
|
||||
tagfilterwidget.cpp
|
||||
torrentcategorydialog.cpp
|
||||
torrentcontentfiltermodel.cpp
|
||||
torrentcontentmodel.cpp
|
||||
torrentcontentmodelfile.cpp
|
||||
torrentcontentmodelfolder.cpp
|
||||
torrentcontentmodelitem.cpp
|
||||
torrentcontenttreeview.cpp
|
||||
torrentcreatordialog.cpp
|
||||
trackerentriesdialog.cpp
|
||||
transferlistdelegate.cpp
|
||||
transferlistfilterswidget.cpp
|
||||
transferlistmodel.cpp
|
||||
transferlistsortmodel.cpp
|
||||
transferlistwidget.cpp
|
||||
tristateaction.cpp
|
||||
uithememanager.cpp
|
||||
updownratiodialog.cpp
|
||||
utils.cpp
|
||||
|
||||
# forms
|
||||
aboutdialog.ui
|
||||
addnewtorrentdialog.ui
|
||||
autoexpandabledialog.ui
|
||||
banlistoptionsdialog.ui
|
||||
cookiesdialog.ui
|
||||
deletionconfirmationdialog.ui
|
||||
downloadfromurldialog.ui
|
||||
executionlogwidget.ui
|
||||
ipsubnetwhitelistoptionsdialog.ui
|
||||
mainwindow.ui
|
||||
optionsdialog.ui
|
||||
previewselectdialog.ui
|
||||
shutdownconfirmdialog.ui
|
||||
speedlimitdialog.ui
|
||||
statsdialog.ui
|
||||
torrentcategorydialog.ui
|
||||
torrentcreatordialog.ui
|
||||
trackerentriesdialog.ui
|
||||
updownratiodialog.ui
|
||||
|
||||
# resources
|
||||
about.qrc
|
||||
)
|
||||
|
||||
if (WIN32 OR APPLE)
|
||||
target_sources(qbt_gui PRIVATE programupdater.h programupdater.cpp)
|
||||
endif()
|
||||
|
||||
add_subdirectory(log)
|
||||
add_subdirectory(properties)
|
||||
add_subdirectory(powermanagement)
|
||||
add_subdirectory(rss)
|
||||
add_subdirectory(search)
|
||||
|
||||
add_library(qbt_gui STATIC
|
||||
# headers
|
||||
aboutdialog.h
|
||||
addnewtorrentdialog.h
|
||||
advancedsettings.h
|
||||
autoexpandabledialog.h
|
||||
banlistoptionsdialog.h
|
||||
categoryfiltermodel.h
|
||||
categoryfilterproxymodel.h
|
||||
categoryfilterwidget.h
|
||||
cookiesdialog.h
|
||||
cookiesmodel.h
|
||||
deletionconfirmationdialog.h
|
||||
downloadfromurldialog.h
|
||||
executionlogwidget.h
|
||||
fspathedit.h
|
||||
hidabletabwidget.h
|
||||
ipsubnetwhitelistoptionsdialog.h
|
||||
lineedit.h
|
||||
log/logfiltermodel.h
|
||||
log/loglistview.h
|
||||
log/logmodel.h
|
||||
mainwindow.h
|
||||
optionsdialog.h
|
||||
previewlistdelegate.h
|
||||
previewselectdialog.h
|
||||
private/fspathedit_p.h
|
||||
private/tristatewidget.h
|
||||
raisedmessagebox.h
|
||||
scanfoldersdelegate.h
|
||||
shutdownconfirmdialog.h
|
||||
speedlimitdialog.h
|
||||
statsdialog.h
|
||||
statusbar.h
|
||||
tagfiltermodel.h
|
||||
tagfilterproxymodel.h
|
||||
tagfilterwidget.h
|
||||
torrentcategorydialog.h
|
||||
torrentcontentfiltermodel.h
|
||||
torrentcontentmodel.h
|
||||
torrentcontentmodelfile.h
|
||||
torrentcontentmodelfolder.h
|
||||
torrentcontentmodelitem.h
|
||||
torrentcontenttreeview.h
|
||||
torrentcreatordialog.h
|
||||
trackerentriesdialog.h
|
||||
transferlistdelegate.h
|
||||
transferlistfilterswidget.h
|
||||
transferlistmodel.h
|
||||
transferlistsortmodel.h
|
||||
transferlistwidget.h
|
||||
tristateaction.h
|
||||
uithememanager.h
|
||||
updownratiodialog.h
|
||||
utils.h
|
||||
|
||||
# sources
|
||||
aboutdialog.cpp
|
||||
addnewtorrentdialog.cpp
|
||||
advancedsettings.cpp
|
||||
autoexpandabledialog.cpp
|
||||
banlistoptionsdialog.cpp
|
||||
categoryfiltermodel.cpp
|
||||
categoryfilterproxymodel.cpp
|
||||
categoryfilterwidget.cpp
|
||||
cookiesdialog.cpp
|
||||
cookiesmodel.cpp
|
||||
deletionconfirmationdialog.cpp
|
||||
downloadfromurldialog.cpp
|
||||
executionlogwidget.cpp
|
||||
fspathedit.cpp
|
||||
hidabletabwidget.cpp
|
||||
ipsubnetwhitelistoptionsdialog.cpp
|
||||
lineedit.cpp
|
||||
log/logfiltermodel.cpp
|
||||
log/loglistview.cpp
|
||||
log/logmodel.cpp
|
||||
mainwindow.cpp
|
||||
optionsdialog.cpp
|
||||
previewlistdelegate.cpp
|
||||
previewselectdialog.cpp
|
||||
private/fspathedit_p.cpp
|
||||
private/tristatewidget.cpp
|
||||
raisedmessagebox.cpp
|
||||
scanfoldersdelegate.cpp
|
||||
shutdownconfirmdialog.cpp
|
||||
speedlimitdialog.cpp
|
||||
statsdialog.cpp
|
||||
statusbar.cpp
|
||||
tagfiltermodel.cpp
|
||||
tagfilterproxymodel.cpp
|
||||
tagfilterwidget.cpp
|
||||
torrentcategorydialog.cpp
|
||||
torrentcontentfiltermodel.cpp
|
||||
torrentcontentmodel.cpp
|
||||
torrentcontentmodelfile.cpp
|
||||
torrentcontentmodelfolder.cpp
|
||||
torrentcontentmodelitem.cpp
|
||||
torrentcontenttreeview.cpp
|
||||
torrentcreatordialog.cpp
|
||||
trackerentriesdialog.cpp
|
||||
transferlistdelegate.cpp
|
||||
transferlistfilterswidget.cpp
|
||||
transferlistmodel.cpp
|
||||
transferlistsortmodel.cpp
|
||||
transferlistwidget.cpp
|
||||
tristateaction.cpp
|
||||
uithememanager.cpp
|
||||
updownratiodialog.cpp
|
||||
utils.cpp
|
||||
|
||||
# forms
|
||||
aboutdialog.ui
|
||||
addnewtorrentdialog.ui
|
||||
autoexpandabledialog.ui
|
||||
banlistoptionsdialog.ui
|
||||
cookiesdialog.ui
|
||||
deletionconfirmationdialog.ui
|
||||
downloadfromurldialog.ui
|
||||
executionlogwidget.ui
|
||||
ipsubnetwhitelistoptionsdialog.ui
|
||||
mainwindow.ui
|
||||
optionsdialog.ui
|
||||
previewselectdialog.ui
|
||||
shutdownconfirmdialog.ui
|
||||
speedlimitdialog.ui
|
||||
statsdialog.ui
|
||||
torrentcategorydialog.ui
|
||||
torrentcreatordialog.ui
|
||||
trackerentriesdialog.ui
|
||||
updownratiodialog.ui
|
||||
)
|
||||
if (UNIX AND Qt5DBus_FOUND)
|
||||
add_subdirectory(qtnotify)
|
||||
target_link_libraries(qbt_gui PRIVATE Qt5::DBus)
|
||||
endif()
|
||||
|
||||
target_link_libraries(qbt_gui
|
||||
PRIVATE
|
||||
qbt_powermanagement qbt_rss qbt_properties qbt_searchengine
|
||||
qbt_base
|
||||
PUBLIC
|
||||
Qt5::Gui Qt5::Widgets
|
||||
)
|
||||
|
||||
target_include_directories(qbt_gui
|
||||
PRIVATE ../app
|
||||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
if (UNIX AND Qt5DBus_FOUND)
|
||||
add_subdirectory(qtnotify)
|
||||
target_link_libraries(qbt_gui PRIVATE qbt_qtnotify)
|
||||
endif (UNIX AND Qt5DBus_FOUND)
|
||||
|
||||
if (APPLE)
|
||||
target_sources(qbt_gui PRIVATE macutilities.h macutilities.mm)
|
||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS MacExtras)
|
||||
target_link_libraries(qbt_gui PRIVATE Qt5::MacExtras objc)
|
||||
endif (APPLE)
|
||||
endif()
|
||||
|
||||
if (WIN32 OR APPLE)
|
||||
target_sources(qbt_gui PRIVATE programupdater.h programupdater.cpp)
|
||||
endif (WIN32 OR APPLE)
|
||||
|
||||
qbt_target_sources(qBittorrent PRIVATE about.qrc)
|
||||
|
||||
if(WIN32)
|
||||
if (WIN32)
|
||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS WinExtras)
|
||||
target_link_libraries(qbt_gui PRIVATE Qt5::WinExtras)
|
||||
endif(WIN32)
|
||||
target_link_libraries(qbt_gui PRIVATE Qt5::WinExtras PowrProf)
|
||||
endif()
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
#include "base/utils/misc.h"
|
||||
#include "base/utils/string.h"
|
||||
#include "autoexpandabledialog.h"
|
||||
#include "proplistdelegate.h"
|
||||
#include "properties/proplistdelegate.h"
|
||||
#include "raisedmessagebox.h"
|
||||
#include "torrentcontentfiltermodel.h"
|
||||
#include "torrentcontentmodel.h"
|
||||
|
||||
11
src/gui/log/CMakeLists.txt
Normal file
11
src/gui/log/CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
target_sources(qbt_gui PRIVATE
|
||||
# headers
|
||||
logfiltermodel.h
|
||||
loglistview.h
|
||||
logmodel.h
|
||||
|
||||
#sources
|
||||
logfiltermodel.cpp
|
||||
loglistview.cpp
|
||||
logmodel.cpp
|
||||
)
|
||||
@@ -37,8 +37,8 @@
|
||||
#include <QStyle>
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
#include "gui/uithememanager.h"
|
||||
#include "logmodel.h"
|
||||
#include "uithememanager.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
#endif
|
||||
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)) && defined(QT_DBUS_LIB)
|
||||
#include <QDBusConnection>
|
||||
#include "notifications.h"
|
||||
#include "qtnotify/notifications.h"
|
||||
#endif
|
||||
|
||||
#include "base/bittorrent/session.h"
|
||||
@@ -77,16 +77,17 @@
|
||||
#include "hidabletabwidget.h"
|
||||
#include "lineedit.h"
|
||||
#include "optionsdialog.h"
|
||||
#include "peerlistwidget.h"
|
||||
#include "powermanagement.h"
|
||||
#include "propertieswidget.h"
|
||||
#include "powermanagement/powermanagement.h"
|
||||
#include "properties/peerlistwidget.h"
|
||||
#include "properties/propertieswidget.h"
|
||||
#include "properties/trackerlistwidget.h"
|
||||
#include "rss/rsswidget.h"
|
||||
#include "search/searchwidget.h"
|
||||
#include "speedlimitdialog.h"
|
||||
#include "statsdialog.h"
|
||||
#include "statusbar.h"
|
||||
#include "torrentcreatordialog.h"
|
||||
#include "trackerlistwidget.h"
|
||||
|
||||
#include "transferlistfilterswidget.h"
|
||||
#include "transferlistmodel.h"
|
||||
#include "transferlistwidget.h"
|
||||
|
||||
@@ -1,23 +1,8 @@
|
||||
add_library(qbt_powermanagement STATIC
|
||||
# headers
|
||||
powermanagement.h
|
||||
|
||||
# sources
|
||||
powermanagement.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(qbt_powermanagement PUBLIC Qt5::Core)
|
||||
set_target_properties(qbt_powermanagement PROPERTIES AUTOUIC False AUTORCC False)
|
||||
target_include_directories(qbt_powermanagement PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_sources(qbt_gui PRIVATE powermanagement.h powermanagement.cpp)
|
||||
|
||||
if (UNIX AND Qt5DBus_FOUND)
|
||||
find_package(X11)
|
||||
if (X11_FOUND)
|
||||
target_sources(qbt_powermanagement PRIVATE powermanagement_x11.h powermanagement_x11.cpp)
|
||||
target_link_libraries(qbt_powermanagement PRIVATE Qt5::DBus)
|
||||
endif (X11_FOUND)
|
||||
endif (UNIX AND Qt5DBus_FOUND)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(qbt_powermanagement PRIVATE PowrProf)
|
||||
endif (WIN32)
|
||||
target_sources(qbt_gui PRIVATE powermanagement_x11.h powermanagement_x11.cpp)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
HEADERS += $$PWD/powermanagement.h
|
||||
SOURCES += $$PWD/powermanagement.cpp
|
||||
|
||||
|
||||
@@ -1,52 +1,38 @@
|
||||
add_library(qbt_properties STATIC
|
||||
# headers
|
||||
downloadedpiecesbar.h
|
||||
peerlistdelegate.h
|
||||
peerlistsortmodel.h
|
||||
peerlistwidget.h
|
||||
peersadditiondialog.h
|
||||
pieceavailabilitybar.h
|
||||
piecesbar.h
|
||||
propertieswidget.h
|
||||
proplistdelegate.h
|
||||
proptabbar.h
|
||||
speedplotview.h
|
||||
speedwidget.h
|
||||
trackerlistwidget.h
|
||||
trackersadditiondialog.h
|
||||
target_sources(qbt_gui PRIVATE
|
||||
# headers
|
||||
downloadedpiecesbar.h
|
||||
peerlistdelegate.h
|
||||
peerlistsortmodel.h
|
||||
peerlistwidget.h
|
||||
peersadditiondialog.h
|
||||
pieceavailabilitybar.h
|
||||
piecesbar.h
|
||||
propertieswidget.h
|
||||
proplistdelegate.h
|
||||
proptabbar.h
|
||||
speedplotview.h
|
||||
speedwidget.h
|
||||
trackerlistwidget.h
|
||||
trackersadditiondialog.h
|
||||
|
||||
# sources
|
||||
downloadedpiecesbar.cpp
|
||||
peerlistdelegate.cpp
|
||||
peerlistsortmodel.cpp
|
||||
peerlistwidget.cpp
|
||||
peersadditiondialog.cpp
|
||||
pieceavailabilitybar.cpp
|
||||
piecesbar.cpp
|
||||
propertieswidget.cpp
|
||||
proplistdelegate.cpp
|
||||
proptabbar.cpp
|
||||
speedplotview.cpp
|
||||
speedwidget.cpp
|
||||
trackerlistwidget.cpp
|
||||
trackersadditiondialog.cpp
|
||||
# sources
|
||||
downloadedpiecesbar.cpp
|
||||
peerlistdelegate.cpp
|
||||
peerlistsortmodel.cpp
|
||||
peerlistwidget.cpp
|
||||
peersadditiondialog.cpp
|
||||
pieceavailabilitybar.cpp
|
||||
piecesbar.cpp
|
||||
propertieswidget.cpp
|
||||
proplistdelegate.cpp
|
||||
proptabbar.cpp
|
||||
speedplotview.cpp
|
||||
speedwidget.cpp
|
||||
trackerlistwidget.cpp
|
||||
trackersadditiondialog.cpp
|
||||
|
||||
# forms
|
||||
peersadditiondialog.ui
|
||||
propertieswidget.ui
|
||||
trackersadditiondialog.ui
|
||||
)
|
||||
|
||||
target_link_libraries(qbt_properties
|
||||
PRIVATE
|
||||
qbt_gui_headers
|
||||
PUBLIC
|
||||
qbt_base Qt5::Widgets
|
||||
)
|
||||
|
||||
target_include_directories(qbt_properties
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
# forms
|
||||
peersadditiondialog.ui
|
||||
propertieswidget.ui
|
||||
trackersadditiondialog.ui
|
||||
)
|
||||
|
||||
@@ -52,11 +52,11 @@
|
||||
#include "base/net/geoipmanager.h"
|
||||
#include "base/net/reverseresolution.h"
|
||||
#include "base/preferences.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "peerlistdelegate.h"
|
||||
#include "peerlistsortmodel.h"
|
||||
#include "peersadditiondialog.h"
|
||||
#include "propertieswidget.h"
|
||||
#include "uithememanager.h"
|
||||
|
||||
struct PeerEndpoint
|
||||
{
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
FORMS += \
|
||||
$$PWD/peersadditiondialog.ui \
|
||||
$$PWD/propertieswidget.ui \
|
||||
|
||||
@@ -51,21 +51,20 @@
|
||||
#include "base/utils/fs.h"
|
||||
#include "base/utils/misc.h"
|
||||
#include "base/utils/string.h"
|
||||
#include "autoexpandabledialog.h"
|
||||
#include "gui/autoexpandabledialog.h"
|
||||
#include "gui/lineedit.h"
|
||||
#include "gui/raisedmessagebox.h"
|
||||
#include "gui/torrentcontentfiltermodel.h"
|
||||
#include "gui/torrentcontentmodel.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "gui/utils.h"
|
||||
#include "downloadedpiecesbar.h"
|
||||
#include "lineedit.h"
|
||||
#include "peerlistwidget.h"
|
||||
#include "pieceavailabilitybar.h"
|
||||
#include "proplistdelegate.h"
|
||||
#include "proptabbar.h"
|
||||
#include "raisedmessagebox.h"
|
||||
#include "speedwidget.h"
|
||||
#include "torrentcontentfiltermodel.h"
|
||||
#include "torrentcontentmodel.h"
|
||||
#include "trackerlistwidget.h"
|
||||
#include "uithememanager.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include "ui_propertieswidget.h"
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
|
||||
@@ -1111,7 +1111,7 @@
|
||||
<customwidget>
|
||||
<class>TorrentContentTreeView</class>
|
||||
<extends>QTreeView</extends>
|
||||
<header location="global">torrentcontenttreeview.h</header>
|
||||
<header location="global">gui/torrentcontenttreeview.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <QSpacerItem>
|
||||
|
||||
#include "base/global.h"
|
||||
#include "uithememanager.h"
|
||||
#include "gui/uithememanager.h"
|
||||
|
||||
PropTabBar::PropTabBar(QWidget *parent)
|
||||
: QHBoxLayout(parent)
|
||||
|
||||
@@ -49,10 +49,10 @@
|
||||
#include "base/bittorrent/trackerentry.h"
|
||||
#include "base/global.h"
|
||||
#include "base/preferences.h"
|
||||
#include "autoexpandabledialog.h"
|
||||
#include "gui/autoexpandabledialog.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "propertieswidget.h"
|
||||
#include "trackersadditiondialog.h"
|
||||
#include "uithememanager.h"
|
||||
|
||||
#define NB_STICKY_ITEM 3
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
#include "base/bittorrent/trackerentry.h"
|
||||
#include "base/global.h"
|
||||
#include "base/net/downloadmanager.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "ui_trackersadditiondialog.h"
|
||||
#include "uithememanager.h"
|
||||
|
||||
TrackersAdditionDialog::TrackersAdditionDialog(QWidget *parent, BitTorrent::TorrentHandle *const torrent)
|
||||
: QDialog(parent)
|
||||
|
||||
@@ -1,11 +1 @@
|
||||
add_library(qbt_qtnotify STATIC
|
||||
# headers
|
||||
notifications.h
|
||||
|
||||
# sources
|
||||
notifications.cpp
|
||||
)
|
||||
|
||||
set_target_properties(qbt_qtnotify PROPERTIES AUTOUIC False AUTORCC False)
|
||||
target_link_libraries(qbt_qtnotify PUBLIC Qt5::DBus)
|
||||
target_include_directories(qbt_qtnotify PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_sources(qbt_gui PRIVATE notifications.h notifications.cpp)
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
HEADERS += $$PWD/notifications.h
|
||||
|
||||
SOURCES += $$PWD/notifications.cpp
|
||||
|
||||
@@ -1,27 +1,19 @@
|
||||
add_library(qbt_rss STATIC
|
||||
# headers
|
||||
articlelistwidget.h
|
||||
automatedrssdownloader.h
|
||||
feedlistwidget.h
|
||||
htmlbrowser.h
|
||||
rsswidget.h
|
||||
target_sources(qbt_gui PRIVATE
|
||||
# headers
|
||||
articlelistwidget.h
|
||||
automatedrssdownloader.h
|
||||
feedlistwidget.h
|
||||
htmlbrowser.h
|
||||
rsswidget.h
|
||||
|
||||
#sources
|
||||
articlelistwidget.cpp
|
||||
automatedrssdownloader.cpp
|
||||
feedlistwidget.cpp
|
||||
htmlbrowser.cpp
|
||||
rsswidget.cpp
|
||||
#sources
|
||||
articlelistwidget.cpp
|
||||
automatedrssdownloader.cpp
|
||||
feedlistwidget.cpp
|
||||
htmlbrowser.cpp
|
||||
rsswidget.cpp
|
||||
|
||||
# forms
|
||||
automatedrssdownloader.ui
|
||||
rsswidget.ui
|
||||
)
|
||||
|
||||
target_include_directories(qbt_rss PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(qbt_rss
|
||||
PRIVATE
|
||||
qbt_gui_headers
|
||||
PUBLIC
|
||||
qbt_base Qt5::Gui Qt5::Widgets Qt5::Network
|
||||
# forms
|
||||
automatedrssdownloader.ui
|
||||
rsswidget.ui
|
||||
)
|
||||
|
||||
@@ -49,10 +49,10 @@
|
||||
#include "base/rss/rss_session.h"
|
||||
#include "base/utils/fs.h"
|
||||
#include "base/utils/string.h"
|
||||
#include "autoexpandabledialog.h"
|
||||
#include "gui/autoexpandabledialog.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "gui/utils.h"
|
||||
#include "ui_automatedrssdownloader.h"
|
||||
#include "uithememanager.h"
|
||||
#include "utils.h"
|
||||
|
||||
const QString EXT_JSON {QStringLiteral(".json")};
|
||||
const QString EXT_LEGACY {QStringLiteral(".rssrules")};
|
||||
|
||||
@@ -454,7 +454,7 @@ Supports the formats: S01E01, 1x1, 2017.01.01 and 01.01.2017 (Date formats also
|
||||
<customwidget>
|
||||
<class>FileSystemPathLineEdit</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>fspathedit.h</header>
|
||||
<header>gui/fspathedit.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "base/rss/rss_feed.h"
|
||||
#include "base/rss/rss_folder.h"
|
||||
#include "base/rss/rss_session.h"
|
||||
#include "uithememanager.h"
|
||||
#include "gui/uithememanager.h"
|
||||
|
||||
FeedListWidget::FeedListWidget(QWidget *parent)
|
||||
: QTreeWidget(parent)
|
||||
|
||||
@@ -47,13 +47,13 @@
|
||||
#include "base/rss/rss_feed.h"
|
||||
#include "base/rss/rss_folder.h"
|
||||
#include "base/rss/rss_session.h"
|
||||
#include "addnewtorrentdialog.h"
|
||||
#include "gui/addnewtorrentdialog.h"
|
||||
#include "gui/autoexpandabledialog.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "articlelistwidget.h"
|
||||
#include "autoexpandabledialog.h"
|
||||
#include "automatedrssdownloader.h"
|
||||
#include "feedlistwidget.h"
|
||||
#include "ui_rsswidget.h"
|
||||
#include "uithememanager.h"
|
||||
|
||||
RSSWidget::RSSWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
|
||||
@@ -1,33 +1,22 @@
|
||||
add_library(qbt_searchengine STATIC
|
||||
# headers
|
||||
pluginselectdialog.h
|
||||
pluginsourcedialog.h
|
||||
searchjobwidget.h
|
||||
searchlistdelegate.h
|
||||
searchsortmodel.h
|
||||
searchwidget.h
|
||||
target_sources(qbt_gui PRIVATE
|
||||
# headers
|
||||
pluginselectdialog.h
|
||||
pluginsourcedialog.h
|
||||
searchjobwidget.h
|
||||
searchlistdelegate.h
|
||||
searchsortmodel.h
|
||||
searchwidget.h
|
||||
|
||||
# sources
|
||||
pluginselectdialog.cpp
|
||||
pluginsourcedialog.cpp
|
||||
searchjobwidget.cpp
|
||||
searchlistdelegate.cpp
|
||||
searchsortmodel.cpp
|
||||
searchwidget.cpp
|
||||
# sources
|
||||
pluginselectdialog.cpp
|
||||
pluginsourcedialog.cpp
|
||||
searchjobwidget.cpp
|
||||
searchlistdelegate.cpp
|
||||
searchsortmodel.cpp
|
||||
searchwidget.cpp
|
||||
|
||||
# forms
|
||||
pluginselectdialog.ui
|
||||
pluginsourcedialog.ui
|
||||
searchwidget.ui
|
||||
)
|
||||
|
||||
set(QBT_SEARCHENGINE_RESOURCES
|
||||
# search.qrc
|
||||
)
|
||||
|
||||
target_link_libraries(qbt_searchengine
|
||||
PUBLIC
|
||||
qbt_base
|
||||
PRIVATE
|
||||
qbt_gui_headers
|
||||
# forms
|
||||
pluginselectdialog.ui
|
||||
pluginsourcedialog.ui
|
||||
searchwidget.ui
|
||||
)
|
||||
|
||||
@@ -42,12 +42,12 @@
|
||||
#include "base/global.h"
|
||||
#include "base/net/downloadmanager.h"
|
||||
#include "base/utils/fs.h"
|
||||
#include "autoexpandabledialog.h"
|
||||
#include "gui/autoexpandabledialog.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "gui/utils.h"
|
||||
#include "pluginsourcedialog.h"
|
||||
#include "searchwidget.h"
|
||||
#include "ui_pluginselectdialog.h"
|
||||
#include "uithememanager.h"
|
||||
#include "utils.h"
|
||||
|
||||
enum PluginColumns
|
||||
{
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
|
||||
#include "pluginsourcedialog.h"
|
||||
|
||||
#include "gui/utils.h"
|
||||
#include "ui_pluginsourcedialog.h"
|
||||
#include "utils.h"
|
||||
|
||||
PluginSourceDialog::PluginSourceDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
|
||||
@@ -47,13 +47,13 @@
|
||||
#include "base/search/searchpluginmanager.h"
|
||||
#include "base/settingvalue.h"
|
||||
#include "base/utils/misc.h"
|
||||
#include "addnewtorrentdialog.h"
|
||||
#include "lineedit.h"
|
||||
#include "gui/addnewtorrentdialog.h"
|
||||
#include "gui/lineedit.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "gui/utils.h"
|
||||
#include "searchlistdelegate.h"
|
||||
#include "searchsortmodel.h"
|
||||
#include "ui_searchjobwidget.h"
|
||||
#include "uithememanager.h"
|
||||
#include "utils.h"
|
||||
|
||||
SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
|
||||
@@ -46,11 +46,11 @@
|
||||
#include "base/search/searchhandler.h"
|
||||
#include "base/search/searchpluginmanager.h"
|
||||
#include "base/utils/foreignapps.h"
|
||||
#include "mainwindow.h"
|
||||
#include "gui/mainwindow.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "pluginselectdialog.h"
|
||||
#include "searchjobwidget.h"
|
||||
#include "ui_searchwidget.h"
|
||||
#include "uithememanager.h"
|
||||
|
||||
#define SEARCHHISTORY_MAXSIZE 50
|
||||
#define URL_COLUMN 5
|
||||
|
||||
@@ -141,7 +141,7 @@ Click the "Search plugins..." button at the bottom right of the window
|
||||
<customwidget>
|
||||
<class>LineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header>lineedit.h</header>
|
||||
<header>gui/lineedit.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
|
||||
Reference in New Issue
Block a user