mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 19:41:19 -06:00
Add option for word wrapping in Edit Database Cell
A new option, in the toolbar of the Edit Database Cell, is added for setting word wrapping for the text editor modes. It is now independent of the SQL preference. The configuration reading the editor/wrap_lines setting is moved to the particular SQL editor class. Added icon from the Silk icon set. See issue #1796
This commit is contained in:
@@ -115,6 +115,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolBar" name="editCellToolbar">
|
||||
<addaction name="actionWordWrap"/>
|
||||
<addaction name="actionIndent"/>
|
||||
<addaction name="actionImport"/>
|
||||
<addaction name="actionExport"/>
|
||||
@@ -150,8 +151,8 @@ Errors are indicated with a red squiggle underline.</string>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>598</width>
|
||||
<height>265</height>
|
||||
<width>85</width>
|
||||
<height>35</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
@@ -359,6 +360,24 @@ Errors are indicated with a red squiggle underline.</string>
|
||||
<string>Erases the contents of the cell</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionWordWrap">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="icons/icons.qrc">
|
||||
<normaloff>:/icons/word_wrap</normaloff>:/icons/word_wrap</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Word Wrap</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Wrap lines on word boundaries</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>comboMode</tabstop>
|
||||
@@ -529,6 +548,22 @@ Errors are indicated with a red squiggle underline.</string>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>actionWordWrap</sender>
|
||||
<signal>toggled(bool)</signal>
|
||||
<receiver>EditDialog</receiver>
|
||||
<slot>setWordWrapping(bool)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>308</x>
|
||||
<y>190</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
<slots>
|
||||
<slot>importData()</slot>
|
||||
|
||||
Reference in New Issue
Block a user