mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-01-03 17:45:47 -05:00
Merge pull request #3096 from defnax/clearupload-stats
Some checks failed
macOS Build / build (push) Has been cancelled
MINGW64 Qt6 Build / build (push) Has been cancelled
MINGW64 Qt5 Build / build (push) Has been cancelled
UCRT64 Qt5 Build / build (push) Has been cancelled
Ubuntu Qt 5 C/C++ CI / build (push) Has been cancelled
Ubuntu Qt 6 C/C++ CI / build (push) Has been cancelled
Some checks failed
macOS Build / build (push) Has been cancelled
MINGW64 Qt6 Build / build (push) Has been cancelled
MINGW64 Qt5 Build / build (push) Has been cancelled
UCRT64 Qt5 Build / build (push) Has been cancelled
Ubuntu Qt 5 C/C++ CI / build (push) Has been cancelled
Ubuntu Qt 6 C/C++ CI / build (push) Has been cancelled
Added clear upload stats Button
This commit is contained in:
commit
a17699e166
3 changed files with 24 additions and 11 deletions
|
|
@ -64,6 +64,7 @@ TransferPage::TransferPage(QWidget * parent, Qt::WindowFlags flags)
|
|||
QObject::connect(ui.editShareButton, SIGNAL(clicked()), this, SLOT(editDirectories()));
|
||||
QObject::connect(ui.autoCheckDirectories_CB, SIGNAL(clicked(bool)), this, SLOT(toggleAutoCheckDirectories(bool)));
|
||||
QObject::connect(ui.minimumFontSize_SB, SIGNAL(valueChanged(int)), this, SLOT(updateFontSize())) ;
|
||||
QObject::connect(ui.clearuploadStatsButton, SIGNAL(clicked( bool ) ), this , SLOT(clearUploadStatistics() ) );
|
||||
|
||||
QObject::connect(ui.autoCheckDirectories_CB, SIGNAL(toggled(bool)), this,SLOT(updateAutoCheckDirectories())) ;
|
||||
QObject::connect(ui.autoCheckDirectoriesDelay_SB,SIGNAL(valueChanged(int)),this,SLOT(updateAutoScanDirectoriesPeriod())) ;
|
||||
|
|
@ -331,6 +332,11 @@ void TransferPage::updateFontSize()
|
|||
Settings->endGroup();
|
||||
}
|
||||
|
||||
void TransferPage::clearUploadStatistics()
|
||||
{
|
||||
rsFiles->clearUploadStats();
|
||||
}
|
||||
|
||||
void TransferPage::updateAutoCheckDirectories() { rsFiles->setWatchEnabled(ui.autoCheckDirectories_CB->isChecked()) ; }
|
||||
void TransferPage::updateAutoScanDirectoriesPeriod() { rsFiles->setWatchPeriod(ui.autoCheckDirectoriesDelay_SB->value()); }
|
||||
void TransferPage::updateShareDownloadDirectory() { rsFiles->shareDownloadDirectory(ui.shareDownloadDirectoryCB->isChecked());}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class TransferPage: public ConfigPage
|
|||
void toggleAutoCheckDirectories(bool);
|
||||
void toggleTrustFriendNodesWithBannedFiles(bool);
|
||||
void updateFontSize();
|
||||
|
||||
void clearUploadStatistics();
|
||||
void updateAutoCheckDirectories() ;
|
||||
void updateAutoScanDirectoriesPeriod() ;
|
||||
void updateShareDownloadDirectory() ;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>701</width>
|
||||
<height>638</height>
|
||||
<width>562</width>
|
||||
<height>579</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
|
|
@ -26,15 +26,22 @@
|
|||
<property name="title">
|
||||
<string>Shared Directories</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="sharedGBoxVLayout">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="sharedGBoxVLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QPushButton" name="editShareButton">
|
||||
<property name="text">
|
||||
<string>Configure shared directories</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="clearuploadStatsButton">
|
||||
<property name="text">
|
||||
<string>Clear upload statistics</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="shareDownloadDirectoryCB">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
|
|
@ -47,7 +54,7 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item row="3" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="autoCheckDirectoriesHLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="autoCheckDirectories_CB">
|
||||
|
|
@ -86,7 +93,7 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<item row="4" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="followSymLinksHLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="followSymLinks_CB">
|
||||
|
|
@ -103,7 +110,7 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<item row="5" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="ignoreDuplicatesHLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="ignoreDuplicates_CB">
|
||||
|
|
@ -134,7 +141,7 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<item row="6" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="suffixesIgnoreListHLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="suffixesIgnoreList_CB">
|
||||
|
|
@ -152,7 +159,7 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<item row="7" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="prefixesIgnoreListHLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="prefixesIgnoreList_CB">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue