Changeset 10784 in vbox
- Timestamp:
- Jul 21, 2008 3:04:35 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGLSettingsLanguage.cpp
r10212 r10784 193 193 this, SLOT (mTwLanguageChanged (QTreeWidgetItem *, QTreeWidgetItem *))); 194 194 195 mTxName->setMinimumHeight (fontMetrics().height() * 4); 195 196 /* Applying language settings */ 196 197 retranslateUi(); … … 295 296 bool enabled = !aCurItem->text (1).isNull(); 296 297 297 mLbName->setEnabled (enabled); 298 mLbAuthor->setEnabled (enabled); 299 mTxName->setText (aCurItem->text (2)); 300 mTxAuthor->setText (aCurItem->text (3)); 298 mTxName->setEnabled (enabled); 299 mTxName->setText (QString ("<table>" 300 "<tr><td>%1</td><td>%2</td></tr>" 301 "<tr><td>%3</td><td>%4</td></tr>" 302 "</table>") 303 .arg (tr ("Language:")) 304 .arg (aCurItem->text (2)) 305 .arg (tr ("Author:")) 306 .arg (aCurItem->text (3))); 301 307 302 308 mLanguageChanged = true; -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGLSettingsLanguage.ui
r10749 r10784 24 24 <y>0</y> 25 25 <width>346</width> 26 <height> 342</height>26 <height>246</height> 27 27 </rect> 28 28 </property> … … 73 73 <widget class="QITreeWidget" name="mTwLanguage" > 74 74 <property name="sizePolicy" > 75 <sizepolicy vsizetype=" Expanding" hsizetype="Fixed" >75 <sizepolicy vsizetype="Fixed" hsizetype="Fixed" > 76 76 <horstretch>0</horstretch> 77 77 <verstretch>0</verstretch> … … 113 113 </item> 114 114 <item row="2" column="2" > 115 <layout class="QGridLayout" > 116 <item row="0" column="0" > 117 <widget class="QLabel" name="mLbName" > 118 <property name="sizePolicy" > 119 <sizepolicy vsizetype="Preferred" hsizetype="Fixed" > 120 <horstretch>0</horstretch> 121 <verstretch>0</verstretch> 122 </sizepolicy> 123 </property> 124 <property name="text" > 125 <string>Language:</string> 126 </property> 127 <property name="alignment" > 128 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 129 </property> 130 </widget> 131 </item> 132 <item row="0" column="1" > 133 <widget class="QLabel" name="mTxName" > 134 <property name="sizePolicy" > 135 <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" > 136 <horstretch>0</horstretch> 137 <verstretch>0</verstretch> 138 </sizepolicy> 139 </property> 140 <property name="minimumSize" > 141 <size> 142 <width>0</width> 143 <height>32</height> 144 </size> 145 </property> 146 <property name="alignment" > 147 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 148 </property> 149 <property name="wordWrap" > 150 <bool>true</bool> 151 </property> 152 </widget> 153 </item> 154 <item row="1" column="0" > 155 <widget class="QLabel" name="mLbAuthor" > 156 <property name="sizePolicy" > 157 <sizepolicy vsizetype="Preferred" hsizetype="Fixed" > 158 <horstretch>0</horstretch> 159 <verstretch>0</verstretch> 160 </sizepolicy> 161 </property> 162 <property name="text" > 163 <string>Author(s):</string> 164 </property> 165 <property name="alignment" > 166 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 167 </property> 168 </widget> 169 </item> 170 <item row="1" column="1" > 171 <widget class="QLabel" name="mTxAuthor" > 172 <property name="sizePolicy" > 173 <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" > 174 <horstretch>0</horstretch> 175 <verstretch>0</verstretch> 176 </sizepolicy> 177 </property> 178 <property name="minimumSize" > 179 <size> 180 <width>0</width> 181 <height>48</height> 182 </size> 183 </property> 184 <property name="alignment" > 185 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 186 </property> 187 <property name="wordWrap" > 188 <bool>true</bool> 189 </property> 190 </widget> 191 </item> 192 </layout> 115 <widget class="QLabel" name="mTxName" > 116 <property name="sizePolicy" > 117 <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > 118 <horstretch>0</horstretch> 119 <verstretch>0</verstretch> 120 </sizepolicy> 121 </property> 122 <property name="alignment" > 123 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 124 </property> 125 <property name="wordWrap" > 126 <bool>true</bool> 127 </property> 128 </widget> 193 129 </item> 194 130 <item row="3" column="2" > … … 196 132 <property name="orientation" > 197 133 <enum>Qt::Vertical</enum> 134 </property> 135 <property name="sizeHint" > 136 <size> 137 <width>20</width> 138 <height>40</height> 139 </size> 198 140 </property> 199 141 </spacer>
Note:
See TracChangeset
for help on using the changeset viewer.