merge the two filterItems functions into one;

also fix some formatting + use 'Pattern Editor' instead of 'B&B Editor' in context menu
This commit is contained in:
Colin Wallace
2015-09-07 16:36:25 -07:00
parent 86d0f94882
commit aa77443eb1
2 changed files with 16 additions and 68 deletions

View File

@@ -53,16 +53,13 @@ public:
QWidget * parent, bool dirs_as_items = false, bool recurse = false );
virtual ~FileBrowser();
public slots:
void filterItems( const QString & filter );
void reloadTree( void );
private slots:
void reloadTree( void );
// call with item=NULL to filter the entire tree
bool filterItems( const QString & filter, QTreeWidgetItem * item=NULL );
void giveFocusToFilter();
private:
bool filterItems( QTreeWidgetItem * item, const QString & filter );
virtual void keyPressEvent( QKeyEvent * ke );
void addItems( const QString & path );