sledgehammer999
2203d0a043
Merge pull request #2041 from sorokin/optimize-natural-sort
...
Optimize misc::naturalSort()
2014-10-19 18:57:14 +03:00
Ivan Sorokin
a278261806
Optimize misc::naturalSort()
...
Previous implementation used QRegExp to find a first digit. That is
utterly ineffective.
When torrent list is sorted by name (a column that uses the naturalSort() for
comparison), naturalSort could take 18.6% of the time of the UI thread. Optimize it
so now it takes 1% of the time of the UI thread.
2014-10-19 14:20:16 +04:00
Ivan Sorokin
5ea1a4c3cc
Remove inclusion of <QThread> from misc.h
2014-10-18 12:19:04 +04:00
Ivan Sorokin
be338b969c
Remove unneccessary includes of libtorrent in misc.h
2014-10-18 12:19:04 +04:00
sledgehammer999
d44df4f985
Don't localize double numbers in the webui. Closes #1525 .
2014-08-08 02:59:48 +03:00
Bruno Barbieri
00e09435b2
Add option to hibernate computer in Auto-Shutdown menu
2014-07-06 06:13:36 -03:00
Vladimir Golovnev (Glassez)
ce3aac5f9d
Fix functions and macros using to support both Qt4 and Qt5.
2014-05-02 00:00:03 +03:00
sledgehammer999
3749a30af2
Improvements on accurateDoubleToString().
2014-01-21 17:40:52 +02:00
sledgehammer999
441d1d08ba
Convert more accurately decimal numbers to text.
2014-01-21 02:12:27 +02:00
Faheem Pervez
22c8f600df
Make sleep and shutdown functions work on systemd's logind
2013-12-23 11:41:07 +00:00
sledgehammer999
b4dca951b2
Drop libtorrent 0.15.x support.
2013-10-23 22:19:58 +03:00
sledgehammer999
d09b0d5f72
Fixed rounding bugs with floating numbers.
2013-09-10 18:16:01 +03:00
sledgehammer999
f276ad568e
Fixed naturalSort. When a single digit number was followed by text+numbers, the string wouldn't sort correctly.
2013-08-03 19:06:18 +03:00
sledgehammer999
7a16146f6f
Convert misc class to a namespace instead.
2013-07-27 01:34:52 +03:00
Nick Tiskov
89e3500a8e
Move number-aware comparison logic into misc class.
2013-07-08 18:50:53 +04:00
sledgehammer999
22e2bafa7a
Fix compilation with libtorrent 1.x.x v2
2013-06-08 18:21:15 +03:00
sledgehammer999
94b58ca229
Fix compilation with libtorrent 1.x.x.
2013-05-07 22:57:18 +03:00
Christophe Dumez
6faa227df3
Sort previewable extension in alphabetical order
2012-11-11 19:27:05 +02:00
Christophe Dumez
051341a42a
Add m4v to the list of previewable file extensions ( closes #216 )
...
Also optimize the misc::isPreviewable() function.
2012-11-11 19:23:10 +02:00
Christophe Dumez
806ab07865
Import new trackers from magnet link in case of duplicate torrent ( closes #111 )
2012-09-23 11:09:01 +03:00
Christophe Dumez
48f2b6fb66
Fix OS2 build
2012-06-30 17:42:20 +03:00
Christophe Dumez
9a964d871d
Rewrite code for returning information about torrents as JSON (Web UI)
...
- The new code is simpler, cleaner and more efficient
2012-05-26 20:42:44 +03:00
Christophe Dumez
0f291629cc
Move FileSystem utility functions out of misc.h
...
Use new fs_utils.h instead.
2012-05-16 21:19:05 +03:00
Christophe Dumez
c502edf9e1
Brand new torrent addition dialog
2012-05-15 19:57:31 +03:00
Christophe Dumez
8cc538085f
OS/2 fixes from Silvan Scherrer
2012-03-19 18:33:38 +02:00
Christophe Dumez
f3448125c3
Coding style clean up
2012-02-20 19:56:07 +02:00
Christophe Dumez
a8a7b61ea9
Coding style clean up
2012-02-20 19:30:53 +02:00
Christophe Dumez
0c9dbc15f9
Remove misc::time_tToQString()
2012-02-18 15:37:51 +02:00
Christophe Dumez
ed468083c5
Remove misc::chmod644() function
2012-02-18 15:31:08 +02:00
Christophe Dumez
737982e92f
Remove unused code
2012-02-18 15:22:31 +02:00
Christophe Dumez
b43e641d21
Remove misc::removeEmptyFolder()
2012-02-18 13:38:48 +02:00
Christophe Dumez
c25586b500
Remove misc::safeRemove(): shouldn't be needed
2012-02-18 12:49:05 +02:00
Christophe Dumez
60d9bfe077
misc: Remove duplicate function to branch a path
2012-02-16 21:32:18 +02:00
Christophe Dumez
16071ec266
Remove unused code
2012-02-16 20:40:41 +02:00
Christophe Dumez
fb03682df4
Clean up misc::toValidFileSystemName()
2012-02-16 20:32:13 +02:00
Christophe Dumez
68041e382d
Clean up misc::isValidFileSystemName() function
2012-02-15 21:57:40 +02:00
Christophe Dumez
96c918ff8d
misc.cpp: Fix compilation on Mac OS X
2011-11-16 21:47:00 +02:00
Christophe Dumez
f6b7b8bd6e
Get rid of libboost-filesystem dependency if libtorrent >= v0.16.x is used
2011-10-25 20:56:54 +03:00
Christophe Dumez
3c650038e2
Revert "Use %USERPROFILE%\Downloads as download folder on Windows"
...
This reverts commit 357e309dad
.
2011-10-08 13:34:57 +03:00
Christophe Dumez
98b09f68ae
Remove NSPathUtilities.h include (Mac OS X)
2011-10-08 10:45:07 +03:00
Christophe Dumez
357e309dad
Use %USERPROFILE%\Downloads as download folder on Windows
2011-10-08 09:10:21 +03:00
Στέφανος Αντάρης
b0d6f3f9bf
Mac OS: Properly detect "Downloads" folder
2011-10-07 19:08:17 +03:00
sledgehammer_999
d744968ea6
Fix compilation on Windows after code cleanups.
2011-10-04 23:17:49 +03:00
Christophe Dumez
a48d36c9a2
Add comment
2011-10-02 18:43:55 +03:00
Christophe Dumez
01ad2e9746
Move downloads folder detection code from preferences.h to misc.cpp
2011-10-02 17:56:00 +03:00
Christophe Dumez
ce6348bc32
Code clean up
2011-09-25 15:04:51 +03:00
sledgehammer_999
3d5487dfcb
misc.cpp: Remove unused variable in windows-specific code
2011-09-22 20:44:01 +03:00
sledgehammer_999
be09284192
Simplify available disk size calculation code
...
The new code uses boost so that we don't need platform-specific
code anymore. It also fixes a calculation issue on the Windows
platform with the original code.
2011-09-22 20:37:39 +03:00
Christophe Dumez
f4c2fdd2fd
Search: Initial support for Python 3.x
2011-09-11 20:22:54 +03:00
Christophe Dumez
02fbd6a135
Fix compilation warnings in smtp.h (cgreco)
2011-06-05 16:08:30 +00:00