- fix: The Enter key in the numpad doesn't work
- fix: The compiled executable not fully write to the disk before run it - fix: settings object not correctly released when exit
This commit is contained in:
parent
785f4769cd
commit
c58ddf7073
3
NEWS.md
3
NEWS.md
|
@ -1,5 +1,8 @@
|
|||
Version 0.6.1
|
||||
- fix: editor deadlock
|
||||
- fix: The Enter key in the numpad doesn't work
|
||||
- fix: The compiled executable not fully write to the disk before run it
|
||||
- fix: settings object not correctly released when exit
|
||||
|
||||
Version 0.6.0
|
||||
- fix: old data not displayed when editing code snippets
|
||||
|
|
|
@ -497,6 +497,7 @@ void Editor::keyPressEvent(QKeyEvent *event)
|
|||
|
||||
switch (event->key()) {
|
||||
case Qt::Key_Return:
|
||||
case Qt::Key_Enter:
|
||||
mLastIdCharPressed = 0;
|
||||
if (mTabStopBegin>=0) { // editing user code template
|
||||
handled = true;
|
||||
|
@ -2352,6 +2353,7 @@ bool Editor::onCompletionKeyPressed(QKeyEvent *event)
|
|||
mCompletionPopup->hide();
|
||||
return true;
|
||||
case Qt::Key_Return:
|
||||
case Qt::Key_Enter:
|
||||
case Qt::Key_Tab:
|
||||
completionInsert(pSettings->codeCompletion().appendFunc());
|
||||
return true;
|
||||
|
@ -2403,6 +2405,7 @@ bool Editor::onHeaderCompletionKeyPressed(QKeyEvent *event)
|
|||
mHeaderCompletionPopup->hide();
|
||||
return true;
|
||||
case Qt::Key_Return:
|
||||
case Qt::Key_Enter:
|
||||
case Qt::Key_Tab:
|
||||
headerCompletionInsert();
|
||||
mHeaderCompletionPopup->hide();
|
||||
|
|
|
@ -139,10 +139,11 @@ int main(int argc, char *argv[])
|
|||
app.installNativeEventFilter(&filter);
|
||||
int retCode = app.exec();
|
||||
QString configDir = pSettings->dirs().config();
|
||||
delete pSettings;
|
||||
// save settings
|
||||
// settings->compilerSets().saveSets();
|
||||
if (mainWindow.shouldRemoveAllSettings()) {
|
||||
settings.release();
|
||||
delete pSettings;
|
||||
QDir dir(configDir);
|
||||
dir.removeRecursively();
|
||||
}
|
||||
|
|
|
@ -2767,6 +2767,7 @@ void MainWindow::onCompileFinished()
|
|||
|
||||
//run succession task if there aren't any errors
|
||||
if (mCompileSuccessionTask && mCompilerManager->compileErrorCount()==0) {
|
||||
QThread::msleep(500); // wait for exec file writed to disk;
|
||||
switch (mCompileSuccessionTask->type) {
|
||||
case MainWindow::CompileSuccessionTaskType::Run:
|
||||
runExecutable(mCompileSuccessionTask->filename);
|
||||
|
|
|
@ -203,6 +203,8 @@ void SynEditKeyStrokes::resetDefaults()
|
|||
add(SynEditorCommand::ecRedo, Qt::Key_Backspace, Qt::AltModifier|Qt::ShiftModifier);
|
||||
add(SynEditorCommand::ecLineBreak, Qt::Key_Return, Qt::NoModifier);
|
||||
add(SynEditorCommand::ecLineBreak, Qt::Key_Return, Qt::ShiftModifier);
|
||||
add(SynEditorCommand::ecLineBreak, Qt::Key_Enter, Qt::KeypadModifier);
|
||||
add(SynEditorCommand::ecLineBreak, Qt::Key_Enter, Qt::KeypadModifier|Qt::ShiftModifier);
|
||||
add(SynEditorCommand::ecTab, Qt::Key_Tab, Qt::NoModifier);
|
||||
add(SynEditorCommand::ecShiftTab, Qt::Key_Backtab, Qt::ShiftModifier);
|
||||
add(SynEditorCommand::ecShiftTab, Qt::Key_Tab, Qt::ShiftModifier);
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent)
|
||||
{
|
||||
mLastKey = 0;
|
||||
mLastKeyModifiers = Qt::NoModifier;
|
||||
mModified = false;
|
||||
mPaintLock = 0;
|
||||
mPainterLock = 0;
|
||||
|
|
|
@ -554,6 +554,7 @@ void QConsole::keyPressEvent(QKeyEvent *event)
|
|||
{
|
||||
switch(event->key()) {
|
||||
case Qt::Key_Return:
|
||||
case Qt::Key_Enter:
|
||||
event->accept();
|
||||
if (mReadonly)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue