Compare commits
222 Commits
release-3.
...
release-3.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55259ff3ba | ||
|
|
da5b49fe5a | ||
|
|
89bc0fb3e3 | ||
|
|
c86bfe53d0 | ||
|
|
dd177c03e6 | ||
|
|
6615d4987b | ||
|
|
c6e0facc0b | ||
|
|
c6845781c7 | ||
|
|
5decf71772 | ||
|
|
b7f313a35c | ||
|
|
8c14c7926f | ||
|
|
ca6ec01f1f | ||
|
|
2c42ab7544 | ||
|
|
2dbbfc1031 | ||
|
|
3762401cd9 | ||
|
|
65c0f3f041 | ||
|
|
7ab877c95e | ||
|
|
7b658a52dd | ||
|
|
3705cb8067 | ||
|
|
8b4be9bef6 | ||
|
|
38bef752dc | ||
|
|
a61a84d419 | ||
|
|
553abb6442 | ||
|
|
14419c190e | ||
|
|
4e6ab18446 | ||
|
|
fdeec686bf | ||
|
|
25e4f562e7 | ||
|
|
d86baf1ed8 | ||
|
|
8112405498 | ||
|
|
7f73eca01d | ||
|
|
9951017f8b | ||
|
|
57bbaeab06 | ||
|
|
52fefd3dd6 | ||
|
|
c1cddd2f7a | ||
|
|
caabe526ca | ||
|
|
19475f5abb | ||
|
|
dca36a4817 | ||
|
|
e38ef96c94 | ||
|
|
43aff3885d | ||
|
|
4b4d52d8d3 | ||
|
|
735247f41f | ||
|
|
422d0c9210 | ||
|
|
6ea90c9741 | ||
|
|
c2bbb5b71a | ||
|
|
a2656670f7 | ||
|
|
ae2781b4c8 | ||
|
|
65a81f4fca | ||
|
|
e025b2aa10 | ||
|
|
9399f06db9 | ||
|
|
2e6370084a | ||
|
|
adc478a8dc | ||
|
|
247c9a85e2 | ||
|
|
40fc98d354 | ||
|
|
5797d86c05 | ||
|
|
62de16c56e | ||
|
|
d89f2b0783 | ||
|
|
d6b2131a91 | ||
|
|
b085fc12d0 | ||
|
|
0da431b7a3 | ||
|
|
3e18308301 | ||
|
|
47c7ffba99 | ||
|
|
42b1dffbb9 | ||
|
|
73ebe7e1fb | ||
|
|
c9c3589946 | ||
|
|
62596ab533 | ||
|
|
0be1c661aa | ||
|
|
eb10a80c3c | ||
|
|
3679c79b5c | ||
|
|
a0816d1ec6 | ||
|
|
175ac42b43 | ||
|
|
d39874551c | ||
|
|
16402f75cf | ||
|
|
aacea44d41 | ||
|
|
f2a90520d7 | ||
|
|
34d25006f4 | ||
|
|
e382fb1bec | ||
|
|
ba9e3558a2 | ||
|
|
f6514b4e7d | ||
|
|
fe7ffdd413 | ||
|
|
8d1a4cb40a | ||
|
|
ad3f4842f8 | ||
|
|
944fc5cf38 | ||
|
|
026c065ebc | ||
|
|
00ac784a4d | ||
|
|
7d99223547 | ||
|
|
65a338b5c2 | ||
|
|
b0fd6ac756 | ||
|
|
c268ca1278 | ||
|
|
13e3141dfb | ||
|
|
70fbd61758 | ||
|
|
db638319c7 | ||
|
|
8d36a03f68 | ||
|
|
2b8dc3df18 | ||
|
|
11c5172588 | ||
|
|
43f55f5d3c | ||
|
|
153ebe2b77 | ||
|
|
70d11217de | ||
|
|
82beff5527 | ||
|
|
2e4f0876b0 | ||
|
|
072a72316f | ||
|
|
d199482205 | ||
|
|
eae7953061 | ||
|
|
d88d4e9165 | ||
|
|
cea36bc756 | ||
|
|
c517444258 | ||
|
|
a109274d1f | ||
|
|
490cb9dfdb | ||
|
|
ab748166d5 | ||
|
|
a796df9019 | ||
|
|
85abc98759 | ||
|
|
041540de6b | ||
|
|
72a06ad176 | ||
|
|
eea69630fb | ||
|
|
19846758d8 | ||
|
|
7532fcfd3c | ||
|
|
616575911f | ||
|
|
227a1f6532 | ||
|
|
2c7186a381 | ||
|
|
b4775b9d29 | ||
|
|
ad8d7e3373 | ||
|
|
b5e7443ae3 | ||
|
|
5a33c0d9ba | ||
|
|
7064ac994b | ||
|
|
3c05e660b3 | ||
|
|
ed54c5f7ac | ||
|
|
63d6dd3735 | ||
|
|
02d56fd026 | ||
|
|
d4c9da6475 | ||
|
|
99f126d0b6 | ||
|
|
8110d0eb01 | ||
|
|
90a2021948 | ||
|
|
7bfd0e058b | ||
|
|
6dcfe5b215 | ||
|
|
7daeb0297d | ||
|
|
76597fa080 | ||
|
|
14908f3fc8 | ||
|
|
3269cdfa70 | ||
|
|
5f0e3e3443 | ||
|
|
fcd37dcbb4 | ||
|
|
528759fdaa | ||
|
|
cfe1235b57 | ||
|
|
e5d5f84ae7 | ||
|
|
bbda5c4f44 | ||
|
|
9605192834 | ||
|
|
4c6e526e6c | ||
|
|
e43fa17429 | ||
|
|
c5dd14788a | ||
|
|
334ba32d69 | ||
|
|
8ba1941ab9 | ||
|
|
ea85532cc2 | ||
|
|
d3ee2e66af | ||
|
|
4ac917ef66 | ||
|
|
41660385d7 | ||
|
|
e5ae8e5ac9 | ||
|
|
7fb87660ac | ||
|
|
6ea7b5b1d0 | ||
|
|
b624ad312b | ||
|
|
b64f4081cf | ||
|
|
bd9b153e9b | ||
|
|
32ca66f234 | ||
|
|
753e9181fe | ||
|
|
9546a73182 | ||
|
|
c0ee99c553 | ||
|
|
50976b8dc2 | ||
|
|
6a312461a1 | ||
|
|
3fe09bde12 | ||
|
|
f851b18b80 | ||
|
|
ced29ced1b | ||
|
|
5023b1ab74 | ||
|
|
c2ef78de8d | ||
|
|
6fbe452b55 | ||
|
|
51c4a0d8d0 | ||
|
|
b191a977af | ||
|
|
61858814ee | ||
|
|
365387f092 | ||
|
|
df295d96c2 | ||
|
|
a069f806d9 | ||
|
|
4638a9e6ee | ||
|
|
af790e40f8 | ||
|
|
76fd5d3eb4 | ||
|
|
dc8a8fbc06 | ||
|
|
30e0cc20c8 | ||
|
|
63dcb81384 | ||
|
|
ce391ad328 | ||
|
|
7b908c7adf | ||
|
|
0d26d734b3 | ||
|
|
f836c40fc4 | ||
|
|
21fe7f2ca6 | ||
|
|
da85a57f83 | ||
|
|
e35664b188 | ||
|
|
2fc350b265 | ||
|
|
83bcd6a2d7 | ||
|
|
edcfa4df12 | ||
|
|
12a83e1aec | ||
|
|
7d50a8b28c | ||
|
|
232e112d84 | ||
|
|
5b1ee883b4 | ||
|
|
b07fceec65 | ||
|
|
4c9cf6c773 | ||
|
|
164f37e961 | ||
|
|
093fb303f3 | ||
|
|
f3d5039e33 | ||
|
|
007c307388 | ||
|
|
4079689f32 | ||
|
|
2b3d6926c8 | ||
|
|
14b3414e9d | ||
|
|
73254962f1 | ||
|
|
74f042516b | ||
|
|
8c0853248c | ||
|
|
80ea0a67b5 | ||
|
|
6d2b51203c | ||
|
|
8ac82156b3 | ||
|
|
c1806b099a | ||
|
|
1046c816bf | ||
|
|
cfbb5ecde5 | ||
|
|
afdec02674 | ||
|
|
927e6bc6cc | ||
|
|
e862d3332c | ||
|
|
699144a83d | ||
|
|
1792f44bfa | ||
|
|
64e4095ef1 | ||
|
|
1d1ffcec7c |
3
.gitignore
vendored
@@ -1,6 +1,6 @@
|
|||||||
src/geoip/GeoIP.dat
|
src/geoip/GeoIP.dat
|
||||||
src/qbittorrent
|
src/qbittorrent
|
||||||
qbittorrent.pro.user*
|
qbittorrent.pro.user
|
||||||
conf.pri
|
conf.pri
|
||||||
Makefile
|
Makefile
|
||||||
*.pyc
|
*.pyc
|
||||||
@@ -12,4 +12,3 @@ moc_*.cpp
|
|||||||
qrc_*.cpp
|
qrc_*.cpp
|
||||||
ui_*.h
|
ui_*.h
|
||||||
*.moc
|
*.moc
|
||||||
src/lang/qbittorrent_*.qm
|
|
||||||
|
|||||||
53
.travis.yml
@@ -1,53 +0,0 @@
|
|||||||
language:
|
|
||||||
- cpp
|
|
||||||
|
|
||||||
env:
|
|
||||||
# use libtorrent 0.15.10
|
|
||||||
- lt_source=from_dist gui=true
|
|
||||||
- lt_source=from_dist gui=false
|
|
||||||
# use libtorrent 0.16.X from RC_0_16 svn branch
|
|
||||||
- lt_source=from_svn gui=true
|
|
||||||
- lt_source=from_svn gui=false
|
|
||||||
|
|
||||||
branches:
|
|
||||||
except:
|
|
||||||
- search_encoding_windows
|
|
||||||
- v2_9_x
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
on_success: change
|
|
||||||
on_failure: change
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- shopt -s expand_aliases
|
|
||||||
- alias sudo="sudo "
|
|
||||||
# Using nprocs/2 sometimes may fail (gcc is killed by system), just use two threads
|
|
||||||
- alias make="colormake -j2 "
|
|
||||||
|
|
||||||
# Also setup a virtual display for after_success target when gui == true
|
|
||||||
- if ! $gui; then qbtconf="$qbtconf --disable-gui"; else export "DISPLAY=:99.0" && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 ; fi
|
|
||||||
- ltconf=" --with-libgeoip=system"
|
|
||||||
|
|
||||||
- echo settings
|
|
||||||
- echo $lt_source
|
|
||||||
- echo $ltconf
|
|
||||||
- echo $gui
|
|
||||||
- echo $qbtconf
|
|
||||||
|
|
||||||
- sudo apt-get -qq update
|
|
||||||
# Travis can stall during heavy load if these packages are installed in one step - split the command
|
|
||||||
- sudo apt-get -qq install debhelper qconf colormake libssl-dev libgeoip-dev
|
|
||||||
- sudo apt-get -qq install libboost-dev libboost-filesystem-dev libboost-system-dev
|
|
||||||
- sudo apt-get -qq install libqt4-dev
|
|
||||||
|
|
||||||
install:
|
|
||||||
- if [[ "$lt_source" == "from_dist" ]]; then sudo apt-get -qq install libtorrent-rasterbar-dev; fi
|
|
||||||
- if [[ "$lt_source" == "from_svn" ]]; then cd .. && svn co svn://svn.code.sf.net/p/libtorrent/code/branches/RC_0_16 ./libtorrent && (cd libtorrent && ./autotool.sh && ./configure $ltconf && sudo make install) && sudo ldconfig /usr/local/lib && cd $TRAVIS_BUILD_DIR ; fi
|
|
||||||
|
|
||||||
script:
|
|
||||||
- qt-qconf
|
|
||||||
- ./configure $qbtconf && sudo make install
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- if $gui ; then qbittorrent --version ; else qbittorrent-nox --version ; fi
|
|
||||||
18
.tx/config
@@ -1,18 +0,0 @@
|
|||||||
[main]
|
|
||||||
host = https://www.transifex.com
|
|
||||||
|
|
||||||
[qbittorrent.qbittorrent_v3_1_x]
|
|
||||||
file_filter = src/lang/qbittorrent_<lang>.ts
|
|
||||||
source_file = src/lang/qbittorrent_en.ts
|
|
||||||
source_lang = en
|
|
||||||
type = QT
|
|
||||||
minimum_perc = 23
|
|
||||||
mode = developer
|
|
||||||
|
|
||||||
|
|
||||||
[qbittorrent.qbittorrentdesktop_master]
|
|
||||||
source_file = src/Icons/qBittorrent.desktop
|
|
||||||
source_lang = en
|
|
||||||
type = DESKTOP
|
|
||||||
minimum_perc = 23
|
|
||||||
mode = developer
|
|
||||||
40
AUTHORS
@@ -1,7 +1,4 @@
|
|||||||
Current maintainer:
|
Author:
|
||||||
* Sledgehammer999 <sledgehammer999@qbittorrent.org>
|
|
||||||
|
|
||||||
Original author:
|
|
||||||
* Christophe Dumez <chris@qbittorrent.org>
|
* Christophe Dumez <chris@qbittorrent.org>
|
||||||
|
|
||||||
Contributors:
|
Contributors:
|
||||||
@@ -14,7 +11,6 @@ Contributors:
|
|||||||
* Grigis Gaëtan <cipher16@gmail.com>
|
* Grigis Gaëtan <cipher16@gmail.com>
|
||||||
* Christian Kandeler <zambesi@users.sourceforge.net>
|
* Christian Kandeler <zambesi@users.sourceforge.net>
|
||||||
* Silvan Scherrer <silvan.scherrer@aroa.ch>
|
* Silvan Scherrer <silvan.scherrer@aroa.ch>
|
||||||
* Nick Tiskov <daymansmail@gmail.com>
|
|
||||||
|
|
||||||
Code from other projects:
|
Code from other projects:
|
||||||
* files src/qtsingleapp/* src/lineedit/*
|
* files src/qtsingleapp/* src/lineedit/*
|
||||||
@@ -29,10 +25,6 @@ Code from other projects:
|
|||||||
copyright: Dan Haim <negativeiq@users.sourceforge.net>
|
copyright: Dan Haim <negativeiq@users.sourceforge.net>
|
||||||
license: BSD
|
license: BSD
|
||||||
|
|
||||||
* file src/stacktrace_win.h
|
|
||||||
copyright: Quassel Project
|
|
||||||
license: GPLv2/3
|
|
||||||
|
|
||||||
Images Authors:
|
Images Authors:
|
||||||
* files: src/Icons/*.png
|
* files: src/Icons/*.png
|
||||||
copyright: Gnome Icon Theme
|
copyright: Gnome Icon Theme
|
||||||
@@ -79,29 +71,27 @@ Images Authors:
|
|||||||
|
|
||||||
Translations authors:
|
Translations authors:
|
||||||
* files: src/lang/*.ts
|
* files: src/lang/*.ts
|
||||||
* file: src/Icons/qBittorrent.desktop
|
|
||||||
copyright:
|
copyright:
|
||||||
- Arabic: SDERAWI (abz8868@msn.com), sn51234 (nesseyan@gmail.com) and Ibrahim Saed ibraheem_alex(Transifex)
|
- Arabic: SDERAWI (abz8868@msn.com) and sn51234 (nesseyan@gmail.com)
|
||||||
- Armenian: Hrant Ohanyan (hrantohanyan@mail.am)
|
- Armenian: Hrant Ohanyan (hrantohanyan@mail.am)
|
||||||
- Basque: Xabier Aramendi (azpidatziak@gmail.com)
|
- Basque: Xabier Aramendi (azpidatziak@gmail.com)
|
||||||
- Belarusian: Mihas Varantsou (meequz@gmail.com)
|
- Belarusian: Mihas Varantsou (meequz@gmail.com)
|
||||||
|
- Brazilian: Nick Marinho (nickmarinho@gmail.com)
|
||||||
- Bulgarian: Tsvetan & Boyko Bankoff (emerge_life@users.sourceforge.net)
|
- Bulgarian: Tsvetan & Boyko Bankoff (emerge_life@users.sourceforge.net)
|
||||||
- Catalan: Francisco Luque Contreras (frannoe@ya.com)
|
- Catalan: Francisco Luque Contreras (frannoe@ya.com)
|
||||||
- Chinese (Simplified): Guo Yue (yue.guo0418@gmail.com)
|
- Chinese (Simplified): Guo Yue (yue.guo0418@gmail.com)
|
||||||
- Chinese (Traditional): Yi-Shun Wang (dnextstep@gmail.com) and 冥王歐西里斯 s8321414(Transifex)
|
- Chinese (Traditional): Yi-Shun Wang (dnextstep@gmail.com)
|
||||||
- Croatian: Oliver Mucafir (oliver.untwist@gmail.com)
|
- Croatian: Oliver Mucafir (oliver.untwist@gmail.com)
|
||||||
- Czech: Jirka Vilim (web@tets.cz) and Petr Cernobila abr(Transifex)
|
- Czech: Jirka Vilim (web@tets.cz)
|
||||||
- Danish: Mathias Nielsen (comoneo@gmail.com)
|
- Danish: Mathias Nielsen (comoneo@gmail.com)
|
||||||
- Dutch: Pieter Heyvaert (pieter_heyvaert@hotmail.com)
|
- Dutch: Pieter Heyvaert (pieter_heyvaert@hotmail.com)
|
||||||
- English: Christophe Dumez (chris@qbittorrent.org)
|
- English: Christophe Dumez (chris@qbittorrent.org)
|
||||||
- English(Australia): Robert Readman readmanr(Transifex)
|
- Finnish: Niklas Laxström (nikerabbit@users.sourceforge.net)
|
||||||
- English(United Kingdom): Robert Readman readmanr(Transifex)
|
|
||||||
- Finnish: Niklas Laxström (nikerabbit@users.sourceforge.net), Pekka Niemi (pekka.niemi@iki.fi) and Jiri Grönroos artnay(Transifex)
|
|
||||||
- French: Christophe Dumez (chris@qbittorrent.org)
|
- French: Christophe Dumez (chris@qbittorrent.org)
|
||||||
- Galician: Marcos Lans (marcoslansgarza@gmail.com) and antiparvos(Transifex)
|
- Galician: Marcos Lans (marcoslansgarza@gmail.com)
|
||||||
- Georgian: Beqa Arabuli (arabulibeqa@yahoo.com)
|
- Georgian: Beqa Arabuli (arabulibeqa@yahoo.com)
|
||||||
- German: Niels Hoffmann (zentralmaschine@users.sourceforge.net)
|
- German: Niels Hoffmann (zentralmaschine@users.sourceforge.net)
|
||||||
- Greek: Tsvetan Bankov (emerge_life@users.sourceforge.net), Stephanos Antaris (santaris@csd.auth.gr), sledgehammer999(hammered999@gmail.com) and Γιάννης Ανθυμίδης Evropi(Transifex)
|
- Greek: Tsvetan Bankov (emerge_life@users.sourceforge.net) and Stephanos Antaris (santaris@csd.auth.gr)
|
||||||
- Hebrew: David Deutsch (d.deffo@gmail.com)
|
- Hebrew: David Deutsch (d.deffo@gmail.com)
|
||||||
- Hungarian: Majoros Péter (majoros.j.p@t-online.hu)
|
- Hungarian: Majoros Péter (majoros.j.p@t-online.hu)
|
||||||
- Italian: bovirus (bovirus@live.it) and Matteo Sechi (bu17714@gmail.com)
|
- Italian: bovirus (bovirus@live.it) and Matteo Sechi (bu17714@gmail.com)
|
||||||
@@ -110,15 +100,13 @@ Translations authors:
|
|||||||
- Lithuanian: Naglis Jonaitis (njonaitis@gmail.com)
|
- Lithuanian: Naglis Jonaitis (njonaitis@gmail.com)
|
||||||
- Norwegian: Tomaso
|
- Norwegian: Tomaso
|
||||||
- Polish: Mariusz Fik (fisiu@opensuse.org)
|
- Polish: Mariusz Fik (fisiu@opensuse.org)
|
||||||
- Portuguese: Sérgio Marques smarquespt(Transifex)
|
- Portuguese: Nick Marinho (nickmarinho@gmail.com)
|
||||||
- Portuguese(Brazil): Nick Marinho (nickmarinho@gmail.com)
|
- Romanian: Obada Denis (obadadenis@users.sourceforge.net)
|
||||||
- Romanian: Obada Denis (obadadenis@users.sourceforge.net), Adrian Gabor Adriannho(Transifex) and Mihai Coman z0id(Transifex)
|
- Russian: Nick Khazov (m2k3d0n at users.sourceforge.net)
|
||||||
- Russian: Nick Khazov (m2k3d0n at users.sourceforge.net), Alexey Morsov (samurai@ricom.ru), Nick Tiskov Dayman(daymansmail (at) gmail (dot) com), Dmitry DmitryKX(Transifex) and kraleksandr kraleksandr(Transifex)
|
|
||||||
- Serbian: Anaximandar Milet (anaximandar at operamail.com)
|
- Serbian: Anaximandar Milet (anaximandar at operamail.com)
|
||||||
- Slovak: helix84
|
- Slovak: helix84
|
||||||
- Spanish: Francisco Luque Contreras (frannoe@ya.com), Alfredo Monclus alfrix(Transifex) and José Antonio Moray moray33(Transifex)
|
- Spanish: Francisco Luque Contreras (frannoe@ya.com)
|
||||||
- Swedish: Daniel Nylander (po@danielnylander.se) and Emil Hammarberg Ooglogput(Transifex)
|
- Swedish: Daniel Nylander (po@danielnylander.se)
|
||||||
- Turkish: Hasan Yilmaz (iletisim@hedefturkce.com)
|
- Turkish: Hasan Yilmaz (iletisim@hedefturkce.com)
|
||||||
- Ukrainian: Oleh Prypin (blaxpirit@gmail.com) and zubr139(Transifex)
|
- Ukrainian: Oleh Prypin (blaxpirit@gmail.com)
|
||||||
- Vietnamese: Anh Phan ppanhh(Transifex)
|
|
||||||
license: GPLv2
|
license: GPLv2
|
||||||
|
|||||||
10
COPYING
@@ -69,7 +69,7 @@ patent must be licensed for everyone's free use or not licensed at all.
|
|||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
The precise terms and conditions for copying, distribution and
|
||||||
modification follow.
|
modification follow.
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ above, provided that you also meet all of these conditions:
|
|||||||
License. (Exception: if the Program itself is interactive but
|
License. (Exception: if the Program itself is interactive but
|
||||||
does not normally print such an announcement, your work based on
|
does not normally print such an announcement, your work based on
|
||||||
the Program is not required to print an announcement.)
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
These requirements apply to the modified work as a whole. If
|
||||||
identifiable sections of that work are not derived from the Program,
|
identifiable sections of that work are not derived from the Program,
|
||||||
and can be reasonably considered independent and separate works in
|
and can be reasonably considered independent and separate works in
|
||||||
@@ -182,7 +182,7 @@ access to copy from a designated place, then offering equivalent
|
|||||||
access to copy the source code from the same place counts as
|
access to copy the source code from the same place counts as
|
||||||
distribution of the source code, even though third parties are not
|
distribution of the source code, even though third parties are not
|
||||||
compelled to copy the source along with the object code.
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
4. You may not copy, modify, sublicense, or distribute the Program
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
except as expressly provided under this License. Any attempt
|
except as expressly provided under this License. Any attempt
|
||||||
otherwise to copy, modify, sublicense or distribute the Program is
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
@@ -239,7 +239,7 @@ impose that choice.
|
|||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
This section is intended to make thoroughly clear what is believed to
|
||||||
be a consequence of the rest of this License.
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
8. If the distribution and/or use of the Program is restricted in
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
original copyright holder who places the Program under this License
|
original copyright holder who places the Program under this License
|
||||||
@@ -292,7 +292,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|||||||
POSSIBILITY OF SUCH DAMAGES.
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
qBittorrent - A BitTorrent client in Qt
|
qBittorrent - A BitTorrent client in Qt4
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
[](https://travis-ci.org/qbittorrent/qBittorrent)
|
Description:
|
||||||
********************************
|
********************************
|
||||||
###Description:
|
qBittorrent is a bittorrent client programmed in C++ / Qt4 that uses
|
||||||
qBittorrent is a bittorrent client programmed in C++ / Qt that uses
|
libtorrent (sometimes called rblibtorrent) by Arvid Norberg.
|
||||||
libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg.
|
|
||||||
|
|
||||||
It aims to be a good alternative to all other bittorrent clients
|
It aims to be a good alternative to all other bittorrent clients
|
||||||
out there. qBittorrent is fast, stable and provides unicode
|
out there. qBittorrent is fast, stable and provides unicode
|
||||||
@@ -14,14 +13,13 @@ support as well as many features.
|
|||||||
This product includes GeoLite data created by MaxMind, available from
|
This product includes GeoLite data created by MaxMind, available from
|
||||||
http://maxmind.com/
|
http://maxmind.com/
|
||||||
|
|
||||||
### Installation:
|
Installation:
|
||||||
|
********************************
|
||||||
For installation, follow the instructions from INSTALL file, but simple:
|
For installation, follow the instructions from INSTALL file, but simple:
|
||||||
|
|
||||||
```
|
|
||||||
./configure
|
./configure
|
||||||
make && make install
|
make && make install
|
||||||
qbittorrent
|
qbittorrent
|
||||||
```
|
|
||||||
|
|
||||||
will install and execute qBittorrent hopefully without any problem.
|
will install and execute qBittorrent hopefully without any problem.
|
||||||
|
|
||||||
@@ -34,9 +32,9 @@ http://wiki.qbittorrent.org
|
|||||||
Please report any bug (or feature request) to:
|
Please report any bug (or feature request) to:
|
||||||
http://bugs.qbittorrent.org
|
http://bugs.qbittorrent.org
|
||||||
|
|
||||||
You can also meet me (sledgehammer_999) on IRC:
|
You can also meet me (chris-qBT) on IRC:
|
||||||
`#qbittorrent on irc.freenode.net`
|
#qbittorrent on irc.freenode.net
|
||||||
|
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
sledgehammer999 <sledgehammer999@qbittorrent.org>
|
Christophe Dumez <chris@qbittorrent.org>
|
||||||
|
|
||||||
4
configure
vendored
@@ -507,11 +507,11 @@ public:
|
|||||||
#if LIBTORRENT_VERSION_MAJOR == 0 && LIBTORRENT_VERSION_MINOR < 16
|
#if LIBTORRENT_VERSION_MAJOR == 0 && LIBTORRENT_VERSION_MINOR < 16
|
||||||
required_libs << "filesystem" ;
|
required_libs << "filesystem" ;
|
||||||
#endif
|
#endif
|
||||||
//required_libs << "thread";
|
required_libs << "thread";
|
||||||
QStringList libDirs;
|
QStringList libDirs;
|
||||||
if (!s.isEmpty())
|
if (!s.isEmpty())
|
||||||
libDirs << s;
|
libDirs << s;
|
||||||
libDirs << "/usr/lib/" << "/usr/lib/i386-linux-gnu/" << "/usr/lib64/" << "/usr/lib/x86_64-linux-gnu/" << "/usr/local/lib/" << "/usr/lib/local/i386-linux-gnu/" << "/usr/local/lib64/" << "/usr/local/lib/x86_64-linux-gnu/";
|
libDirs << "/usr/lib/" << "/usr/lib64/" << "/usr/local/lib/" << "/usr/local/lib64/";
|
||||||
|
|
||||||
foreach(const QString& lib, required_libs) {
|
foreach(const QString& lib, required_libs) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ qBittorrent\-nox \- a command line Bittorrent client written in C++ / Qt4
|
|||||||
|
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
|
|
||||||
\fBqbittorrent\-nox\fR [\-\-d|\-\-daemon] [\-\-webui-port=x] [TORRENT_FILE | URL]...
|
\fBqbittorrent\-nox\fR [\-\-webui-port=x] [TORRENT_FILE | URL]...
|
||||||
|
|
||||||
\fBqbittorrent\-nox\fR \-\-help
|
\fBqbittorrent\-nox\fR \-\-help
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ TEMPLATE = subdirs
|
|||||||
SUBDIRS += src
|
SUBDIRS += src
|
||||||
|
|
||||||
include(version.pri)
|
include(version.pri)
|
||||||
include(qm_gen.pri)
|
|
||||||
|
|
||||||
# Dist
|
# Dist
|
||||||
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}/ &&
|
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}/ &&
|
||||||
|
|||||||
@@ -71,11 +71,11 @@ public:
|
|||||||
#if LIBTORRENT_VERSION_MAJOR == 0 && LIBTORRENT_VERSION_MINOR < 16
|
#if LIBTORRENT_VERSION_MAJOR == 0 && LIBTORRENT_VERSION_MINOR < 16
|
||||||
required_libs << "filesystem" ;
|
required_libs << "filesystem" ;
|
||||||
#endif
|
#endif
|
||||||
//required_libs << "thread";
|
required_libs << "thread";
|
||||||
QStringList libDirs;
|
QStringList libDirs;
|
||||||
if (!s.isEmpty())
|
if (!s.isEmpty())
|
||||||
libDirs << s;
|
libDirs << s;
|
||||||
libDirs << "/usr/lib/" << "/usr/lib/i386-linux-gnu/" << "/usr/lib64/" << "/usr/lib/x86_64-linux-gnu/" << "/usr/local/lib/" << "/usr/lib/local/i386-linux-gnu/" << "/usr/local/lib64/" << "/usr/local/lib/x86_64-linux-gnu/";
|
libDirs << "/usr/lib/" << "/usr/lib64/" << "/usr/local/lib/" << "/usr/local/lib64/";
|
||||||
|
|
||||||
foreach(const QString& lib, required_libs) {
|
foreach(const QString& lib, required_libs) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|||||||
19
qm_gen.pri
@@ -1,19 +0,0 @@
|
|||||||
TS_IN = $$fromfile(src/src.pro,TRANSLATIONS)
|
|
||||||
TS_IN_NOEXT = $$replace(TS_IN,".ts","")
|
|
||||||
|
|
||||||
isEmpty(QMAKE_LRELEASE) {
|
|
||||||
win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
|
|
||||||
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
|
||||||
unix {
|
|
||||||
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt4 }
|
|
||||||
} else {
|
|
||||||
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
message("Building translations")
|
|
||||||
for(L,TS_IN_NOEXT) {
|
|
||||||
message("Processing $${L}")
|
|
||||||
system("$$QMAKE_LRELEASE -silent src/$${L}.ts -qm src/$${L}.qm")
|
|
||||||
!exists("src/$${L}.qm"):error("Building translations failed, cannot continue")
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
@@ -2,120 +2,40 @@
|
|||||||
Categories=Network;FileTransfer;P2P;Qt;
|
Categories=Network;FileTransfer;P2P;Qt;
|
||||||
Exec=qbittorrent %U
|
Exec=qbittorrent %U
|
||||||
GenericName=BitTorrent client
|
GenericName=BitTorrent client
|
||||||
|
GenericName[ar]=العميل BitTorrent
|
||||||
|
GenericName[bg]=Торент клиент
|
||||||
|
GenericName[cs]=BitTorrent klient
|
||||||
|
GenericName[de]=BitTorren Client
|
||||||
|
GenericName[el]=BitTorrent πελάτης
|
||||||
|
GenericName[es]=Cliente BitTorrent
|
||||||
|
GenericName[fi]=BitTorrent-ohjelma
|
||||||
|
GenericName[fr]=Client BitTorrent
|
||||||
|
GenericName[hr]=BitTorrent klijent
|
||||||
|
GenericName[hu]=BitTorrent kliens
|
||||||
|
GenericName[it]=Client BitTorrent
|
||||||
|
GenericName[ja]=BitTorrent クライアント
|
||||||
|
GenericName[ko]=비토렌트 클라이언트
|
||||||
|
GenericName[lt]=BitTorrent klientas
|
||||||
|
GenericName[nl]=BitTorrent-cliënt
|
||||||
|
GenericName[pl]=Klient BitTorrent
|
||||||
|
GenericName[pt]=Cliente BitTorrent
|
||||||
|
GenericName[pt_BR]=Cliente BitTorrent
|
||||||
|
GenericName[ro]=Client BitTorrent
|
||||||
|
GenericName[ru]=клиент BitTorrent
|
||||||
|
GenericName[sk]=Klient siete BitTorrent
|
||||||
|
GenericName[sr]=BitTorrent-клијент
|
||||||
|
GenericName[sv]=BitTorrent-klient
|
||||||
|
GenericName[tr]=BitTorrent istemcisi
|
||||||
|
GenericName[uk]=BitTorrent-клієнт
|
||||||
|
GenericName[zh]=BitTorrent之用户
|
||||||
|
GenericName[zh_TW]=BitTorrent客戶端
|
||||||
Comment=Download and share files over BitTorrent
|
Comment=Download and share files over BitTorrent
|
||||||
|
Comment[fr]=Télécharger et partager des fichiers avec BitTorrent
|
||||||
|
Comment[pl]=Dzielenie się plikami przez BitTorrent
|
||||||
Icon=qbittorrent
|
Icon=qbittorrent
|
||||||
MimeType=application/x-bittorrent;x-scheme-handler/magnet;
|
MimeType=application/x-bittorrent;x-scheme-handler/magnet;
|
||||||
Name=qBittorrent
|
Name=qBittorrent
|
||||||
|
Name[ko]=큐비토런트
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
StartupNotify=false
|
|
||||||
StartupWMClass=qbittorrent
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Translations
|
|
||||||
|
|
||||||
|
|
||||||
# Translations
|
|
||||||
GenericName[ar]=العميل BitTorrent
|
|
||||||
Comment[be]=Сцягванне і раздача файлаў праз пратакол BitTorrent
|
|
||||||
GenericName[be]=BitTorrent-кліент
|
|
||||||
Name[be]=qBittorrent
|
|
||||||
Icon[be]=qbittorrent
|
|
||||||
GenericName[bg]=Торент клиент
|
|
||||||
Comment[cs]=Stahování a sdílení souborů přes síť BitTorrent
|
|
||||||
GenericName[cs]=BitTorrent klient
|
|
||||||
Name[cs]=qBittorrent
|
|
||||||
Icon[cs]=qbittorrent
|
|
||||||
GenericName[de]=BitTorren Client
|
|
||||||
Comment[el]=Λήψη και διαμοιρασμός αρχείων μέσω BitTorrent
|
|
||||||
GenericName[el]=BitTorrent πελάτης
|
|
||||||
Name[el]=qBittorrent
|
|
||||||
Icon[el]=qbittorrent
|
|
||||||
Comment[en_GB]=Download and share files over BitTorrent
|
|
||||||
GenericName[en_GB]=BitTorrent client
|
|
||||||
Name[en_GB]=qBittorrent
|
|
||||||
Icon[en_GB]=qbittorrent
|
|
||||||
Comment[es]=Descarga y comparte archivos por BitTorrent
|
|
||||||
GenericName[es]=Cliente BitTorrent
|
|
||||||
Name[es]=qBittorrent
|
|
||||||
Icon[es]=qbittorrent
|
|
||||||
Comment[eu]=Jeitsi eta elkarbanatu agiriak BitTorrent-en
|
|
||||||
GenericName[eu]=BitTorrent bezeroa
|
|
||||||
Name[eu]=qBittorrent
|
|
||||||
Icon[eu]=qbittorrent
|
|
||||||
Comment[fi]=Lataa ja jaa tiedostoja BitTorrentia käyttäen
|
|
||||||
GenericName[fi]=BitTorrent-ohjelma
|
|
||||||
Name[fi]=qBittorrent
|
|
||||||
Icon[fi]=qbittorrent
|
|
||||||
Comment[fr]=Télécharger et partager des fichiers avec BitTorrent
|
|
||||||
GenericName[fr]=Client BitTorrent
|
|
||||||
Comment[gl]=Descargue e comparta ficheiros co protocolo BitTorrent
|
|
||||||
GenericName[gl]=Cliente BitTorrent
|
|
||||||
Name[gl]=qBittorrent
|
|
||||||
Icon[gl]=qbittorrent
|
|
||||||
GenericName[hr]=BitTorrent klijent
|
|
||||||
GenericName[hu]=BitTorrent kliens
|
|
||||||
Comment[it]=Client BitTorrent per il download di file via internet
|
|
||||||
GenericName[it]=Client BitTorrent
|
|
||||||
Name[it]=qBittorrent
|
|
||||||
Icon[it]=qbittorrent
|
|
||||||
Comment[ja]=BitTorrent でファイルをダウンロードおよび共有します
|
|
||||||
GenericName[ja]=BitTorrent クライアント
|
|
||||||
Name[ja]=qBittorrent
|
|
||||||
Icon[ja]=qbittorrent
|
|
||||||
GenericName[ko]=비토렌트 클라이언트
|
|
||||||
Name[ko]=큐비토런트
|
|
||||||
GenericName[zh]=BitTorrent之用户
|
|
||||||
Comment[lt]=Atsisiųskite bei dalinkitės failais BitTorrent tinkle
|
|
||||||
GenericName[lt]=BitTorrent klientas
|
|
||||||
Name[lt]=qBittorrent
|
|
||||||
Icon[lt]=qbittorrent
|
|
||||||
Comment[nb]=Last ned og del filer over BitTorrent
|
|
||||||
GenericName[nb]=BitTorrent-klient
|
|
||||||
Name[nb]=qBittorrent
|
|
||||||
Icon[nb]=qbittorrent
|
|
||||||
GenericName[nl]=BitTorrent-cliënt
|
|
||||||
Comment[pl]=Dzielenie się plikami przez BitTorrent
|
|
||||||
GenericName[pl]=Klient BitTorrent
|
|
||||||
Name[pl]=qBittorrent
|
|
||||||
Icon[pl]=qbittorrent
|
|
||||||
Comment[pt]=Transferir e partilhar ficheiros por BitTorrent
|
|
||||||
GenericName[pt]=Aplicação BitTorrent
|
|
||||||
Name[pt]=qBittorrent
|
|
||||||
Icon[pt]=qbittorrent
|
|
||||||
Comment[pt_BR]=Baixe e compartilhe arquivos através do qBittorrent
|
|
||||||
GenericName[pt_BR]=Cliente BitTorrent
|
|
||||||
Name[pt_BR]=qBittorrent
|
|
||||||
Icon[pt_BR]=qbittorrent
|
|
||||||
Comment[ro]=Descărcați și partajați fișiere prin BitTorrent
|
|
||||||
GenericName[ro]=Client BitTorrent
|
|
||||||
Name[ro]=qBittorrent
|
|
||||||
Icon[ro]=qbittorrent
|
|
||||||
Comment[ru]=Скачивайте и делитесь файлами с помощью BitTorrent
|
|
||||||
GenericName[ru]=клиент BitTorrent
|
|
||||||
Name[ru]=qBittorrent
|
|
||||||
Icon[ru]=qbittorrent
|
|
||||||
GenericName[sk]=Klient siete BitTorrent
|
|
||||||
GenericName[sr]=BitTorrent-клијент
|
|
||||||
Comment[sv]=Hämta och dela filer över BitTorrent
|
|
||||||
GenericName[sv]=BitTorrent-klient
|
|
||||||
Name[sv]=qBittorrent
|
|
||||||
Icon[sv]=qbittorrent
|
|
||||||
GenericName[tr]=BitTorrent istemcisi
|
|
||||||
Comment[uk]=Завантажувати і обмінюватися файлами через BitTorrent
|
|
||||||
GenericName[uk]=BitTorrent-клієнт
|
|
||||||
Name[uk]=qBittorrent
|
|
||||||
Icon[uk]=qbittorrent
|
|
||||||
Comment[vi]=Tải về và chia sẻ các tập tin thông qua BitTorrent
|
|
||||||
GenericName[vi]=Máy trạm dạng BitTorrent
|
|
||||||
Name[vi]=qBittorrent
|
|
||||||
Icon[vi]=qbittorrent
|
|
||||||
Comment[zh_TW]=經由 BitTorrent 下載並分享檔案
|
|
||||||
GenericName[zh_TW]=BitTorrent 客戶端
|
|
||||||
Name[zh_TW]=qBittorrent
|
|
||||||
Icon[zh_TW]=qbittorrent
|
|
||||||
Comment[en_AU]=Download and share files over BitTorrent
|
|
||||||
GenericName[en_AU]=BitTorrent client
|
|
||||||
Name[en_AU]=qBittorrent
|
|
||||||
Icon[en_AU]=qbittorrent
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 359 B After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 3.1 KiB |
294
src/about.ui
@@ -48,28 +48,10 @@ class about : public QDialog, private Ui::AboutDlg{
|
|||||||
about(QWidget *parent): QDialog(parent) {
|
about(QWidget *parent): QDialog(parent) {
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
// About
|
|
||||||
QString aboutText =
|
|
||||||
QString::fromUtf8("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\"><html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">p, li { white-space: pre-wrap; }</style></head><body style=\" font-size:11pt; font-weight:400; font-style:normal;\"><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">") +
|
|
||||||
tr("An advanced BitTorrent client programmed in C++, based on Qt4 toolkit and libtorrent-rasterbar.") +
|
|
||||||
QString::fromUtf8(" <br /><br />") +
|
|
||||||
trUtf8("Copyright ©2006-2013 The qBittorrent project") +
|
|
||||||
QString::fromUtf8("<br /><br />") +
|
|
||||||
tr("Home Page: ") +
|
|
||||||
QString::fromUtf8("<a href=\"http://www.qbittorrent.org\"><span style=\" text-decoration: underline; color:#0000ff;\">http://www.qbittorrent.org</span></a></p><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">") +
|
|
||||||
tr("Bug Tracker: ") +
|
|
||||||
QString::fromUtf8("<a href=\"http://bugs.qbittorrent.org\"><span style=\" text-decoration: underline; color:#0000ff;\">http://bugs.qbittorrent.org</span></a><br />") +
|
|
||||||
tr("Forum: ") +
|
|
||||||
QString::fromUtf8(
|
|
||||||
"<a href=\"http://forum.qbittorrent.org\"><span style=\" text-decoration: underline; color:#0000ff;\">http://forum.qbittorrent.org</span></a></p><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">") +
|
|
||||||
tr("IRC: #qbittorrent on Freenode") +
|
|
||||||
QString::fromUtf8(
|
|
||||||
"</p></body></html>");
|
|
||||||
lb_about->setText(aboutText);
|
|
||||||
// Set icons
|
// Set icons
|
||||||
logo->setPixmap(QPixmap(QString::fromUtf8(":/Icons/skin/qbittorrent22.png")));
|
logo->setPixmap(QPixmap(QString::fromUtf8(":/Icons/skin/qbittorrent22.png")));
|
||||||
//Title
|
//Title
|
||||||
lb_name->setText(QString::fromUtf8("<b><h1>qBittorrent")+QString::fromUtf8(" "VERSION"</h1></b>"));
|
lb_name->setText(QString::fromUtf8("<b><h1>")+tr("qBittorrent")+QString::fromUtf8(" "VERSION"</h1></b>"));
|
||||||
// Thanks
|
// Thanks
|
||||||
QString thanks_txt;
|
QString thanks_txt;
|
||||||
thanks_txt += QString::fromUtf8("<p>I would first like to thank sourceforge.net for hosting qBittorrent project and for their support.</p>");
|
thanks_txt += QString::fromUtf8("<p>I would first like to thank sourceforge.net for hosting qBittorrent project and for their support.</p>");
|
||||||
@@ -80,25 +62,24 @@ class about : public QDialog, private Ui::AboutDlg{
|
|||||||
te_thanks->setHtml(thanks_txt);
|
te_thanks->setHtml(thanks_txt);
|
||||||
// Translation
|
// Translation
|
||||||
QString trans_txt = "<p>"+tr("I would like to thank the following people who volunteered to translate qBittorrent:")+"</p>";
|
QString trans_txt = "<p>"+tr("I would like to thank the following people who volunteered to translate qBittorrent:")+"</p>";
|
||||||
trans_txt += QString::fromUtf8("<ul><li><u>Arabic:</u> SDERAWI (abz8868@msn.com), sn51234 (nesseyan@gmail.com) and Ibrahim Saed ibraheem_alex(Transifex)</li>\
|
trans_txt += QString::fromUtf8("<ul><li><u>Arabic:</u> SDERAWI (abz8868@msn.com) and sn51234 (nesseyan@gmail.com)</li>\
|
||||||
<li><u>Armenian:</u> Hrant Ohanyan (hrantohanyan@mail.am)</li>\
|
<li><u>Armenian:</u> Hrant Ohanyan (hrantohanyan@mail.am)</li>\
|
||||||
<li><u>Basque:</u> Xabier Aramendi (azpidatziak@gmail.com)</li>\
|
<li><u>Basque:</u> Xabier Aramendi (azpidatziak@gmail.com)</li>\
|
||||||
<li><u>Belarusian:</u> Mihas Varantsou (meequz@gmail.com)</li>\
|
<li><u>Belarusian:</u> Mihas Varantsou (meequz@gmail.com)</li>\
|
||||||
|
<li><u>Brazilian:</u> Nick Marinho (nickmarinho@gmail.com)</li>\
|
||||||
<li><u>Bulgarian:</u> Tsvetan & Boyko Bankoff (emerge_life@users.sourceforge.net)</li>\
|
<li><u>Bulgarian:</u> Tsvetan & Boyko Bankoff (emerge_life@users.sourceforge.net)</li>\
|
||||||
<li><u>Catalan:</u> Francisco Luque Contreras (frannoe@ya.com)</li>\
|
<li><u>Catalan:</u> Francisco Luque Contreras (frannoe@ya.com)</li>\
|
||||||
<li><u>Chinese (Simplified):</u> Guo Yue (yue.guo0418@gmail.com)</li>\
|
<li><u>Chinese (Simplified):</u> Guo Yue (yue.guo0418@gmail.com)</li>\
|
||||||
<li><u>Chinese (Traditional):</u> Yi-Shun Wang (dnextstep@gmail.com) and 冥王歐西里斯 s8321414(Transifex)</li>\
|
<li><u>Chinese (Traditional):</u> Yi-Shun Wang (dnextstep@gmail.com)</li>\
|
||||||
<li><u>Croatian:</u> Oliver Mucafir (oliver.untwist@gmail.com)</li>\
|
<li><u>Croatian:</u> Oliver Mucafir (oliver.untwist@gmail.com)</li>\
|
||||||
<li><u>Czech:</u> Jirka Vilim (web@tets.cz) and Petr Cernobila abr(Transifex)</li>\
|
<li><u>Czech:</u> Jirka Vilim (web@tets.cz)</li>\
|
||||||
<li><u>Danish:</u> Mathias Nielsen (comoneo@gmail.com)</li>\
|
<li><u>Danish:</u> Mathias Nielsen (comoneo@gmail.com)</li>\
|
||||||
<li><u>Dutch:</u> Pieter Heyvaert (pieter_heyvaert@hotmail.com)</li>\
|
<li><u>Dutch:</u> Pieter Heyvaert (pieter_heyvaert@hotmail.com)</li>\
|
||||||
<li><u>English(Australia):</u> Robert Readman readmanr(Transifex)</li>\
|
<li><u>Finnish:</u> Niklas Laxström (nikerabbit@users.sourceforge.net) and Pekka Niemi (pekka.niemi@iki.fi)</li>\
|
||||||
<li><u>English(United Kingdom):</u> Robert Readman readmanr(Transifex)</li>\
|
<li><u>Galician:</u> Marcos Lans (marcoslansgarza@gmail.com)</li>\
|
||||||
<li><u>Finnish:</u> Niklas Laxström (nikerabbit@users.sourceforge.net), Pekka Niemi (pekka.niemi@iki.fi) and Jiri Grönroos artnay(Transifex)</li>\
|
|
||||||
<li><u>Galician:</u> Marcos Lans (marcoslansgarza@gmail.com) and antiparvos(Transifex)</li>\
|
|
||||||
<li><u>Georgian:</u> Beqa Arabuli (arabulibeqa@yahoo.com)</li>\
|
<li><u>Georgian:</u> Beqa Arabuli (arabulibeqa@yahoo.com)</li>\
|
||||||
<li><u>German:</u> Niels Hoffmann (zentralmaschine@users.sourceforge.net)</li>\
|
<li><u>German:</u> Niels Hoffmann (zentralmaschine@users.sourceforge.net)</li>\
|
||||||
<li><u>Greek:</u> Tsvetan Bankov (emerge_life@users.sourceforge.net), Stephanos Antaris (santaris@csd.auth.gr), sledgehammer999(hammered999@gmail.com) and Γιάννης Ανθυμίδης Evropi(Transifex)</li>\
|
<li><u>Greek:</u> Tsvetan Bankov (emerge_life@users.sourceforge.net)</li>\
|
||||||
<li><u>Hebrew:</u> David Deutsch (d.deffo@gmail.com)</li>\
|
<li><u>Hebrew:</u> David Deutsch (d.deffo@gmail.com)</li>\
|
||||||
<li><u>Hungarian:</u> Majoros Péter (majoros.peterj@gmail.com)</li>\
|
<li><u>Hungarian:</u> Majoros Péter (majoros.peterj@gmail.com)</li>\
|
||||||
<li><u>Italian:</u> bovirus (bovirus@live.it) and Matteo Sechi (bu17714@gmail.com)</li>\
|
<li><u>Italian:</u> bovirus (bovirus@live.it) and Matteo Sechi (bu17714@gmail.com)</li>\
|
||||||
@@ -107,17 +88,15 @@ class about : public QDialog, private Ui::AboutDlg{
|
|||||||
<li><u>Lithuanian:</u> Naglis Jonaitis (njonaitis@gmail.com)</li>\
|
<li><u>Lithuanian:</u> Naglis Jonaitis (njonaitis@gmail.com)</li>\
|
||||||
<li><u>Norwegian:</u> Tomaso</li>\
|
<li><u>Norwegian:</u> Tomaso</li>\
|
||||||
<li><u>Polish:</u> Mariusz Fik (fisiu@opensuse.org)</li>\
|
<li><u>Polish:</u> Mariusz Fik (fisiu@opensuse.org)</li>\
|
||||||
<li><u>Portuguese:</u> Sérgio Marques smarquespt(Transifex)</li>\
|
<li><u>Portuguese:</u> Nick Marinho (nickmarinho@gmail.com)</li>\
|
||||||
<li><u>Portuguese(Brazil):</u> Nick Marinho (nickmarinho@gmail.com)</li>\
|
<li><u>Romanian:</u> Obada Denis (obadadenis@users.sourceforge.net)</li>\
|
||||||
<li><u>Romanian:</u> Obada Denis (obadadenis@users.sourceforge.net), Adrian Gabor Adriannho(Transifex) and Mihai Coman z0id(Transifex)</li>\
|
<li><u>Russian:</u> Nick Khazov (m2k3d0n@users.sourceforge.net) and Alexey Morsov (samurai@ricom.ru)</li>\
|
||||||
<li><u>Russian:</u> Nick Khazov (m2k3d0n at users.sourceforge.net), Alexey Morsov (samurai@ricom.ru), Nick Tiskov Dayman(daymansmail (at) gmail (dot) com), Dmitry DmitryKX(Transifex) and kraleksandr kraleksandr(Transifex)</li>\
|
|
||||||
<li><u>Serbian:</u> Anaximandar Milet (anaximandar@operamail.com)</li>\
|
<li><u>Serbian:</u> Anaximandar Milet (anaximandar@operamail.com)</li>\
|
||||||
<li><u>Slovak:</u> helix84</li>\
|
<li><u>Slovak:</u> helix84</li>\
|
||||||
<li><u>Spanish:</u> Alfredo Monclús (alfrix), Francisco Luque Contreras (frannoe@ya.com) and José Antonio Moray moray33(Transifex)</li>\
|
<li><u>Spanish:</u> Francisco Luque Contreras (frannoe@ya.com)</li>\
|
||||||
<li><u>Swedish:</u> Daniel Nylander (po@danielnylander.se) and Emil Hammarberg Ooglogput(Transifex)</li>\
|
<li><u>Swedish:</u> Daniel Nylander (po@danielnylander.se)</li>\
|
||||||
<li><u>Turkish:</u> Hasan YILMAZ (iletisim@hedefturkce.com) and Erdem Bingöl (erdem84@gmail.com)</li>\
|
<li><u>Turkish:</u> Hasan YILMAZ (iletisim@hedefturkce.com) and Erdem Bingöl (erdem84@gmail.com)</li>\
|
||||||
<li><u>Ukrainian:</u> Oleh Prypin (blaxpirit@gmail.com)</li>\
|
<li><u>Ukrainian:</u> Oleh Prypin (blaxpirit@gmail.com)</li></ul>");
|
||||||
<li><u>Vietnamese:</u> Anh Phan ppanhh(Transifex)</li></ul>");
|
|
||||||
trans_txt += "<p>"+tr("Please contact me if you would like to translate qBittorrent into your own language.")+"</p>";
|
trans_txt += "<p>"+tr("Please contact me if you would like to translate qBittorrent into your own language.")+"</p>";
|
||||||
te_translation->setHtml(trans_txt);
|
te_translation->setHtml(trans_txt);
|
||||||
// License
|
// License
|
||||||
|
|||||||
@@ -31,11 +31,9 @@
|
|||||||
#ifndef ADDNEWTORRENTDIALOG_H
|
#ifndef ADDNEWTORRENTDIALOG_H
|
||||||
#define ADDNEWTORRENTDIALOG_H
|
#define ADDNEWTORRENTDIALOG_H
|
||||||
|
|
||||||
#include <QShortcut>
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <libtorrent/torrent_info.hpp>
|
#include <libtorrent/torrent_info.hpp>
|
||||||
#include "qtorrenthandle.h"
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
@@ -53,25 +51,18 @@ class AddNewTorrentDialog : public QDialog
|
|||||||
public:
|
public:
|
||||||
~AddNewTorrentDialog();
|
~AddNewTorrentDialog();
|
||||||
|
|
||||||
static void showTorrent(const QString& torrent_path, const QString& from_url, QWidget *parent = 0);
|
static void showTorrent(const QString& torrent_path, const QString& from_url = QString());
|
||||||
static void showMagnet(const QString& torrent_link, QWidget *parent = 0);
|
static void showMagnet(const QString& torrent_link);
|
||||||
|
|
||||||
protected:
|
|
||||||
void showEvent(QShowEvent *event);
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void showAdvancedSettings(bool show);
|
void showAdvancedSettings(bool show);
|
||||||
void displayContentTreeMenu(const QPoint&);
|
void displayContentTreeMenu(const QPoint&);
|
||||||
|
void on_buttonBox_accepted();
|
||||||
void updateDiskSpaceLabel();
|
void updateDiskSpaceLabel();
|
||||||
void onSavePathChanged(int);
|
void onSavePathChanged(int);
|
||||||
void relayout();
|
void relayout();
|
||||||
void renameSelectedFile();
|
void renameSelectedFile();
|
||||||
void setdialogPosition();
|
void setdialogPosition();
|
||||||
void updateMetadata(const QTorrentHandle& h);
|
|
||||||
|
|
||||||
protected slots:
|
|
||||||
virtual void accept();
|
|
||||||
virtual void reject();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit AddNewTorrentDialog(QWidget *parent = 0);
|
explicit AddNewTorrentDialog(QWidget *parent = 0);
|
||||||
@@ -83,23 +74,18 @@ private:
|
|||||||
void updateFileNameInSavePaths(const QString& new_filename);
|
void updateFileNameInSavePaths(const QString& new_filename);
|
||||||
void loadState();
|
void loadState();
|
||||||
void saveState();
|
void saveState();
|
||||||
void setMetadataProgressIndicator(bool visibleIndicator, const QString &labelText = QString());
|
|
||||||
void setupTreeview();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::AddNewTorrentDialog *ui;
|
Ui::AddNewTorrentDialog *ui;
|
||||||
TorrentContentFilterModel *m_contentModel;
|
TorrentContentFilterModel *m_contentModel;
|
||||||
PropListDelegate *m_contentDelegate;
|
PropListDelegate *m_contentDelegate;
|
||||||
bool m_isMagnet;
|
bool m_isMagnet;
|
||||||
bool m_hasMetadata;
|
|
||||||
QString m_filePath;
|
QString m_filePath;
|
||||||
QString m_url;
|
QString m_url;
|
||||||
QString m_hash;
|
QString m_hash;
|
||||||
boost::intrusive_ptr<libtorrent::torrent_info> m_torrentInfo;
|
boost::intrusive_ptr<libtorrent::torrent_info> m_torrentInfo;
|
||||||
QStringList m_filesPath;
|
QStringList m_filesPath;
|
||||||
bool m_hasRenamedFile;
|
bool m_hasRenamedFile;
|
||||||
QShortcut *editHotkey;
|
|
||||||
QByteArray m_headerState;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ADDNEWTORRENTDIALOG_H
|
#endif // ADDNEWTORRENTDIALOG_H
|
||||||
|
|||||||
@@ -22,6 +22,9 @@
|
|||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Dialog</string>
|
||||||
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox">
|
<widget class="QGroupBox" name="groupBox">
|
||||||
@@ -176,6 +179,9 @@
|
|||||||
<property name="sortingEnabled">
|
<property name="sortingEnabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<attribute name="headerStretchLastSection">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@@ -183,38 +189,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="buttonsHLayout">
|
<layout class="QHBoxLayout" name="buttonsHLayout">
|
||||||
<item>
|
|
||||||
<widget class="QProgressBar" name="progMetaLoading">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>-1</number>
|
|
||||||
</property>
|
|
||||||
<property name="textVisible">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="format">
|
|
||||||
<string notr="true">%p%</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="lblMetaLoading">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|||||||
@@ -1,121 +0,0 @@
|
|||||||
/*
|
|
||||||
* Bittorrent Client using Qt4 and libtorrent.
|
|
||||||
* Copyright (C) 2013 Nick Tiskov
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation; either version 2
|
|
||||||
* of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
|
||||||
* In addition, as a special exception, the copyright holders give permission to
|
|
||||||
* link this program with the OpenSSL project's "OpenSSL" library (or with
|
|
||||||
* modified versions of it that use the same license as the "OpenSSL" library),
|
|
||||||
* and distribute the linked executables. You must obey the GNU General Public
|
|
||||||
* License in all respects for all of the code used other than "OpenSSL". If you
|
|
||||||
* modify file(s), you may extend this exception to your version of the file(s),
|
|
||||||
* but you are not obligated to do so. If you do not wish to do so, delete this
|
|
||||||
* exception statement from your version.
|
|
||||||
*
|
|
||||||
* Contact : daymansmail@gmail.com
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <QDesktopWidget>
|
|
||||||
|
|
||||||
#include "mainwindow.h"
|
|
||||||
#include "autoexpandabledialog.h"
|
|
||||||
#include "ui_autoexpandabledialog.h"
|
|
||||||
|
|
||||||
AutoExpandableDialog::AutoExpandableDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AutoExpandableDialog) {
|
|
||||||
ui->setupUi(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
AutoExpandableDialog::~AutoExpandableDialog() {
|
|
||||||
delete ui;
|
|
||||||
}
|
|
||||||
|
|
||||||
QString AutoExpandableDialog::getText(QWidget *parent, const QString &title, const QString &label,
|
|
||||||
QLineEdit::EchoMode mode, const QString &text, bool *ok,
|
|
||||||
Qt::InputMethodHints inputMethodHints) {
|
|
||||||
|
|
||||||
AutoExpandableDialog d(parent);
|
|
||||||
d.setWindowTitle(title);
|
|
||||||
d.ui->textLabel->setText(label);
|
|
||||||
d.ui->textEdit->setText(text);
|
|
||||||
d.ui->textEdit->setEchoMode(mode);
|
|
||||||
d.ui->textEdit->setInputMethodHints(inputMethodHints);
|
|
||||||
|
|
||||||
bool res = d.exec();
|
|
||||||
if (ok)
|
|
||||||
*ok = res;
|
|
||||||
|
|
||||||
if (!res)
|
|
||||||
return QString();
|
|
||||||
|
|
||||||
return d.ui->textEdit->text();
|
|
||||||
}
|
|
||||||
|
|
||||||
void AutoExpandableDialog::showEvent(QShowEvent *e) {
|
|
||||||
// Overriding showEvent is required for consistent UI with fixed size under custom DPI
|
|
||||||
// Show dialog
|
|
||||||
QDialog::showEvent(e);
|
|
||||||
// and resize textbox to fit the text
|
|
||||||
|
|
||||||
// NOTE: For some strange reason QFontMetrics gets more accurate
|
|
||||||
// when called from showEvent. Only 6 symbols off instead of 11 symbols off.
|
|
||||||
int textW = ui->textEdit->fontMetrics().width(ui->textEdit->text()) + 4;
|
|
||||||
int screenW = QApplication::desktop()->width() / 4;
|
|
||||||
int wd = textW;
|
|
||||||
|
|
||||||
if (!windowTitle().isEmpty()) {
|
|
||||||
int _w = fontMetrics().width(windowTitle());
|
|
||||||
if (_w > wd)
|
|
||||||
wd = _w;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ui->textLabel->text().isEmpty()) {
|
|
||||||
int _w = ui->textLabel->fontMetrics().width(ui->textLabel->text());
|
|
||||||
if (_w > wd)
|
|
||||||
wd = _w;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Now resize the dialog to fit the contents
|
|
||||||
// Maximum value is whichever is smaller:
|
|
||||||
// 1. screen width / 4
|
|
||||||
// 2. max width of text from either of: label, title, textedit
|
|
||||||
// If the value is less than dialog default size default size is used
|
|
||||||
wd = textW < screenW ? textW : screenW;
|
|
||||||
if (wd > width())
|
|
||||||
resize(width() - ui->horizontalLayout->sizeHint().width() + wd, height());
|
|
||||||
|
|
||||||
// Use old dialog behavior: prohibit resizing the dialog
|
|
||||||
setFixedHeight(height());
|
|
||||||
|
|
||||||
// Update geometry: center on screen
|
|
||||||
QDesktopWidget *desk = QApplication::desktop();
|
|
||||||
MainWindow *wnd = qobject_cast<MainWindow*>(QApplication::activeWindow());
|
|
||||||
QPoint p = QCursor::pos();
|
|
||||||
|
|
||||||
int screenNum = 0;
|
|
||||||
if (wnd == 0)
|
|
||||||
screenNum = desk->screenNumber(p);
|
|
||||||
else if (!wnd->isHidden())
|
|
||||||
screenNum = desk->screenNumber(wnd);
|
|
||||||
else
|
|
||||||
screenNum = desk->screenNumber(p);
|
|
||||||
|
|
||||||
QRect screenRes = desk->screenGeometry(screenNum);
|
|
||||||
|
|
||||||
QRect geom = geometry();
|
|
||||||
geom.moveCenter(QPoint(screenRes.width() / 2, screenRes.height() / 2));
|
|
||||||
setGeometry(geom);
|
|
||||||
}
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* Bittorrent Client using Qt4 and libtorrent.
|
|
||||||
* Copyright (C) 2013 Nick Tiskov
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation; either version 2
|
|
||||||
* of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
|
||||||
* In addition, as a special exception, the copyright holders give permission to
|
|
||||||
* link this program with the OpenSSL project's "OpenSSL" library (or with
|
|
||||||
* modified versions of it that use the same license as the "OpenSSL" library),
|
|
||||||
* and distribute the linked executables. You must obey the GNU General Public
|
|
||||||
* License in all respects for all of the code used other than "OpenSSL". If you
|
|
||||||
* modify file(s), you may extend this exception to your version of the file(s),
|
|
||||||
* but you are not obligated to do so. If you do not wish to do so, delete this
|
|
||||||
* exception statement from your version.
|
|
||||||
*
|
|
||||||
* Contact : daymansmail@gmail.com
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef AUTOEXPANDABLEDIALOG_H
|
|
||||||
#define AUTOEXPANDABLEDIALOG_H
|
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include <QString>
|
|
||||||
#include <QLineEdit>
|
|
||||||
|
|
||||||
namespace Ui {
|
|
||||||
class AutoExpandableDialog;
|
|
||||||
}
|
|
||||||
|
|
||||||
class AutoExpandableDialog : public QDialog {
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
explicit AutoExpandableDialog(QWidget *parent = 0);
|
|
||||||
~AutoExpandableDialog();
|
|
||||||
|
|
||||||
static QString getText(QWidget *parent, const QString& title, const QString& label,
|
|
||||||
QLineEdit::EchoMode mode = QLineEdit::Normal, const QString & text = QString(),
|
|
||||||
bool * ok = 0, Qt::InputMethodHints inputMethodHints = Qt::ImhNone);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void showEvent(QShowEvent *e);
|
|
||||||
|
|
||||||
private:
|
|
||||||
Ui::AutoExpandableDialog *ui;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // AUTOEXPANDABLEDIALOG_H
|
|
||||||