Skip to content
Snippets Groups Projects

Implement file search

Merged Kien Le requested to merge feature-#10-search_folder_list into master
1 unresolved thread

Clear found files list on clear button pressed

Make found files header bold

Enable clearing of search box with button click

Add tool tip to search box

Filter data sets on pressing Enter

Add function to filter directories

Closes #10 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
389 left_layout.addLayout(search_grid)
393 search_layout = QHBoxLayout()
394 # search_layout.setSpacing(6)
395 left_layout.addLayout(search_layout)
390 396 self.search_line_edit = QLineEdit(self.central_widget)
391 397 self.search_line_edit.setPlaceholderText('Search...')
392 search_grid.addWidget(self.search_line_edit, 0, 0, 1, 3)
398 self.search_line_edit.setToolTip('Filter the list of files based on '
399 'the content.')
400 search_layout.addWidget(self.search_line_edit)
401 search_layout.addSpacing(2)
393 402 self.clear_button = QPushButton('Clear', self.central_widget)
394 self.clear_button.setFixedWidth(65)
395 search_grid.addWidget(self.clear_button, 0, 3, 1, 1)
403 self.clear_button.setFixedWidth(70)
404 search_layout.addWidget(self.clear_button)
  • Maintainer

    The result of search and clear look good.

    Please add document for this.

    You may want to apply my suggestion to have a better look. But it isn't very important for this phase of coding.

    Edited by Lan Dam
  • Kien Le added 7 commits

    added 7 commits

    • 9591903a - Move clear button to search line edit
    • fcb0962e - Get clear search button from search line edit
    • 121f2620 - Clear search on clear button pressed
    • d7e9340d - Filter folder list on search line edit changed
    • e2e0d780 - Remove search button
    • 15251020 - Update variable name
    • 12380a0a - Remove unused code

    Compare with previous version

  • Kien Le added 1 commit

    added 1 commit

    • 636b5b43 - Re-filter file list after from data card disabled

    Compare with previous version

  • Maintainer

    @kienle: Look great, work great. But you haven't had the document for this. And also can you move the search box to the top of file list, I think that way is more common.

    Once you add document for this, in Help Documents Dialog, please click 2nd button, Recreate Table of Contents to update the table of Contents with new documents. Thank you.

    Edited by Lan Dam
  • Kien Le added 5 commits

    added 5 commits

    Compare with previous version

  • Kien Le removed review request for @ldam

    removed review request for @ldam

  • Kien Le requested review from @ldam

    requested review from @ldam

  • Lan Dam approved this merge request

    approved this merge request

  • Kien Le added 22 commits

    added 22 commits

    Compare with previous version

  • merged

  • Kien Le mentioned in commit a35496f6

    mentioned in commit a35496f6

  • Please register or sign in to reply
    Loading