mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-31 17:04:34 +00:00
- Implemented "Close to systray"
This commit is contained in:
parent
a22afba059
commit
78aef3c3bc
@ -9,6 +9,7 @@
|
|||||||
- FEATURE: Improved the way parameters are passed between qBT instances (socket)
|
- FEATURE: Improved the way parameters are passed between qBT instances (socket)
|
||||||
- FEATURE: User is warned when hard drive becomes full and downloads are paused
|
- FEATURE: User is warned when hard drive becomes full and downloads are paused
|
||||||
- FEATURE: Number of complete/incomplete sources are now displayed in download list for each torrent
|
- FEATURE: Number of complete/incomplete sources are now displayed in download list for each torrent
|
||||||
|
- FEATURE: Implemented close to systray
|
||||||
- BUGFIX: Two torrents can now have the same name although they are different
|
- BUGFIX: Two torrents can now have the same name although they are different
|
||||||
- BUGFIX: Fixed download from url that would fail sometimes
|
- BUGFIX: Fixed download from url that would fail sometimes
|
||||||
- BUGFIX: Save directory was reset to default when filtering files in torrent
|
- BUGFIX: Save directory was reset to default when filtering files in torrent
|
||||||
|
1
TODO
1
TODO
@ -42,5 +42,4 @@
|
|||||||
- UPnP support
|
- UPnP support
|
||||||
|
|
||||||
// In v0.9.0
|
// In v0.9.0
|
||||||
- Implement close to systray
|
|
||||||
- Wait for libtorrent v0.12 official release
|
- Wait for libtorrent v0.12 official release
|
@ -862,6 +862,11 @@ void GUI::showAbout(){
|
|||||||
|
|
||||||
// Called when we close the program
|
// Called when we close the program
|
||||||
void GUI::closeEvent(QCloseEvent *e){
|
void GUI::closeEvent(QCloseEvent *e){
|
||||||
|
if(options->getGoToSysTrayOnExitingWindow() && !this->isHidden()){
|
||||||
|
hide();
|
||||||
|
e->ignore();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(options->getConfirmOnExit()){
|
if(options->getConfirmOnExit()){
|
||||||
if(QMessageBox::question(this,
|
if(QMessageBox::question(this,
|
||||||
tr("Are you sure you want to quit? -- qBittorrent"),
|
tr("Are you sure you want to quit? -- qBittorrent"),
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>506</width>
|
<width>506</width>
|
||||||
<height>491</height>
|
<height>508</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize" >
|
<property name="minimumSize" >
|
||||||
@ -640,6 +640,19 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer>
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" >
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_3" >
|
<widget class="QWidget" name="tab_3" >
|
||||||
@ -1256,6 +1269,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="check_closeToSysTray" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Go to systray when closing main window</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -141,6 +141,7 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||||||
connect(checkAdditionDialog, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
connect(checkAdditionDialog, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(txt_savePath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
connect(txt_savePath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||||
connect(check_goToSysTray, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
connect(check_goToSysTray, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
|
connect(check_closeToSysTray, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(clearFinished_checkBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
connect(clearFinished_checkBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(confirmExit_checkBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
connect(confirmExit_checkBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(preview_program, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
connect(preview_program, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||||
@ -219,6 +220,7 @@ void options_imp::saveOptions(){
|
|||||||
settings.setValue("ConfirmOnExit", getConfirmOnExit());
|
settings.setValue("ConfirmOnExit", getConfirmOnExit());
|
||||||
settings.setValue("ClearFinishedDownloads", getClearFinishedOnExit());
|
settings.setValue("ClearFinishedDownloads", getClearFinishedOnExit());
|
||||||
settings.setValue("GoToSystray", getGoToSysTrayOnMinimizingWindow());
|
settings.setValue("GoToSystray", getGoToSysTrayOnMinimizingWindow());
|
||||||
|
settings.setValue("GoToSystrayOnExit", getGoToSysTrayOnExitingWindow());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
settings.setValue("PreviewProgram", getPreviewProgram());
|
settings.setValue("PreviewProgram", getPreviewProgram());
|
||||||
// End Misc options
|
// End Misc options
|
||||||
@ -394,6 +396,7 @@ void options_imp::loadOptions(){
|
|||||||
confirmExit_checkBox->setChecked(settings.value("ConfirmOnExit", true).toBool());
|
confirmExit_checkBox->setChecked(settings.value("ConfirmOnExit", true).toBool());
|
||||||
clearFinished_checkBox->setChecked(settings.value("ClearFinishedDownloads", true).toBool());
|
clearFinished_checkBox->setChecked(settings.value("ClearFinishedDownloads", true).toBool());
|
||||||
check_goToSysTray->setChecked(settings.value("GoToSystray", true).toBool());
|
check_goToSysTray->setChecked(settings.value("GoToSystray", true).toBool());
|
||||||
|
check_closeToSysTray->setChecked(settings.value("GoToSystrayOnExit", true).toBool());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
preview_program->setText(settings.value("PreviewProgram", QString()).toString());
|
preview_program->setText(settings.value("PreviewProgram", QString()).toString());
|
||||||
// End Misc options
|
// End Misc options
|
||||||
@ -437,6 +440,10 @@ bool options_imp::getGoToSysTrayOnMinimizingWindow() const{
|
|||||||
return check_goToSysTray->isChecked();
|
return check_goToSysTray->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool options_imp::getGoToSysTrayOnExitingWindow() const{
|
||||||
|
return check_closeToSysTray->isChecked();
|
||||||
|
}
|
||||||
|
|
||||||
bool options_imp::getConfirmOnExit() const{
|
bool options_imp::getConfirmOnExit() const{
|
||||||
return confirmExit_checkBox->isChecked();
|
return confirmExit_checkBox->isChecked();
|
||||||
}
|
}
|
||||||
|
@ -71,6 +71,7 @@ class options_imp : public QDialog, private Ui::Dialog{
|
|||||||
QString getSavePath() const;
|
QString getSavePath() const;
|
||||||
bool getClearFinishedOnExit() const;
|
bool getClearFinishedOnExit() const;
|
||||||
bool getGoToSysTrayOnMinimizingWindow() const;
|
bool getGoToSysTrayOnMinimizingWindow() const;
|
||||||
|
bool getGoToSysTrayOnExitingWindow() const;
|
||||||
bool getConfirmOnExit() const;
|
bool getConfirmOnExit() const;
|
||||||
QString getPreviewProgram() const;
|
QString getPreviewProgram() const;
|
||||||
bool getUseOSDAlways() const;
|
bool getUseOSDAlways() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user