diff options
Diffstat (limited to 'examples/sql/sqlbrowser/browserwidget.ui')
-rw-r--r-- | examples/sql/sqlbrowser/browserwidget.ui | 184 |
1 files changed, 113 insertions, 71 deletions
diff --git a/examples/sql/sqlbrowser/browserwidget.ui b/examples/sql/sqlbrowser/browserwidget.ui index 20946f0ede..ff65b1f199 100644 --- a/examples/sql/sqlbrowser/browserwidget.ui +++ b/examples/sql/sqlbrowser/browserwidget.ui @@ -1,10 +1,8 @@ -<ui version="4.0" > - <author></author> - <comment></comment> - <exportmacro></exportmacro> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> <class>Browser</class> - <widget class="QWidget" name="Browser" > - <property name="geometry" > + <widget class="QWidget" name="Browser"> + <property name="geometry"> <rect> <x>0</x> <y>0</y> @@ -12,100 +10,90 @@ <height>515</height> </rect> </property> - <property name="windowTitle" > + <property name="windowTitle"> <string>Qt SQL Browser</string> </property> - <layout class="QVBoxLayout" > - <property name="margin" > - <number>8</number> - </property> - <property name="spacing" > + <layout class="QVBoxLayout"> + <property name="spacing"> <number>6</number> </property> + <property name="margin"> + <number>8</number> + </property> <item> - <widget class="QSplitter" name="splitter_2" > - <property name="sizePolicy" > - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> + <widget class="QSplitter" name="splitter_2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="orientation" > + <property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <widget class="ConnectionWidget" name="connectionWidget" > - <property name="sizePolicy" > - <sizepolicy> - <hsizetype>13</hsizetype> - <vsizetype>7</vsizetype> + <widget class="ConnectionWidget" name="connectionWidget"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Ignored" vsizetype="Expanding"> <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> </widget> - <widget class="QTableView" name="table" > - <property name="sizePolicy" > - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> + <widget class="QTableView" name="table"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <horstretch>2</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="contextMenuPolicy" > + <property name="contextMenuPolicy"> <enum>Qt::ActionsContextMenu</enum> </property> - <property name="selectionBehavior" > + <property name="selectionBehavior"> <enum>QAbstractItemView::SelectRows</enum> </property> </widget> </widget> </item> <item> - <widget class="QGroupBox" name="groupBox" > - <property name="sizePolicy" > - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>3</vsizetype> + <widget class="QGroupBox" name="groupBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="maximumSize" > + <property name="maximumSize"> <size> <width>16777215</width> <height>180</height> </size> </property> - <property name="title" > + <property name="title"> <string>SQL Query</string> </property> - <layout class="QVBoxLayout" > - <property name="margin" > - <number>9</number> - </property> - <property name="spacing" > + <layout class="QVBoxLayout"> + <property name="spacing"> <number>6</number> </property> + <property name="margin"> + <number>9</number> + </property> <item> - <widget class="QTextEdit" name="sqlEdit" > - <property name="sizePolicy" > - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>3</vsizetype> + <widget class="QTextEdit" name="sqlEdit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize" > + <property name="minimumSize"> <size> <width>0</width> <height>18</height> </size> </property> - <property name="baseSize" > + <property name="baseSize"> <size> <width>0</width> <height>120</height> @@ -114,19 +102,19 @@ </widget> </item> <item> - <layout class="QHBoxLayout" > - <property name="margin" > - <number>1</number> - </property> - <property name="spacing" > + <layout class="QHBoxLayout"> + <property name="spacing"> <number>6</number> </property> + <property name="margin"> + <number>1</number> + </property> <item> <spacer> - <property name="orientation" > + <property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <property name="sizeHint" > + <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> @@ -135,15 +123,15 @@ </spacer> </item> <item> - <widget class="QPushButton" name="clearButton" > - <property name="text" > + <widget class="QPushButton" name="clearButton"> + <property name="text"> <string>&Clear</string> </property> </widget> </item> <item> - <widget class="QPushButton" name="submitButton" > - <property name="text" > + <widget class="QPushButton" name="submitButton"> + <property name="text"> <string>&Submit</string> </property> </widget> @@ -154,37 +142,91 @@ </widget> </item> </layout> - <action name="insertRowAction" > - <property name="enabled" > + <action name="insertRowAction"> + <property name="enabled"> <bool>false</bool> </property> - <property name="text" > + <property name="text"> <string>&Insert Row</string> </property> - <property name="statusTip" > + <property name="statusTip"> <string>Inserts a new Row</string> </property> </action> - <action name="deleteRowAction" > - <property name="enabled" > + <action name="deleteRowAction"> + <property name="enabled"> <bool>false</bool> </property> - <property name="text" > + <property name="text"> <string>&Delete Row</string> </property> - <property name="statusTip" > + <property name="statusTip"> <string>Deletes the current Row</string> </property> </action> + <action name="fieldStrategyAction"> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="text"> + <string>Submit on &Field Change</string> + </property> + <property name="toolTip"> + <string>Commit on Field Change</string> + </property> + </action> + <action name="rowStrategyAction"> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="text"> + <string>Submit on &Row Change</string> + </property> + <property name="toolTip"> + <string>Commit on Row Change</string> + </property> + </action> + <action name="manualStrategyAction"> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="text"> + <string>Submit &Manually</string> + </property> + <property name="toolTip"> + <string>Commit Manually</string> + </property> + </action> + <action name="submitAction"> + <property name="text"> + <string>&Submit All</string> + </property> + <property name="toolTip"> + <string>Submit Changes</string> + </property> + </action> + <action name="revertAction"> + <property name="text"> + <string>&Revert All</string> + </property> + <property name="toolTip"> + <string>Revert</string> + </property> + </action> + <action name="selectAction"> + <property name="text"> + <string>S&elect</string> + </property> + <property name="toolTip"> + <string>Refresh Data from Database</string> + </property> + </action> </widget> - <pixmapfunction></pixmapfunction> <customwidgets> <customwidget> <class>ConnectionWidget</class> <extends>QTreeView</extends> <header>connectionwidget.h</header> - <container>0</container> - <pixmap></pixmap> </customwidget> </customwidgets> <tabstops> |