All pastes #1952756 Raw Edit

general idea of user creation pa

public xml v1 · immutable
#1952756 ·published 2010-10-01 17:44 UTC
rendered paste body
<?xml version="1.0" encoding="UTF-8"?><ui version="4.0"> <class>Form</class> <widget class="QWidget" name="Form">  <property name="geometry">   <rect>    <x>0</x>    <y>0</y>    <width>695</width>    <height>475</height>   </rect>  </property>  <property name="windowTitle">   <string>Form</string>  </property>  <layout class="QVBoxLayout" name="verticalLayout">   <item>    <widget class="QLabel" name="userinfo_heading_label">     <property name="text">      <string>Who are you?</string>     </property>    </widget>   </item>   <item>    <widget class="Line" name="line_5">     <property name="orientation">      <enum>Qt::Horizontal</enum>     </property>    </widget>   </item>   <item>    <widget class="QLabel" name="fullname_label">     <property name="text">      <string>What is your name?</string>     </property>     <property name="wordWrap">      <bool>false</bool>     </property>    </widget>   </item>   <item>    <layout class="QGridLayout" name="_22">     <property name="verticalSpacing">      <number>0</number>     </property>     <property name="margin">      <number>0</number>     </property>     <item row="0" column="3">      <spacer>       <property name="orientation">        <enum>Qt::Horizontal</enum>       </property>       <property name="sizeHint" stdset="0">        <size>         <width>0</width>         <height>20</height>        </size>       </property>      </spacer>     </item>     <item row="0" column="2">      <widget class="QLabel" name="fullname_error_reason">       <property name="sizePolicy">        <sizepolicy hsizetype="Expanding" vsizetype="Preferred">         <horstretch>1</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>200</width>         <height>0</height>        </size>       </property>       <property name="text">        <string/>       </property>      </widget>     </item>     <item row="0" column="1">      <widget class="QLabel" name="fullname_error_image">       <property name="sizePolicy">        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">         <horstretch>0</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>32</width>         <height>32</height>        </size>       </property>       <property name="maximumSize">        <size>         <width>32</width>         <height>32</height>        </size>       </property>       <property name="scaledContents">        <bool>true</bool>       </property>      </widget>     </item>     <item row="0" column="0">      <widget class="QLineEdit" name="fullname">       <property name="minimumSize">        <size>         <width>300</width>         <height>0</height>        </size>       </property>      </widget>     </item>    </layout>   </item>   <item>    <widget class="Line" name="line_7">     <property name="orientation">      <enum>Qt::Horizontal</enum>     </property>    </widget>   </item>   <item>    <widget class="QLabel" name="username_label">     <property name="text">      <string>What name do you want to use to log in?</string>     </property>     <property name="wordWrap">      <bool>false</bool>     </property>    </widget>   </item>   <item>    <layout class="QGridLayout" name="_21">     <property name="verticalSpacing">      <number>0</number>     </property>     <property name="margin">      <number>0</number>     </property>     <item row="0" column="0">      <widget class="QLineEdit" name="username">       <property name="sizePolicy">        <sizepolicy hsizetype="Expanding" vsizetype="Fixed">         <horstretch>0</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>200</width>         <height>0</height>        </size>       </property>      </widget>     </item>     <item row="1" column="0" colspan="4">      <widget class="QLabel" name="username_extra_label">       <property name="styleSheet">        <string>font-weight: normal</string>       </property>       <property name="text">        <string>&lt;small&gt;If more than one person will use this computer, you can set up multiple accounts after installation.&lt;/small&gt;</string>       </property>       <property name="wordWrap">        <bool>true</bool>       </property>      </widget>     </item>     <item row="0" column="1">      <widget class="QLabel" name="username_error_image">       <property name="sizePolicy">        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">         <horstretch>0</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>32</width>         <height>32</height>        </size>       </property>       <property name="maximumSize">        <size>         <width>32</width>         <height>32</height>        </size>       </property>       <property name="scaledContents">        <bool>true</bool>       </property>      </widget>     </item>     <item row="0" column="3">      <spacer>       <property name="orientation">        <enum>Qt::Horizontal</enum>       </property>       <property name="sizeHint" stdset="0">        <size>         <width>0</width>         <height>20</height>        </size>       </property>      </spacer>     </item>     <item row="0" column="2">      <widget class="QLabel" name="username_error_reason">       <property name="sizePolicy">        <sizepolicy hsizetype="Expanding" vsizetype="Preferred">         <horstretch>1</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>200</width>         <height>0</height>        </size>       </property>       <property name="text">        <string/>       </property>       <property name="alignment">        <set>Qt::AlignVCenter</set>       </property>       <property name="wordWrap">        <bool>true</bool>       </property>      </widget>     </item>    </layout>   </item>   <item>    <widget class="Line" name="line_8">     <property name="orientation">      <enum>Qt::Horizontal</enum>     </property>    </widget>   </item>   <item>    <widget class="QLabel" name="password_label">     <property name="text">      <string>Choose a password to keep your account safe.</string>     </property>     <property name="wordWrap">      <bool>false</bool>     </property>    </widget>   </item>   <item>    <widget class="QLabel" name="password_debug_warning_label">     <property name="text">      <string>&lt;strong&gt;You are running in debugging mode. Do not use a valuable password!&lt;/strong&gt;</string>     </property>     <property name="wordWrap">      <bool>true</bool>     </property>    </widget>   </item>   <item>    <layout class="QGridLayout" name="_20">     <property name="verticalSpacing">      <number>0</number>     </property>     <property name="margin">      <number>0</number>     </property>     <item row="0" column="4">      <spacer>       <property name="orientation">        <enum>Qt::Horizontal</enum>       </property>       <property name="sizeHint" stdset="0">        <size>         <width>0</width>         <height>20</height>        </size>       </property>      </spacer>     </item>     <item row="1" column="0" colspan="5">      <widget class="QLabel" name="password_extra_label">       <property name="styleSheet">        <string>font-weight: normal</string>       </property>       <property name="text">        <string>&lt;small&gt;Enter the same password twice, so that it can be checked for typing errors.&lt;/small&gt;</string>       </property>       <property name="wordWrap">        <bool>true</bool>       </property>      </widget>     </item>     <item row="0" column="2">      <widget class="QLabel" name="password_error_image">       <property name="sizePolicy">        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">         <horstretch>0</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>32</width>         <height>32</height>        </size>       </property>       <property name="maximumSize">        <size>         <width>32</width>         <height>32</height>        </size>       </property>       <property name="scaledContents">        <bool>true</bool>       </property>      </widget>     </item>     <item row="0" column="3">      <widget class="QLabel" name="password_error_reason">       <property name="sizePolicy">        <sizepolicy hsizetype="Expanding" vsizetype="Preferred">         <horstretch>1</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>100</width>         <height>0</height>        </size>       </property>       <property name="text">        <string/>       </property>       <property name="alignment">        <set>Qt::AlignVCenter</set>       </property>       <property name="wordWrap">        <bool>true</bool>       </property>      </widget>     </item>     <item row="0" column="1">      <widget class="QLineEdit" name="verified_password">       <property name="sizePolicy">        <sizepolicy hsizetype="Expanding" vsizetype="Fixed">         <horstretch>0</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>200</width>         <height>0</height>        </size>       </property>       <property name="echoMode">        <enum>QLineEdit::Password</enum>       </property>      </widget>     </item>     <item row="0" column="0">      <widget class="QLineEdit" name="password">       <property name="sizePolicy">        <sizepolicy hsizetype="Expanding" vsizetype="Fixed">         <horstretch>0</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>200</width>         <height>0</height>        </size>       </property>       <property name="echoMode">        <enum>QLineEdit::Password</enum>       </property>      </widget>     </item>    </layout>   </item>   <item>    <widget class="Line" name="line_9">     <property name="orientation">      <enum>Qt::Horizontal</enum>     </property>    </widget>   </item>   <item>    <widget class="QLabel" name="hostname_label">     <property name="text">      <string>What is the name of this computer?</string>     </property>     <property name="wordWrap">      <bool>false</bool>     </property>    </widget>   </item>   <item>    <layout class="QGridLayout" name="_23">     <property name="verticalSpacing">      <number>0</number>     </property>     <property name="margin">      <number>0</number>     </property>     <item row="0" column="0">      <widget class="QLineEdit" name="hostname">       <property name="sizePolicy">        <sizepolicy hsizetype="Expanding" vsizetype="Fixed">         <horstretch>0</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>200</width>         <height>0</height>        </size>       </property>      </widget>     </item>     <item row="0" column="3">      <spacer>       <property name="orientation">        <enum>Qt::Horizontal</enum>       </property>       <property name="sizeHint" stdset="0">        <size>         <width>0</width>         <height>20</height>        </size>       </property>      </spacer>     </item>     <item row="1" column="0" colspan="4">      <widget class="QLabel" name="hostname_extra_label">       <property name="styleSheet">        <string>font-weight: normal</string>       </property>       <property name="text">        <string>&lt;small&gt;This name will be used if you make the computer visible to others on a network.&lt;/small&gt;</string>       </property>       <property name="wordWrap">        <bool>false</bool>       </property>      </widget>     </item>     <item row="0" column="1">      <widget class="QLabel" name="hostname_error_image">       <property name="sizePolicy">        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">         <horstretch>0</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>32</width>         <height>32</height>        </size>       </property>       <property name="maximumSize">        <size>         <width>32</width>         <height>32</height>        </size>       </property>       <property name="scaledContents">        <bool>true</bool>       </property>      </widget>     </item>     <item row="0" column="2">      <widget class="QLabel" name="hostname_error_reason">       <property name="sizePolicy">        <sizepolicy hsizetype="Expanding" vsizetype="Preferred">         <horstretch>1</horstretch>         <verstretch>0</verstretch>        </sizepolicy>       </property>       <property name="minimumSize">        <size>         <width>200</width>         <height>0</height>        </size>       </property>       <property name="text">        <string/>       </property>       <property name="alignment">        <set>Qt::AlignVCenter</set>       </property>       <property name="wordWrap">        <bool>true</bool>       </property>      </widget>     </item>    </layout>   </item>   <item>    <widget class="QWidget" name="widget_6" native="true">     <layout class="QGridLayout" name="gridLayout_8">      <property name="margin">       <number>2</number>      </property>      <item row="1" column="0" colspan="2">       <widget class="QRadioButton" name="login_encrypt">        <property name="text">         <string>Require Password and decrypt home to login</string>        </property>        <property name="checked">         <bool>false</bool>        </property>       </widget>      </item>      <item row="0" column="1">       <widget class="QRadioButton" name="login_auto">        <property name="text">         <string>Log in Automatically</string>        </property>        <property name="checked">         <bool>false</bool>        </property>       </widget>      </item>      <item row="0" column="0">       <widget class="QRadioButton" name="login_pass">        <property name="text">         <string>Require my password to log in</string>        </property>        <property name="checked">         <bool>true</bool>        </property>       </widget>      </item>     </layout>    </widget>   </item>   <item>    <spacer name="verticalSpacer">     <property name="orientation">      <enum>Qt::Vertical</enum>     </property>     <property name="sizeHint" stdset="0">      <size>       <width>20</width>       <height>77</height>      </size>     </property>    </spacer>   </item>  </layout> </widget> <tabstops>  <tabstop>fullname</tabstop>  <tabstop>username</tabstop>  <tabstop>password</tabstop>  <tabstop>verified_password</tabstop>  <tabstop>hostname</tabstop>  <tabstop>login_pass</tabstop>  <tabstop>login_auto</tabstop>  <tabstop>login_encrypt</tabstop> </tabstops> <resources/> <connections/></ui>