* fix: random crash when editing

* change: symbol completion option ui
This commit is contained in:
royqh1979 2021-06-21 22:17:37 +08:00
parent fd9b41ac6d
commit 10b7f3064a
2 changed files with 94 additions and 73 deletions

View File

@ -98,7 +98,7 @@ bool SynHighlighter::isIdentChar(const QChar &ch) const
if ((ch>='A') && (ch <= 'Z')) { if ((ch>='A') && (ch <= 'Z')) {
return true; return true;
} }
return false;
} }
void SynHighlighter::addAttribute(PSynHighlighterAttribute attribute) void SynHighlighter::addAttribute(PSynHighlighterAttribute attribute)

View File

@ -14,32 +14,37 @@
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QGroupBox" name="grpCompleSymbols"> <widget class="QGroupBox" name="grpCompleSymbols">
<property name="title"> <property name="title">
<string>Complete Symbols</string> <string>Complete Symbols</string>
</property> </property>
<property name="flat">
<bool>true</bool>
</property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QWidget" name="widget" native="true">
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item> <item>
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="title"> <property name="title">
<string>GroupBox</string> <string>Details</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin"> <property name="leftMargin">
@ -123,6 +128,22 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="1" column="0"> <item row="1" column="0">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">