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

callwidget: add splitter view and remove useless widgets

Change-Id: I456aceffa3a04e52a5b7f8d36856378d4214df7a
parent ec0a166d
......@@ -241,7 +241,7 @@ CallWidget::CallWidget(QWidget* parent) :
// hide the call stack
setCallPanelVisibility(false);
ui->containerWidget->setVisible(false);
setVisible(false);
ui->sipCallerBestIdLabel->setVisible(false);
}
......@@ -254,7 +254,7 @@ CallWidget::~CallWidget()
void
CallWidget::navigated(bool to)
{
ui->containerWidget->setVisible(to);
setVisible(to);
if (to) {
updateSmartList();
connectConversationModel();
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1440</width>
<height>664</height>
<width>1091</width>
<height>665</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -19,25 +19,10 @@
<property name="windowTitle">
<string/>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QWidget" name="containerWidget" native="true">
<layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin">
<number>0</number>
</property>
......@@ -50,24 +35,17 @@
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_6" stretch="5,16">
<property name="spacing">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="rightMargin">
<number>0</number>
<property name="handleWidth">
<number>1</number>
</property>
<item>
<widget class="QWidget" name="sidePanelLayoutWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
......@@ -80,7 +58,7 @@
</property>
<property name="maximumSize">
<size>
<width>380</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
......@@ -461,35 +439,6 @@
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="mainLayoutWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QVBoxLayout" name="mainLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="sizeConstraint">
<enum>QLayout::SetMaximumSize</enum>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QStackedWidget" name="stackedWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
......@@ -497,11 +446,17 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>580</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string/>
</property>
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="welcomePage">
<property name="sizePolicy">
......@@ -2184,7 +2139,7 @@ Copy and share it with your friends!
</spacer>
</item>
<item>
<widget class="MessageWebView" name="messageView">
<widget class="MessageWebView" name="messageView" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
......@@ -2228,13 +2183,6 @@ Copy and share it with your friends!
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
......
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