|
6 | 6 | <rect> |
7 | 7 | <x>0</x> |
8 | 8 | <y>0</y> |
9 | | - <width>418</width> |
10 | | - <height>447</height> |
| 9 | + <width>538</width> |
| 10 | + <height>535</height> |
11 | 11 | </rect> |
12 | 12 | </property> |
13 | 13 | <property name="sizePolicy"> |
|
453 | 453 | <property name="bottomMargin"> |
454 | 454 | <number>0</number> |
455 | 455 | </property> |
456 | | - <item row="1" column="0"> |
| 456 | + <item row="3" column="0"> |
457 | 457 | <widget class="QLabel" name="label_2"> |
458 | 458 | <property name="sizePolicy"> |
459 | 459 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
|
469 | 469 | </property> |
470 | 470 | </widget> |
471 | 471 | </item> |
472 | | - <item row="1" column="1"> |
| 472 | + <item row="3" column="1"> |
473 | 473 | <widget class="QLabel" name="lblPreview"> |
474 | 474 | <property name="sizePolicy"> |
475 | 475 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> |
|
514 | 514 | </property> |
515 | 515 | </widget> |
516 | 516 | </item> |
517 | | - <item row="0" column="0" colspan="2"> |
| 517 | + <item row="2" column="0" colspan="2"> |
518 | 518 | <widget class="QgsCodeEditorSQL" name="txtExpressionString" native="true"/> |
519 | 519 | </item> |
| 520 | + <item row="1" column="0" colspan="2"> |
| 521 | + <widget class="QgsCodeEditorPython" name="txtPython" native="true"/> |
| 522 | + </item> |
| 523 | + <item row="0" column="0" colspan="2"> |
| 524 | + <widget class="QToolButton" name="customFunctionBotton"> |
| 525 | + <property name="text"> |
| 526 | + <string>Define custom function</string> |
| 527 | + </property> |
| 528 | + <property name="checkable"> |
| 529 | + <bool>true</bool> |
| 530 | + </property> |
| 531 | + <property name="autoRaise"> |
| 532 | + <bool>true</bool> |
| 533 | + </property> |
| 534 | + </widget> |
| 535 | + </item> |
520 | 536 | </layout> |
521 | 537 | </widget> |
522 | 538 | </item> |
|
544 | 560 | <header>qgscodeeditorsql.h</header> |
545 | 561 | <container>1</container> |
546 | 562 | </customwidget> |
| 563 | + <customwidget> |
| 564 | + <class>QgsCodeEditorPython</class> |
| 565 | + <extends>QWidget</extends> |
| 566 | + <header>qgscodeeditorpython.h</header> |
| 567 | + <container>1</container> |
| 568 | + </customwidget> |
547 | 569 | </customwidgets> |
548 | 570 | <resources/> |
549 | | - <connections/> |
| 571 | + <connections> |
| 572 | + <connection> |
| 573 | + <sender>customFunctionBotton</sender> |
| 574 | + <signal>toggled(bool)</signal> |
| 575 | + <receiver>txtPython</receiver> |
| 576 | + <slot>setVisible(bool)</slot> |
| 577 | + <hints> |
| 578 | + <hint type="sourcelabel"> |
| 579 | + <x>74</x> |
| 580 | + <y>468</y> |
| 581 | + </hint> |
| 582 | + <hint type="destinationlabel"> |
| 583 | + <x>116</x> |
| 584 | + <y>485</y> |
| 585 | + </hint> |
| 586 | + </hints> |
| 587 | + </connection> |
| 588 | + </connections> |
550 | 589 | </ui> |
0 commit comments