##// END OF EJS Templates
Adds a close button to a zone widget + calls close() method when clicked
Adds a close button to a zone widget + calls close() method when clicked

File last commit:

r265:5c7b5f349cad
r265:5c7b5f349cad
Show More
VisualizationZoneWidget.ui
86 lines | 2.3 KiB | text/plain | TextLexer
/ gui / ui / Visualization / VisualizationZoneWidget.ui
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>VisualizationZoneWidget</class>
<widget class="QWidget" name="VisualizationZoneWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QWidget" name="infobar" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<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>
<widget class="QLabel" name="zoneNameLabel">
<property name="styleSheet">
<string notr="true">color: rgb(127, 127, 127);
</string>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="closeButton">
<property name="styleSheet">
<string notr="true">background-color: transparent;</string>
</property>
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="visualizationZoneFrame">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="lineWidth">
<number>1</number>
</property>
<layout class="QVBoxLayout" name="verticalLayout"/>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>