mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 16:09:37 -05:00
fixed search
This commit is contained in:
parent
b7a9962400
commit
37b9bdb068
@ -172,9 +172,7 @@ void RsPostedPostsModel::setFilter(const QStringList& strings, uint32_t& count)
|
|||||||
count = mFilteredPosts.size();
|
count = mFilteredPosts.size();
|
||||||
|
|
||||||
mDisplayedStartIndex = 0;
|
mDisplayedStartIndex = 0;
|
||||||
|
mDisplayedNbPosts = std::min(count,DEFAULT_DISPLAYED_NB_POSTS) ;
|
||||||
if(mDisplayedNbPosts > count)
|
|
||||||
mDisplayedNbPosts = count ;
|
|
||||||
|
|
||||||
std::cerr << "After filtering: " << count << " posts remain." << std::endl;
|
std::cerr << "After filtering: " << count << " posts remain." << std::endl;
|
||||||
|
|
||||||
|
@ -157,7 +157,8 @@ public:
|
|||||||
// Helper functions
|
// Helper functions
|
||||||
|
|
||||||
bool getPostData(const QModelIndex& i,RsPostedPost& fmpe) const ;
|
bool getPostData(const QModelIndex& i,RsPostedPost& fmpe) const ;
|
||||||
uint32_t postsCount() const { return mPosts.size() ; }
|
uint32_t totalPostsCount() const { return mPosts.size() ; }
|
||||||
|
uint32_t filteredPostsCount() const { return mFilteredPosts.size() ; }
|
||||||
uint32_t displayedStartPostIndex() const { return mDisplayedStartIndex ; }
|
uint32_t displayedStartPostIndex() const { return mDisplayedStartIndex ; }
|
||||||
void clear() ;
|
void clear() ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user