Gui: Add option to enable/disable text cursor blinking

This commit is contained in:
marioalexis
2022-01-26 23:24:38 -03:00
committed by wwmayer
parent 1f393de121
commit 21d7fd92c5
3 changed files with 30 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ void DlgGeneralImp::saveSettings()
ui->SubstituteDecimal->onSave();
ui->RecentFiles->onSave();
ui->EnableCursorBlinking->onSave();
ui->SplashScreen->onSave();
ui->PythonWordWrap->onSave();
ui->PythonBlockCursor->onSave();
@@ -174,6 +175,9 @@ void DlgGeneralImp::saveSettings()
hGrp->SetInt("ToolbarIconSize", pixel);
getMainWindow()->setIconSize(QSize(pixel,pixel));
int blinkTime = hGrp->GetBool("EnableCursorBlinking", true) ? -1 : 0;
qApp->setCursorFlashTime(blinkTime);
hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/DockWindows");
bool treeView=false, propertyView=false, comboView=true;
switch(ui->treeMode->currentIndex()) {
@@ -208,6 +212,7 @@ void DlgGeneralImp::loadSettings()
ui->SubstituteDecimal->onRestore();
ui->RecentFiles->onRestore();
ui->EnableCursorBlinking->onRestore();
ui->SplashScreen->onRestore();
ui->PythonWordWrap->onRestore();
ui->PythonBlockCursor->onRestore();