revert changes that caused FileBrowsers to steal focus when opened
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user