Commit e7d44058 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

settingswidget: ui high dpi adaptation

Change-Id: Ie219827971f7ee622a882e56891d2e848e85aff9
parent 3a812d72
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1146</width> <width>884</width>
<height>883</height> <height>590</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
...@@ -50,14 +50,14 @@ ...@@ -50,14 +50,14 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QWidget" name="leftSettingsWidget" native="true"> <widget class="QWidget" name="leftSettingsWidget" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>380</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
<item row="0" column="1"> <item row="0" column="1">
<widget class="QWidget" name="rightSettingsWidget" native="true"> <widget class="QWidget" name="rightSettingsWidget" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -358,14 +358,14 @@ ...@@ -358,14 +358,14 @@
<item> <item>
<widget class="QStackedWidget" name="stackedWidget"> <widget class="QStackedWidget" name="stackedWidget">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>500</width> <width>0</width>
<height>590</height> <height>590</height>
</size> </size>
</property> </property>
...@@ -376,11 +376,11 @@ ...@@ -376,11 +376,11 @@
</size> </size>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>3</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="generalSettings"> <widget class="QWidget" name="generalSettings">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -1328,7 +1328,7 @@ ...@@ -1328,7 +1328,7 @@
</widget> </widget>
<widget class="QWidget" name="currentAccountSettingsScrollWidget"> <widget class="QWidget" name="currentAccountSettingsScrollWidget">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -1392,7 +1392,7 @@ ...@@ -1392,7 +1392,7 @@
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>48</width> <width>30</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
...@@ -1462,9 +1462,9 @@ ...@@ -1462,9 +1462,9 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>-360</y>
<width>706</width> <width>687</width>
<height>1398</height> <height>1387</height>
</rect> </rect>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
...@@ -1504,7 +1504,7 @@ ...@@ -1504,7 +1504,7 @@
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>48</width> <width>30</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
...@@ -2645,7 +2645,7 @@ ...@@ -2645,7 +2645,7 @@
</widget> </widget>
<widget class="QWidget" name="currentSIPAccountSettingsScrollWidget"> <widget class="QWidget" name="currentSIPAccountSettingsScrollWidget">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -2787,7 +2787,7 @@ ...@@ -2787,7 +2787,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>683</width> <width>683</width>
<height>874</height> <height>864</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayoutsip_12" stretch="0"> <layout class="QHBoxLayout" name="horizontalLayoutsip_12" stretch="0">
...@@ -3476,7 +3476,7 @@ ...@@ -3476,7 +3476,7 @@
</widget> </widget>
<widget class="QWidget" name="avSettings"> <widget class="QWidget" name="avSettings">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -3762,16 +3762,16 @@ ...@@ -3762,16 +3762,16 @@
<height>5</height> <height>5</height>
</size> </size>
</property> </property>
<property name="maximum" stdset="0"> <property name="maximum">
<number>100</number> <number>100</number>
</property> </property>
<property name="value" stdset="0"> <property name="value">
<number>-1</number> <number>-1</number>
</property> </property>
<property name="textVisible" stdset="0"> <property name="textVisible">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="format" stdset="0"> <property name="format">
<string>%p%</string> <string>%p%</string>
</property> </property>
</widget> </widget>
......
...@@ -154,12 +154,15 @@ RingContactLineEdit:focus{ ...@@ -154,12 +154,15 @@ RingContactLineEdit:focus{
height: 30px; height: 30px;
} }
QScrollBar:vertical, QScrollBar:horizontal{ QScrollBar:vertical {
background:white; width:0px; border: none;
background: white;
width: 0px;
} }
QScrollBar::handle:vertical, QScrollBar::handle:horizontal{ QScrollBar::handle:vertical {
background: rgb(255, 255, 255); background: white;
max-width: 0px;
} }
SmartListView { SmartListView {
...@@ -287,15 +290,6 @@ QPushButton#btnvideo{ ...@@ -287,15 +290,6 @@ QPushButton#btnvideo{
border:solid 1px; border:solid 1px;
} }
QScrollBar:vertical{
background: rgb(242, 242, 242);
width:10px;
}
QScrollBar::handle:vertical{
background: rgb(77, 77, 77);
}
QWidget#messagingPage, QWidget#contactRequestPage, QWidget#messagingPage, QWidget#contactRequestPage,
QDialog#DeleteAccountDialog, QDialog#UpdateDownloadDialog, QDialog#DeleteAccountDialog, QDialog#UpdateDownloadDialog,
QDialog#UpdateConfirmDialog, QDialog#AccountMigrationDialog { QDialog#UpdateConfirmDialog, QDialog#AccountMigrationDialog {
......
Supports Markdown
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