mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
The new TriStateAction class is an improvement of the old one in the sense that: 1. Have public method to set states. 2. Can connect to the usual Qt slots. 3. Draws checkbox at the correct offset (where QAction draws) in menu and better handling of mouse clicking and keyboard navigating.
170 lines
3.8 KiB
CMake
170 lines
3.8 KiB
CMake
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_subdirectory(lineedit)
|
|
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
|
|
fspathedit_p.h
|
|
guiiconprovider.h
|
|
hidabletabwidget.h
|
|
ipsubnetwhitelistoptionsdialog.h
|
|
loglistwidget.h
|
|
mainwindow.h
|
|
optionsdialog.h
|
|
previewlistdelegate.h
|
|
previewselectdialog.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
|
|
addnewtorrentdialog.cpp
|
|
advancedsettings.cpp
|
|
autoexpandabledialog.cpp
|
|
banlistoptionsdialog.cpp
|
|
categoryfiltermodel.cpp
|
|
categoryfilterproxymodel.cpp
|
|
categoryfilterwidget.cpp
|
|
cookiesdialog.cpp
|
|
cookiesmodel.cpp
|
|
downloadfromurldialog.cpp
|
|
executionlogwidget.cpp
|
|
fspathedit.cpp
|
|
fspathedit_p.cpp
|
|
guiiconprovider.cpp
|
|
ipsubnetwhitelistoptionsdialog.cpp
|
|
loglistwidget.cpp
|
|
mainwindow.cpp
|
|
optionsdialog.cpp
|
|
previewselectdialog.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
|
|
)
|
|
|
|
target_link_libraries(qbt_gui
|
|
PRIVATE
|
|
qbt_lineedit qbt_powermanagement qbt_rss qbt_properties qbt_searchengine
|
|
qbt_base
|
|
)
|
|
|
|
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)
|
|
|
|
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)
|
|
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS WinExtras)
|
|
target_link_libraries(qbt_gui PRIVATE Qt5::WinExtras)
|
|
endif(WIN32)
|