Commit b6efc9c1 authored by Edric Milaret's avatar Edric Milaret Committed by gerrit2

settings: fix for hostname and username line edit size

- The checkbox for Ring account have a large text in french
 and cannot be wrapped in QCheckbox
- Also suppress the username being displayed twice

Issue: #80646
Issue: #80644
Change-Id: I22f8630e3a19ed5cce4910c9ee265543e27da746
parent fb5fc5c5
...@@ -307,12 +307,6 @@ AccountDetails::save() { ...@@ -307,12 +307,6 @@ AccountDetails::save() {
codecModel_->performAction(CodecModel::EditAction::SAVE); codecModel_->performAction(CodecModel::EditAction::SAVE);
} }
void
AccountDetails::on_usernameEdit_editingFinished()
{
currentAccount_->setUsername(ui->usernameEdit->text());
}
void void
AccountDetails::on_tabWidget_currentChanged(int index) AccountDetails::on_tabWidget_currentChanged(int index)
{ {
......
...@@ -55,7 +55,6 @@ private slots: ...@@ -55,7 +55,6 @@ private slots:
void on_downVideoButton_clicked(); void on_downVideoButton_clicked();
void on_audioCodecView_itemSelectionChanged(); void on_audioCodecView_itemSelectionChanged();
void on_videoCodecView_itemSelectionChanged(); void on_videoCodecView_itemSelectionChanged();
void on_usernameEdit_editingFinished();
void on_tabWidget_currentChanged(int index); void on_tabWidget_currentChanged(int index);
private slots: private slots:
......
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>733</width> <width>746</width>
<height>667</height> <height>645</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_12"> <layout class="QVBoxLayout" name="verticalLayout_12">
...@@ -95,13 +95,6 @@ ...@@ -95,13 +95,6 @@
<property name="verticalSpacing"> <property name="verticalSpacing">
<number>10</number> <number>10</number>
</property> </property>
<item row="1" column="0">
<widget class="QLabel" name="typeLabel">
<property name="text">
<string>Type</string>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="aliasLabel"> <widget class="QLabel" name="aliasLabel">
<property name="text"> <property name="text">
...@@ -122,26 +115,10 @@ ...@@ -122,26 +115,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="1" column="0">
<widget class="QLabel" name="hashLabel"> <widget class="QLabel" name="typeLabel">
<property name="text"> <property name="text">
<string>Hash</string> <string>Type</string>
</property>
<property name="buddy">
<cstring>lrcfg_username</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="lrcfg_username">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="readOnly">
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -163,7 +140,7 @@ ...@@ -163,7 +140,7 @@
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,0,0"> <layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,0,0,0,0,0,0">
<property name="spacing"> <property name="spacing">
<number>5</number> <number>5</number>
</property> </property>
...@@ -196,26 +173,6 @@ ...@@ -196,26 +173,6 @@
</property> </property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="hostnameLabel"> <widget class="QLabel" name="hostnameLabel">
<property name="text">
<string>Hostname</string>
</property>
<property name="buddy">
<cstring>lrcfg_hostname</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lrcfg_hostname">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="usernameLabel">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
...@@ -223,15 +180,15 @@ ...@@ -223,15 +180,15 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string>Username</string> <string>Hostname</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>usernameEdit</cstring> <cstring>lrcfg_hostname</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="0" column="1">
<widget class="QLineEdit" name="usernameEdit"> <widget class="QLineEdit" name="lrcfg_hostname">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
...@@ -385,45 +342,71 @@ ...@@ -385,45 +342,71 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="9" column="0"> <item row="1" column="0">
<widget class="QCheckBox" name="lrcfg_allowIncomingFromUnknown"> <widget class="QLabel" name="usernameLabel">
<property name="text"> <property name="sizePolicy">
<string>Allow Call From Unknown</string> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
</widget>
</item>
<item row="11" column="0">
<widget class="QCheckBox" name="lrcfg_allowIncomingFromContact">
<property name="text"> <property name="text">
<string>Allow Call From Contact</string> <string>Username</string>
</property> </property>
</widget> <property name="buddy">
</item> <cstring>lrcfg_username</cstring>
<item row="10" column="0">
<widget class="QCheckBox" name="lrcfg_allowIncomingFromHistory">
<property name="text">
<string>Allow Call From History</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0"> <item row="1" column="1">
<widget class="QLabel" name="label_27"> <widget class="QLineEdit" name="lrcfg_username">
<property name="font"> <property name="sizePolicy">
<font> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<weight>75</weight> <horstretch>0</horstretch>
<bold>true</bold> <verstretch>0</verstretch>
</font> </sizepolicy>
</property>
<property name="text">
<string>Ring Account Settings</string>
</property>
<property name="buddy">
<cstring>lrcfg_allowIncomingFromUnknown</cstring>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QLabel" name="label_27">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Ring Account Settings</string>
</property>
<property name="buddy">
<cstring>lrcfg_allowIncomingFromUnknown</cstring>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="lrcfg_allowIncomingFromUnknown">
<property name="text">
<string>Allow Call From Unknown</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="lrcfg_allowIncomingFromHistory">
<property name="text">
<string>Allow Call From History</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="lrcfg_allowIncomingFromContact">
<property name="text">
<string>Allow Call From Contact</string>
</property>
</widget>
</item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
...@@ -1921,7 +1904,7 @@ ...@@ -1921,7 +1904,7 @@
</connection> </connection>
</connections> </connections>
<buttongroups> <buttongroups>
<buttongroup name="publishGroup"/>
<buttongroup name="dtmfGroup"/> <buttongroup name="dtmfGroup"/>
<buttongroup name="publishGroup"/>
</buttongroups> </buttongroups>
</ui> </ui>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment