Skip to content

Commit

Permalink
opt: headword dialog ,limited filter number
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jun 24, 2024
1 parent 03adffe commit e992332
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/headwordsmodel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ QString HeadwordListModel::getRow( int row )
return fileSortedList.at( row );
}

void HeadwordListModel::setFilter( QRegularExpression reg )
void HeadwordListModel::setFilter( const QRegularExpression & reg )
{
//if the headword is already finished loaded, do nothing。
if ( finished ) {
Expand Down
2 changes: 1 addition & 1 deletion src/headwordsmodel.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public:
bool isFinish() const;
QVariant data( const QModelIndex & index, int role = Qt::DisplayRole ) const override;
QString getRow( int row );
void setFilter( QRegularExpression );
void setFilter( const QRegularExpression & );
void appendWord( const QString & word );
int getCurrentIndex() const;
bool containWord( const QString & word );
Expand Down

0 comments on commit e992332

Please sign in to comment.