diff options
| author | Tannin <devnull@localhost> | 2014-05-04 14:50:01 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-05-04 14:50:01 +0200 |
| commit | 6fb36d6c028d4fe88043c764e42b54df9b06f48b (patch) | |
| tree | 8c23cfc17447d217d91eb170cffa5a6372f003b1 /src/modlistsortproxy.h | |
| parent | ea1f959ad592c1f10c5c60908e01c220aed206a5 (diff) | |
- main window now has a small view displaying log messages
- mod list will now be highlighted when grouping is active is active
- download tooltip now supports bbcode markup in the description
- bbcode translator will now translate some named colors
- algorithm for detection of mod order problems is now more sophisticated
- exposed more functionality to python plugins
- updated to qt 4.8.6 dlls
- bugfix: plugin list wasn't
- bugfix: state changes in mod list wasn't always reported
- bugfix: loot client will now create necessary directory
- bugfix: NCC sometimes used wrong source path for extracting
- bugfix: removed noisy debug message
Diffstat (limited to 'src/modlistsortproxy.h')
| -rw-r--r-- | src/modlistsortproxy.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/modlistsortproxy.h b/src/modlistsortproxy.h index 3e18ea4e..f1b01c7e 100644 --- a/src/modlistsortproxy.h +++ b/src/modlistsortproxy.h @@ -52,8 +52,24 @@ public: **/ void disableAllVisible(); + /** + * @brief tests if a filtere matches for a mod + * @param info mod information + * @param enabled true if the mod is currently active + * @return true if current active filters match for the specified mod + */ bool filterMatchesMod(ModInfo::Ptr info, bool enabled) const; + /** + * @return true if a filter is currently active + */ + bool isFilterActive() const { return m_FilterActive; } + + /** + * @brief tests if the specified index has child nodes + * @param parent the node to test + * @return true if there are child nodes + */ virtual bool hasChildren ( const QModelIndex & parent = QModelIndex() ) const { return rowCount(parent) > 0; } @@ -86,6 +102,8 @@ private: std::bitset<ModList::COL_LASTCOLUMN + 1> m_EnabledColumns; QString m_CurrentFilter; + bool m_FilterActive; + }; #endif // MODLISTSORTPROXY_H |
