diff options
author | Camila San <hello@camila.codes> | 2018-02-02 18:01:53 +0300 |
---|---|---|
committer | Camila San <hello@camila.codes> | 2018-02-02 18:01:53 +0300 |
commit | 254501781954cd0e091bc7d606754da6d46903c9 (patch) | |
tree | f98d2463a8a59aff6d314d774f6830580105b769 /src/gui/ignorelisteditor.h | |
parent | 73b75404683b1296766d767f3a6304e58ffac3ee (diff) |
Refactores code.
- Renames function from populateTableReadOnlyValues to setupTableReadOnlyItems.
- Use a const to define the number of read only rows.
- Removes enable/disable remove all button checks from where it was not
needed.
Signed-off-by: Camila San <hello@camila.codes>
Diffstat (limited to 'src/gui/ignorelisteditor.h')
-rw-r--r-- | src/gui/ignorelisteditor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ignorelisteditor.h b/src/gui/ignorelisteditor.h index 9310ff50f..34b0fcd9a 100644 --- a/src/gui/ignorelisteditor.h +++ b/src/gui/ignorelisteditor.h @@ -50,7 +50,7 @@ private slots: private: void readIgnoreFile(const QString &file, bool readOnly); - void populateTableReadOnlyValues(); + void setupTableReadOnlyItems(); int addPattern(const QString &pattern, bool deletable, bool readOnly); QString readOnlyTooltip; Ui::IgnoreListEditor *ui; |