revert changes that caused FileBrowsers to steal focus when opened

This commit is contained in:
Colin Wallace
2015-04-29 02:06:44 +00:00
parent fe3ca6aa76
commit c8a0d51a43
3 changed files with 0 additions and 11 deletions

View File

@@ -64,7 +64,6 @@ private slots:
private:
bool filterItems( QTreeWidgetItem * item, const QString & filter );
virtual void keyPressEvent( QKeyEvent * ke );
void focusInEvent(QFocusEvent * event);
void addItems( const QString & path );

View File

@@ -268,12 +268,6 @@ void FileBrowser::giveFocusToFilter()
}
}
void FileBrowser::focusInEvent(QFocusEvent * event)
{
// when the FileBrowser is opened, direct focus to the filter for quick filtering
giveFocusToFilter();
}
void FileBrowser::addItems(const QString & path )
{

View File

@@ -158,10 +158,6 @@ void SideBar::toggleButton( QAbstractButton * button )
activeWidget->setVisible( button->isChecked() );
toolButton->setToolButtonStyle( button->isChecked() ?
Qt::ToolButtonTextBesideIcon : Qt::ToolButtonIconOnly );
if ( button->isChecked() )
{
activeWidget->setFocus();
}
}
}