Version 0.12.1 For Dev-C++ 7 Beta
- fix: error when drag&drop in editors
This commit is contained in:
parent
b956dbbcab
commit
0f3baaac00
3
NEWS.md
3
NEWS.md
|
@ -1,3 +1,6 @@
|
|||
Version 0.12.1 For Dev-C++ 7 Beta
|
||||
- fix: error when drag&drop in editors
|
||||
|
||||
Version 0.12.0 For Dev-C++ 7 Beta
|
||||
- enhancement: enable run/debug/compile when console program finished but pausing.
|
||||
|
||||
|
|
|
@ -653,7 +653,7 @@ bool Project::assignTemplate(const std::shared_ptr<ProjectTemplate> aTemplate, b
|
|||
PTemplateUnit templateUnit = aTemplate->unit(i);
|
||||
QString s;
|
||||
PProjectUnit unit;
|
||||
if (options().useGPP) {
|
||||
if (mOptions.useGPP) {
|
||||
s = templateUnit->CppText;
|
||||
unit = newUnit(mNode, templateUnit->CppName);
|
||||
} else {
|
||||
|
|
|
@ -205,6 +205,8 @@ void SynEdit::setCaretY(int value)
|
|||
|
||||
void SynEdit::setCaretXY(const BufferCoord &value)
|
||||
{
|
||||
setBlockBegin(value);
|
||||
setBlockEnd(value);
|
||||
setCaretXYEx(true,value);
|
||||
}
|
||||
|
||||
|
@ -6184,7 +6186,7 @@ void SynEdit::dragEnterEvent(QDragEnterEvent *event)
|
|||
mDragSelEndSave = blockEnd();
|
||||
BufferCoord coord = displayToBufferPos(pixelsToNearestRowColumn(event->pos().x(),
|
||||
event->pos().y()));
|
||||
setCaretXY(coord);
|
||||
internalSetCaretXY(coord);
|
||||
setBlockBegin(mDragSelBeginSave);
|
||||
setBlockEnd(mDragSelEndSave);
|
||||
showCaret();
|
||||
|
@ -6221,7 +6223,6 @@ void SynEdit::dropEvent(QDropEvent *event)
|
|||
//paste to new position
|
||||
setTopLine(topLine);
|
||||
setLeftChar(leftChar);
|
||||
setCaretXY(coord);
|
||||
setSelText(event->mimeData()->text());
|
||||
//delete old
|
||||
setBlockBegin(mDragSelBeginSave);
|
||||
|
@ -6246,6 +6247,7 @@ void SynEdit::dropEvent(QDropEvent *event)
|
|||
}
|
||||
mUndoList->EndBlock();
|
||||
}
|
||||
|
||||
event->acceptProposedAction();
|
||||
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
#define VERSION_H
|
||||
#include <QObject>
|
||||
|
||||
#define DEVCPP_VERSION "beta.0.11.5"
|
||||
#define DEVCPP_VERSION "beta.0.12.1"
|
||||
|
||||
#endif // VERSION_H
|
||||
|
|
Loading…
Reference in New Issue