Chocobo1
0457fd260e
Avoid temporary QString allocations
...
This fixes clazy warning: Use multi-arg instead [-Wclazy-qstring-arg]
7 years ago
Vladimir Golovnev (Glassez)
279bce2014
Make SearchManager singleton
7 years ago
Vladimir Golovnev (Glassez)
f3d370870d
Improve Search handling
...
Legacy SearchEngine class really has three roles:
1. Manage search plugins,
2. Handle the search job, and
3. Handle the download of the torrent file using the search plugin.
Now it is splitted into 3 classes: SearchManager, SearchHandler and
SearchDownloadHandler.
Search GUI is also improved.
7 years ago
Tom Piccirello
e6a1b72354
Only add search separators as needed
7 years ago
Chocobo1
fb698896c9
Fix translation context.
...
Partially addresses #8220 .
Also sort include headers
7 years ago
Chocobo1
c2c0dd2717
Fix column size too narrow on resize
...
Instead of giving a value, just resize to the content size
7 years ago
Chocobo1
27cf98a962
Resize dialog size on high DPI monitors
7 years ago
sledgehammer999
99abc21dab
Simplify sorting code.
7 years ago
Chocobo1
86c5a8df75
Partial revert eac8838dc2
. Fixes #7952 .
...
mapFromSource() didn't work as expected, when used in lessThan(), it sometimes
returns an invalid QModelIndex.
A crash is observed when filtering source model via filterAcceptsRow() in #7952 ,
the crash is due to endless recursive of filterAcceptsRow() & lessThan() calling
each other and mapFromSource() is the culprit of it.
7 years ago
Mike Tzou
eac8838dc2
[GUI] Implement stable sort ( #7703 )
...
* NaturalCompare now returns compare result instead of "less than" result
* Change to stable sort in GUI components
* Add Utils::String::naturalLessThan() helper function
* Use Qt::CaseSensitivity type
7 years ago
Nick Korotysh
4c8dd0ca9d
allow search plugins sorting. closes #7526
7 years ago
Vladimir Golovnev (qlassez)
cff6a64e9f
Use qUtf8Printable() for logging strings
...
qDebug(), qInfo(), qWarning(), qCritical(), qFatal() expect %s arguments
to be UTF-8 encoded, while qPrintable() converts to local 8-bit encoding.
Therefore qUtf8Printable() should be used for logging strings instead of
qPrintable().
7 years ago
Chocobo1
91b2b14ba5
Initialize variables
...
Remove unused variable
7 years ago
Chocobo1
24a69a9fe7
Fix crash when exiting qbt with search plugin dialog open
...
Avoid emitting signal in destructor
7 years ago
vit9696
d25467d3e6
Various macOS UI improvements
7 years ago
Eugene Shalygin
a22d2f0139
Implement enum support in CachedSettingValue
...
Enums are stored as strings, that improves configuration file
readability and maintainability. String values are obtained via
QMetaEnum, and since with Qt 5.5 QMetaEnum::fromType() includes a
static_assert, this has to be a safe method.
7 years ago
Eugene Shalygin
62be2d7400
cmake: fix build
8 years ago
sledgehammer999
a77e1c9f36
Use qt5 connect style for searchengine, pluginselectdlg and searchwidget.
8 years ago
sledgehammer999
dee0b63cc5
Aggregate installed/updated plugin names and use a single messagebox to inform the user.
8 years ago
sledgehammer999
c2a2d306da
Use alternative method for plugin favicon validity. Drop unnecessary code.
8 years ago
sledgehammer999
34c29b78f9
Update the backend when a new plugin favicon is downloaded.
8 years ago
sledgehammer999
8c98c8cb3f
Put copyright warning message to the search plugin dialog.
8 years ago
sledgehammer999
fc543b9db6
Display instructions when no search plugin is installed.
8 years ago
Chocobo1
42c17ea5ce
Fix argument name differ in definition & declaration
8 years ago
Chocobo1
3e964212ac
Fix signaling to checkForUpdatesFinished() failed.
...
Fixup of 14e168039c
.
8 years ago
Chocobo1
fb9ebce9c6
Fix pluginselectdlg position
...
Fix peerlistwidget position
Fix mainwindow position
8 years ago
Chocobo1
de54fa2c30
Fix addnewtorrentdialog position
...
Fix messageBox position
8 years ago
Eugene Shalygin
14e168039c
Use explicit class for search plugin versions
8 years ago
Eugene Shalygin
4e1b7c3b87
Remove generated include from headers
...
Not only fixes compilation with CMake 3.8 (without messing with include
paths) but makes sources cleaner.
8 years ago
Chocobo1
812bd4c83a
Uncrustify
8 years ago
Chocobo1
59556dfc6a
Cleanup & refactor
8 years ago
Chocobo1
86e82c71e5
Setup parent pointer
...
Rely on Qt to do the delete, since the parent ownership is setup
correctly.
8 years ago
Chocobo1
a16c557137
Always draw background
8 years ago
Eugene Shalygin
e64bb1de8c
Drop Qt 4 support
8 years ago
Chocobo1
4669a99617
Use case-insensitive sort for Name column in Search tab. Closes #407 .
8 years ago
thalieht
9f06d0d47b
SearchTab: can now save sorting column changes
8 years ago
thalieht
c90794878f
SearchTab: Allow to toggle columns in searchtab
8 years ago
thalieht
b2144f7928
SearchTab: use saveSettings() and loadSettings() to handle header state
8 years ago
thalieht
5255719661
SearchTab: align text to the right in columns that handle numbers
8 years ago
Chocobo1
ce3c53b3c4
Replace deprecated classes
8 years ago
Chocobo1
d84461c9b2
Remove unused header
8 years ago
ngosang
204f3d8542
Minor changes in Search UI
9 years ago
Eugene Shalygin
f05793c2e3
Use QPalette::LinkVisited color for downloaded items in search results
9 years ago
Chocobo1
b4bdfa7b2b
Use QString::localeAwareCompare for comparsion
9 years ago
Chocobo1
5906a4a2de
Add case-sensitive & case-insensitive natural sort helper function
...
Fix helper function not being thread-safe
Use QBT_USES_QT5 define
9 years ago
sledgehammer999
ef6e848756
Display notifications when a torrent is added. Closes #334 and #915 .
9 years ago
Chocobo1
d65ff87148
Replace `naturalSort()` with `naturalCompare()`.
9 years ago
Vladimir Golovnev (Glassez)
a9e63283cc
Use nova2dl.py script instead of DownloadManager
...
Closes #5026
9 years ago
Chocobo1
216d98844b
Move m_searchPattern widget from code to .ui file
9 years ago
Chocobo1
a52f9d4ef9
[Search] Add seperator for categories & plugins
...
Sort categories & plugins entries
Rename & reorder entries
Use full name for plugins
9 years ago