diff options
Diffstat (limited to 'src/frontend/searchdialog/analysis/csearchanalysisitem.h')
-rw-r--r-- | src/frontend/searchdialog/analysis/csearchanalysisitem.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/frontend/searchdialog/analysis/csearchanalysisitem.h b/src/frontend/searchdialog/analysis/csearchanalysisitem.h index 7db96a9..ec2cd03 100644 --- a/src/frontend/searchdialog/analysis/csearchanalysisitem.h +++ b/src/frontend/searchdialog/analysis/csearchanalysisitem.h @@ -1,8 +1,10 @@ /********* * +* In the name of the Father, and of the Son, and of the Holy Spirit. +* * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 1999-2011 by the BibleTime developers. +* Copyright 1999-2014 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ @@ -27,15 +29,21 @@ class CSearchAnalysisItem : public QGraphicsRectItem { const CSwordModuleSearch::Results &results); ~CSearchAnalysisItem(); + /** - * Sets the resultcount of this item + Sets the resultcount of this item. */ - void setCountForModule( const int moduleIndex, const int count); + inline void setCountForModule(const int moduleIndex, const int count) { + m_resultCountArray[moduleIndex] = count; + } /** - * Returns the resultcount of this item + Returns the resultcount of this item. */ - int getCountForModule( const int moduleIndex); + inline int getCountForModule(const int moduleIndex) const { + return m_resultCountArray[moduleIndex]; + } + /** * Does one of the modules contain hits? */ |