implements: Delete log files with the Del button of the keyboard (#122)
This commit is contained in:
@@ -1465,3 +1465,12 @@ void settingsDialogImpl::resetSettings()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void settingsDialogImpl::keyPressEvent ( QKeyEvent * event )
|
||||
{
|
||||
if (event->key() == Qt::Key_Delete ) { /*Delete*/
|
||||
if(treeWidget_logFiles->hasFocus()) {
|
||||
pushButton_deleteLog->click();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@ public slots:
|
||||
void saveLogFileAs();
|
||||
void showLogFilePreview();
|
||||
void resetSettings();
|
||||
void keyPressEvent ( QKeyEvent * event );
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user