diff --git a/callwidget.cpp b/callwidget.cpp index d1fa887c19c68f51ec8e52f920993290dab34db8..ba7e3f98c6f6b4c789864fb9cb880466078383eb 100644 --- a/callwidget.cpp +++ b/callwidget.cpp @@ -195,6 +195,8 @@ CallWidget::CallWidget(QWidget* parent) : // hide the call stack ui->callStackWidget->hide(); + + ui->containerWidget->setVisible(false); } CallWidget::~CallWidget() @@ -203,6 +205,19 @@ CallWidget::~CallWidget() delete menu_; } +void +CallWidget::navigated(bool to) +{ + ui->containerWidget->setVisible(to); + if (to) { + updateSmartList(); + connectConversationModel(); + } else { + QObject::disconnect(smartlistSelectionConnection_); + smartListModel_.reset(nullptr); + } +} + int CallWidget::getLeftPanelWidth() { @@ -1072,7 +1087,7 @@ void CallWidget::updateSmartList() { auto& currentAccountInfo = LRCInstance::getCurrentAccountInfo(); - smartListModel_.reset(new SmartListModel(currentAccountInfo, this->parent())); + smartListModel_.reset(new SmartListModel(currentAccountInfo, this)); ui->smartList->setModel(smartListModel_.get()); ui->smartList->setItemDelegate(new ConversationItemDelegate()); diff --git a/callwidget.h b/callwidget.h index 8e96b1c52fa8afdcfda6a15fb041e87eed58843a..f94ab0c5c9dce5d143aabbbfdbd8c4bc30d1a1d4 100644 --- a/callwidget.h +++ b/callwidget.h @@ -66,6 +66,9 @@ public: int getLeftPanelWidth(); + // NavWidget + virtual void navigated(bool to); + public slots: void on_ringContactLineEdit_returnPressed(); diff --git a/callwidget.ui b/callwidget.ui index 3ff641271034a1dfd4a8259ac60a3aede4932e4d..f7f045e8b3c495e2916a6f50c22aa9f0446a2fdf 100644 --- a/callwidget.ui +++ b/callwidget.ui @@ -6,7 +6,7 @@ <rect> <x>0</x> <y>0</y> - <width>1230</width> + <width>1350</width> <height>657</height> </rect> </property> @@ -36,416 +36,151 @@ <number>0</number> </property> <item row="0" column="0"> - <layout class="QGridLayout" name="gridLayout_2"> - <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> - <property name="spacing"> - <number>0</number> - </property> - <item row="0" column="0"> - <widget class="QSplitter" name="splitter"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="opaqueResize"> - <bool>true</bool> - </property> - <property name="handleWidth"> - <number>2</number> - </property> - <property name="childrenCollapsible"> - <bool>true</bool> - </property> - <widget class="QWidget" name="widgetSplitterLeft" native="true"> + <widget class="QWidget" name="containerWidget" native="true"> + <layout class="QGridLayout" name="gridLayout_2"> + <property name="leftMargin"> + <number>1</number> + </property> + <property name="topMargin"> + <number>1</number> + </property> + <property name="rightMargin"> + <number>1</number> + </property> + <property name="bottomMargin"> + <number>1</number> + </property> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="QSplitter" name="splitter"> <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>300</width> - <height>0</height> - </size> + <property name="orientation"> + <enum>Qt::Horizontal</enum> </property> - <layout class="QVBoxLayout" name="verticalLayout_9"> - <property name="spacing"> - <number>0</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetMinimumSize</enum> - </property> - <property name="leftMargin"> - <number>0</number> - </property> - <property name="topMargin"> - <number>0</number> + <property name="opaqueResize"> + <bool>true</bool> + </property> + <property name="handleWidth"> + <number>2</number> + </property> + <property name="childrenCollapsible"> + <bool>false</bool> + </property> + <widget class="QWidget" name="widgetSplitterLeft" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="rightMargin"> - <number>0</number> + <property name="minimumSize"> + <size> + <width>300</width> + <height>0</height> + </size> </property> - <property name="bottomMargin"> - <number>0</number> + <property name="maximumSize"> + <size> + <width>380</width> + <height>16777215</height> + </size> </property> - <item> - <widget class="QWidget" name="sidePanelLayoutWidget" native="true"> - <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,0,0"> - <property name="spacing"> - <number>0</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetDefaultConstraint</enum> - </property> - <property name="leftMargin"> - <number>0</number> + <layout class="QVBoxLayout" name="verticalLayout_9"> + <property name="spacing"> + <number>0</number> + </property> + <property name="sizeConstraint"> + <enum>QLayout::SetMinimumSize</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="QWidget" name="sidePanelLayoutWidget" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="topMargin"> - <number>4</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="CurrentAccountComboBox" name="currentAccountComboBox" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>60</height> - </size> - </property> - <property name="autoFillBackground"> - <bool>false</bool> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - </widget> - </item> - <item> - <widget class="QWidget" name="selectBar" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>16777214</width> - <height>30</height> - </size> - </property> - <layout class="QHBoxLayout" name="selectBar_layout" stretch="0,0,0"> - <property name="spacing"> - <number>0</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetDefaultConstraint</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> - <spacer name="horizontalSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>10</width> - <height>38</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="RingContactLineEdit" name="ringContactLineEdit"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>266</width> - <height>30</height> - </size> - </property> - <property name="baseSize"> - <size> - <width>244</width> - <height>30</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - </font> - </property> - <property name="cursor"> - <cursorShape>IBeamCursor</cursorShape> - </property> - <property name="toolTip"> - <string>Search contact text input</string> - </property> - <property name="maxLength"> - <number>100</number> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>Search contacts or enter ID</string> - </property> - <property name="clearButtonEnabled"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_2"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>10</width> - <height>38</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QWidget" name="smartListWidget" native="true"> - <layout class="QVBoxLayout" name="verticalLayout_5" stretch="0,0"> - <property name="spacing"> - <number>0</number> - </property> - <property name="leftMargin"> - <number>1</number> + <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,0,0"> + <property name="spacing"> + <number>0</number> + </property> + <property name="sizeConstraint"> + <enum>QLayout::SetDefaultConstraint</enum> + </property> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>4</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="CurrentAccountComboBox" name="currentAccountComboBox" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="topMargin"> - <number>1</number> + <property name="minimumSize"> + <size> + <width>0</width> + <height>60</height> + </size> </property> - <property name="rightMargin"> - <number>0</number> + <property name="autoFillBackground"> + <bool>false</bool> </property> - <property name="bottomMargin"> - <number>1</number> + <property name="styleSheet"> + <string notr="true"/> </property> - <item> - <widget class="ConversationsFilterWidget" name="conversationsFilterWidget" native="true"> - <layout class="QHBoxLayout" name="conversationFilterLayout"> - <property name="spacing"> - <number>10</number> - </property> - <property name="leftMargin"> - <number>10</number> - </property> - <property name="topMargin"> - <number>10</number> - </property> - <property name="rightMargin"> - <number>10</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="QPushButton" name="btnConversations"> - <property name="toolTip"> - <string>Show conversations</string> - </property> - <property name="text"> - <string>Conversations</string> - </property> - <property name="checkable"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="btnInvites"> - <property name="toolTip"> - <string>Show invites</string> - </property> - <property name="text"> - <string>Invites</string> - </property> - <property name="checkable"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_13"> - <property name="spacing"> - <number>0</number> - </property> - <property name="topMargin"> - <number>10</number> - </property> - <item> - <widget class="SmartListView" name="smartList"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="autoScrollMargin"> - <number>16</number> - </property> - <property name="indentation"> - <number>0</number> - </property> - <property name="rootIsDecorated"> - <bool>false</bool> - </property> - <property name="itemsExpandable"> - <bool>false</bool> - </property> - <property name="expandsOnDoubleClick"> - <bool>false</bool> - </property> - <attribute name="headerVisible"> - <bool>false</bool> - </attribute> - </widget> - </item> - </layout> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="widgetSplitterRight" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <layout class="QGridLayout" name="gridLayout_4"> - <property name="sizeConstraint"> - <enum>QLayout::SetNoConstraint</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> - <property name="spacing"> - <number>0</number> - </property> - <item row="0" column="0"> - <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="verticalLayout"> - <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"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string/> - </property> - <property name="currentIndex"> - <number>0</number> - </property> - <widget class="QWidget" name="welcomePage"> + </widget> + </item> + <item> + <widget class="QWidget" name="selectBar" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <layout class="QVBoxLayout" name="verticalLayout_15"> + <property name="maximumSize"> + <size> + <width>16777214</width> + <height>30</height> + </size> + </property> + <layout class="QHBoxLayout" name="selectBar_layout" stretch="0,0,0"> <property name="spacing"> <number>0</number> </property> + <property name="sizeConstraint"> + <enum>QLayout::SetDefaultConstraint</enum> + </property> <property name="leftMargin"> <number>0</number> </property> @@ -459,544 +194,1428 @@ <number>0</number> </property> <item> - <layout class="QHBoxLayout" name="horizontalLayout_9"> - <property name="spacing"> - <number>0</number> - </property> - <property name="topMargin"> - <number>7</number> - </property> - <property name="rightMargin"> - <number>7</number> - </property> - <item> - <spacer name="horizontalSpacer_11"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer"> + <spacer name="horizontalSpacer"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> </property> <property name="sizeHint" stdset="0"> <size> - <width>20</width> - <height>40</height> + <width>10</width> + <height>38</height> </size> </property> </spacer> </item> <item> - <widget class="QLabel" name="ringLogo"> + <widget class="RingContactLineEdit" name="ringContactLineEdit"> + <property name="enabled"> + <bool>true</bool> + </property> <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Maximum"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> - <width>100</width> - <height>100</height> + <width>266</width> + <height>30</height> </size> </property> - <property name="maximumSize"> + <property name="baseSize"> <size> - <width>16777215</width> - <height>100</height> + <width>244</width> + <height>30</height> </size> </property> - <property name="text"> - <string/> - </property> - <property name="scaledContents"> - <bool>false</bool> + <property name="font"> + <font> + <pointsize>9</pointsize> + </font> </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> + <property name="cursor"> + <cursorShape>IBeamCursor</cursorShape> </property> - <property name="wordWrap"> - <bool>false</bool> + <property name="toolTip"> + <string>Search contact text input</string> </property> - </widget> - </item> - <item> - <layout class="QGridLayout" name="gridLayout_3"> - <property name="leftMargin"> - <number>10</number> + <property name="maxLength"> + <number>100</number> </property> - <property name="topMargin"> - <number>0</number> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> </property> - <property name="rightMargin"> - <number>10</number> + <property name="placeholderText"> + <string>Search contacts or enter ID</string> </property> - <property name="spacing"> - <number>0</number> + <property name="clearButtonEnabled"> + <bool>true</bool> </property> - <item row="0" column="0"> - <widget class="QLabel" name="descLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>400</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>400</width> - <height>16777215</height> - </size> - </property> - <property name="baseSize"> - <size> - <width>400</width> - <height>0</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - <property name="text"> - <string>Jami is free software for universal communication which respects the freedoms and privacy of its users.</string> - </property> - <property name="textFormat"> - <enum>Qt::PlainText</enum> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - <property name="wordWrap"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> + </widget> </item> <item> - <widget class="QLabel" name="thisIsYourLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> </property> - <property name="minimumSize"> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> <size> - <width>0</width> - <height>50</height> + <width>10</width> + <height>38</height> </size> </property> - <property name="font"> - <font> - <underline>false</underline> - <strikeout>false</strikeout> - <kerning>true</kerning> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: #aeaeae</string> - </property> - <property name="text"> - <string> - This is your ID. -Copy and share it with your friends! - </string> - </property> - <property name="textFormat"> - <enum>Qt::PlainText</enum> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - <property name="wordWrap"> - <bool>true</bool> - </property> + </spacer> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QWidget" name="smartListWidget" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <layout class="QVBoxLayout" name="verticalLayout_5" stretch="0,0"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>1</number> + </property> + <property name="topMargin"> + <number>1</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>1</number> + </property> + <item> + <widget class="ConversationsFilterWidget" name="conversationsFilterWidget" native="true"> + <layout class="QHBoxLayout" name="conversationFilterLayout"> + <property name="spacing"> + <number>10</number> + </property> + <property name="leftMargin"> + <number>10</number> + </property> + <property name="topMargin"> + <number>10</number> + </property> + <property name="rightMargin"> + <number>10</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QPushButton" name="btnConversations"> + <property name="toolTip"> + <string>Show conversations</string> + </property> + <property name="text"> + <string>Conversations</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="btnInvites"> + <property name="toolTip"> + <string>Show invites</string> + </property> + <property name="text"> + <string>Invites</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> </widget> </item> <item> - <layout class="QHBoxLayout" name="horizontalLayout_8"> - <property name="topMargin"> + <layout class="QVBoxLayout" name="verticalLayout_13"> + <property name="spacing"> <number>0</number> </property> + <property name="topMargin"> + <number>10</number> + </property> <item> - <spacer name="horizontalSpacer_8"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="IdLabel" name="ringIdLabel"> + <widget class="SmartListView" name="smartList"> <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> + <property name="autoScrollMargin"> + <number>16</number> </property> - <property name="font"> - <font> - <pointsize>14</pointsize> - </font> + <property name="indentation"> + <number>0</number> </property> - <property name="styleSheet"> - <string notr="true"/> + <property name="rootIsDecorated"> + <bool>false</bool> </property> - <property name="frameShape"> - <enum>QFrame::Box</enum> + <property name="itemsExpandable"> + <bool>false</bool> </property> - <property name="lineWidth"> - <number>0</number> - </property> - <property name="text"> - <string notr="true">id</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - <property name="margin"> - <number>5</number> - </property> - <property name="textInteractionFlags"> - <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_10"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>5</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QToolButton" name="qrButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Show ring ID QR code</string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/qrcode.png</normaloff>:/images/qrcode.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>18</width> - <height>18</height> - </size> - </property> - <property name="checkable"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_12"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>5</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QToolButton" name="shareButton"> - <property name="minimumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Share ring ID button</string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/icons/ic_share_black_48dp_2x.png</normaloff>:/images/icons/ic_share_black_48dp_2x.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>18</width> - <height>18</height> - </size> + <property name="expandsOnDoubleClick"> + <bool>false</bool> </property> + <attribute name="headerVisible"> + <bool>false</bool> + </attribute> </widget> </item> - <item> - <spacer name="horizontalSpacer_9"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </item> - <item> - <widget class="QLabel" name="copyLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>50</width> - <height>0</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>8</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: #aeaeae</string> - </property> - <property name="frameShape"> - <enum>QFrame::NoFrame</enum> - </property> - <property name="text"> - <string>Double-click to copy</string> - </property> - <property name="textFormat"> - <enum>Qt::PlainText</enum> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_4"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>10</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="qrLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="styleSheet"> - <string notr="true">color: #aeaeae</string> - </property> - <property name="text"> - <string>Error while generating QR Code</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_2"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </widget> - <widget class="QWidget" name="mainActivityWidget"> - <layout class="QGridLayout" name="gridLayout_5"> - <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> - <property name="spacing"> - <number>0</number> + </item> + </layout> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="widgetSplitterRight" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <layout class="QGridLayout" name="gridLayout_4"> + <property name="sizeConstraint"> + <enum>QLayout::SetNoConstraint</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> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <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="verticalLayout"> + <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"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string/> + </property> + <property name="currentIndex"> + <number>1</number> + </property> + <widget class="QWidget" name="welcomePage"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <item row="0" column="0"> - <widget class="QSplitter" name="mainActivitySplitter"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="handleWidth"> - <number>2</number> - </property> - <property name="childrenCollapsible"> - <bool>true</bool> - </property> - <widget class="QStackedWidget" name="callStackWidget"> + <layout class="QVBoxLayout" name="verticalLayout_15"> + <property name="spacing"> + <number>0</number> + </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> + <layout class="QHBoxLayout" name="horizontalLayout_9"> + <property name="spacing"> + <number>0</number> + </property> + <property name="topMargin"> + <number>7</number> + </property> + <property name="rightMargin"> + <number>7</number> + </property> + <item> + <spacer name="horizontalSpacer_11"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="ringLogo"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Maximum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>100</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>100</height> + </size> + </property> + <property name="text"> + <string/> + </property> + <property name="scaledContents"> + <bool>false</bool> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <layout class="QGridLayout" name="gridLayout_3"> + <property name="leftMargin"> + <number>10</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>10</number> + </property> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="QLabel" name="descLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>400</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>400</width> + <height>16777215</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>400</width> + <height>0</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="text"> + <string>Jami is free software for universal communication which respects the freedoms and privacy of its users.</string> + </property> + <property name="textFormat"> + <enum>Qt::PlainText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="thisIsYourLabel"> <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="currentIndex"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>50</height> + </size> + </property> + <property name="font"> + <font> + <underline>false</underline> + <strikeout>false</strikeout> + <kerning>true</kerning> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: #aeaeae</string> + </property> + <property name="text"> + <string> + This is your ID. +Copy and share it with your friends! + </string> + </property> + <property name="textFormat"> + <enum>Qt::PlainText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_8"> + <property name="topMargin"> <number>0</number> </property> - <widget class="QWidget" name="videoPage"> + <item> + <spacer name="horizontalSpacer_8"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="IdLabel" name="ringIdLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>14</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="frameShape"> + <enum>QFrame::Box</enum> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="text"> + <string notr="true">id</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="margin"> + <number>5</number> + </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_10"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>5</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QToolButton" name="qrButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="toolTip"> + <string>Show ring ID QR code</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/qrcode.png</normaloff>:/images/qrcode.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>18</width> + <height>18</height> + </size> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_12"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>5</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QToolButton" name="shareButton"> + <property name="minimumSize"> + <size> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="toolTip"> + <string>Share ring ID button</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/icons/ic_share_black_48dp_2x.png</normaloff>:/images/icons/ic_share_black_48dp_2x.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>18</width> + <height>18</height> + </size> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_9"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="copyLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>50</width> + <height>0</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>8</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: #aeaeae</string> + </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="text"> + <string>Double-click to copy</string> + </property> + <property name="textFormat"> + <enum>Qt::PlainText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_4"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>10</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="qrLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="styleSheet"> + <string notr="true">color: #aeaeae</string> + </property> + <property name="text"> + <string>Error while generating QR Code</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="mainActivityWidget"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <layout class="QGridLayout" name="gridLayout_5"> + <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> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="QSplitter" name="mainActivitySplitter"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="handleWidth"> + <number>2</number> + </property> + <property name="childrenCollapsible"> + <bool>true</bool> + </property> + <widget class="QStackedWidget" name="callStackWidget"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="currentIndex"> + <number>0</number> + </property> + <widget class="QWidget" name="videoPage"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <layout class="QGridLayout" name="gridLayout_6"> + <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> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="VideoView" name="videoWidget" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="outgoingCallPage"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <layout class="QGridLayout" name="gridLayout_7"> + <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> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="QWidget" name="outgoingCall" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>244</width> + <height>420</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>244</width> + <height>16777215</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <layout class="QVBoxLayout" name="spinnerLayout_3"> + <property name="spacing"> + <number>10</number> + </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> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="callingPhoto"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>166</width> + <height>166</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>166</width> + <height>166</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>166</width> + <height>166</height> + </size> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="callingBestNameLabel"> + <property name="font"> + <font> + <family>Segoe UI Emoji</family> + <pointsize>12</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(128, 128, 128);</string> + </property> + <property name="text"> + <string>best name</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="callingBestIdLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>8</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(174, 174, 174);</string> + </property> + <property name="text"> + <string>best Id</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="spinnerLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <property name="spacing"> + <number>20</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>56</width> + <height>56</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>56</width> + <height>56</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>56</width> + <height>56</height> + </size> + </property> + <property name="toolTip"> + <string>Cancel outgoing call</string> + </property> + <property name="layoutDirection"> + <enum>Qt::LeftToRight</enum> + </property> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/icons/ic_close_white_24dp.png</normaloff>:/images/icons/ic_close_white_24dp.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="cancelCallLabel"> + <property name="styleSheet"> + <string notr="true">color: rgb(174, 174, 174);</string> + </property> + <property name="text"> + <string>Cancel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="incomingCallPage"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <layout class="QGridLayout" name="gridLayout_8"> + <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> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="QWidget" name="callInvite" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>200</width> + <height>420</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>420</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>200</width> + <height>420</height> + </size> + </property> + <layout class="QVBoxLayout" name="callInvite" stretch="0,2,1,2,1,9"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="callerPhoto"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>166</width> + <height>166</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>166</width> + <height>166</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>166</width> + <height>166</height> + </size> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_3"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="callerBestNameLabel"> + <property name="font"> + <font> + <family>Segoe UI Emoji</family> + <pointsize>12</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(128, 128, 128);</string> + </property> + <property name="text"> + <string>best name</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="wantToTalkLabel"> + <property name="styleSheet"> + <string notr="true">color: rgb(174, 174, 174);</string> + </property> + <property name="text"> + <string>Wants to talk to you!</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_5"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>50</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_3" stretch="2"> + <property name="spacing"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="spacing"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <item> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <property name="spacing"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QPushButton" name="acceptButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>56</width> + <height>56</height> + </size> + </property> + <property name="toolTip"> + <string>Answer incoming call button</string> + </property> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/icons/ic_done_white_24dp.png</normaloff>:/images/icons/ic_done_white_24dp.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="acceptLabel"> + <property name="styleSheet"> + <string notr="true">color: rgb(174, 174, 174);</string> + </property> + <property name="text"> + <string>Answer</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="horizontalSpacer_21"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_7"> + <property name="spacing"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_5"> + <item> + <widget class="QPushButton" name="refuseButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>56</width> + <height>56</height> + </size> + </property> + <property name="toolTip"> + <string>Ignore incoming call button</string> + </property> + <property name="layoutDirection"> + <enum>Qt::RightToLeft</enum> + </property> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/icons/ic_close_white_24dp.png</normaloff>:/images/icons/ic_close_white_24dp.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="refuseLabel"> + <property name="layoutDirection"> + <enum>Qt::RightToLeft</enum> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(174, 174, 174);</string> + </property> + <property name="text"> + <string>Ignore</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </widget> + </item> + </layout> + </widget> + </widget> + <widget class="QWidget" name="messagesWidget" native="true"> + <property name="enabled"> + <bool>true</bool> + </property> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <layout class="QGridLayout" name="gridLayout_6"> - <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> + <property name="minimumSize"> + <size> + <width>358</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <layout class="QVBoxLayout" name="verticalLayout_8"> <property name="spacing"> <number>0</number> </property> - <item row="0" column="0"> - <widget class="VideoView" name="videoWidget" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="outgoingCallPage"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <layout class="QGridLayout" name="gridLayout_7"> <property name="leftMargin"> <number>0</number> </property> @@ -1009,951 +1628,373 @@ Copy and share it with your friends! <property name="bottomMargin"> <number>0</number> </property> - <property name="spacing"> - <number>0</number> - </property> - <item row="0" column="0"> - <widget class="QWidget" name="outgoingCall" native="true"> + <item> + <widget class="QWidget" name="messagingHeaderWidget" native="true"> <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>244</width> - <height>420</height> - </size> - </property> <property name="maximumSize"> <size> - <width>244</width> + <width>16777215</width> <height>16777215</height> </size> </property> - <property name="baseSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <layout class="QVBoxLayout" name="spinnerLayout_3"> + <layout class="QHBoxLayout" name="horizontalLayout_10"> <property name="spacing"> - <number>10</number> + <number>6</number> </property> <property name="leftMargin"> - <number>0</number> + <number>10</number> </property> <property name="topMargin"> - <number>0</number> + <number>6</number> </property> <property name="rightMargin"> - <number>0</number> + <number>10</number> </property> <property name="bottomMargin"> - <number>0</number> + <number>6</number> </property> <item> - <layout class="QHBoxLayout" name="horizontalLayout_3"> + <widget class="QPushButton" name="imBackButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="toolTip"> + <string>Back to homepage button</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/icons/ic_arrow_back_24px.svg</normaloff>:/images/icons/ic_arrow_back_24px.svg</iconset> + </property> + <property name="iconSize"> + <size> + <width>18</width> + <height>18</height> + </size> + </property> + <property name="flat"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_16"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>0</number> + </property> <property name="bottomMargin"> <number>0</number> </property> <item> - <widget class="QLabel" name="callingPhoto"> + <widget class="QLabel" name="imNameLabel"> <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Minimum"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> - <width>166</width> - <height>166</height> + <width>200</width> + <height>0</height> </size> </property> - <property name="maximumSize"> - <size> - <width>166</width> - <height>166</height> - </size> + <property name="font"> + <font> + <pointsize>10</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(63,63,63);</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="imIdLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="baseSize"> + <property name="minimumSize"> <size> - <width>166</width> - <height>166</height> + <width>200</width> + <height>0</height> </size> </property> + <property name="font"> + <font> + <pointsize>9</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(192,192,192);</string> + </property> <property name="text"> <string/> </property> <property name="alignment"> - <set>Qt::AlignCenter</set> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> </property> </widget> </item> </layout> </item> <item> - <widget class="QLabel" name="callingBestNameLabel"> - <property name="font"> - <font> - <family>Segoe UI Emoji</family> - <pointsize>12</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(128, 128, 128);</string> + <spacer name="verticalSpacer_6"> + <property name="orientation"> + <enum>Qt::Vertical</enum> </property> - <property name="text"> - <string>best name</string> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>40</height> + </size> </property> - </widget> + </spacer> </item> <item> - <widget class="QLabel" name="callingBestIdLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="font"> - <font> - <pointsize>8</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(174, 174, 174);</string> + <spacer name="horizontalSpacer_13"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> </property> - <property name="text"> - <string>best Id</string> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> </property> - </widget> + </spacer> </item> <item> - <widget class="QLabel" name="spinnerLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> + <widget class="QPushButton" name="btnAudioCall"> <property name="minimumSize"> <size> - <width>20</width> - <height>0</height> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>30</height> </size> </property> <property name="text"> <string/> </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/icons/ic_phone_24px.svg</normaloff>:/images/icons/ic_phone_24px.svg</iconset> </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_6"> - <property name="spacing"> - <number>20</number> - </property> - <property name="bottomMargin"> - <number>0</number> + <property name="iconSize"> + <size> + <width>18</width> + <height>18</height> + </size> </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout"> - <property name="spacing"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="QPushButton" name="cancelButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>56</width> - <height>56</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>56</width> - <height>56</height> - </size> - </property> - <property name="baseSize"> - <size> - <width>56</width> - <height>56</height> - </size> - </property> - <property name="toolTip"> - <string>Cancel outgoing call</string> - </property> - <property name="layoutDirection"> - <enum>Qt::LeftToRight</enum> - </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/icons/ic_close_white_24dp.png</normaloff>:/images/icons/ic_close_white_24dp.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> - </size> - </property> - </widget> - </item> - </layout> - </item> - <item> - <widget class="QLabel" name="cancelCallLabel"> - <property name="styleSheet"> - <string notr="true">color: rgb(174, 174, 174);</string> - </property> - <property name="text"> - <string>Cancel</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - </layout> + </widget> </item> - </layout> - </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="incomingCallPage"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <layout class="QGridLayout" name="gridLayout_8"> - <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> - <property name="spacing"> - <number>0</number> - </property> - <item row="0" column="0"> - <widget class="QWidget" name="callInvite" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>200</width> - <height>420</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>200</width> - <height>420</height> - </size> - </property> - <property name="baseSize"> - <size> - <width>200</width> - <height>420</height> - </size> - </property> - <layout class="QVBoxLayout" name="callInvite" stretch="0,2,1,2,1,9"> - <property name="spacing"> - <number>0</number> - </property> <item> - <widget class="QLabel" name="callerPhoto"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> + <widget class="QPushButton" name="btnVideoCall"> <property name="minimumSize"> <size> - <width>166</width> - <height>166</height> + <width>30</width> + <height>30</height> </size> </property> <property name="maximumSize"> <size> - <width>166</width> - <height>166</height> - </size> - </property> - <property name="baseSize"> - <size> - <width>166</width> - <height>166</height> + <width>30</width> + <height>30</height> </size> </property> <property name="text"> <string/> </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/icons/ic_video_call_24px.svg</normaloff>:/images/icons/ic_video_call_24px.svg</iconset> + </property> + <property name="iconSize"> + <size> + <width>18</width> + <height>18</height> + </size> </property> </widget> </item> <item> - <spacer name="verticalSpacer_3"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> + <widget class="QPushButton" name="sendContactRequestButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="sizeHint" stdset="0"> + <property name="minimumSize"> <size> - <width>20</width> - <height>20</height> + <width>30</width> + <height>30</height> </size> </property> - </spacer> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="callerBestNameLabel"> - <property name="font"> - <font> - <family>Segoe UI Emoji</family> - <pointsize>12</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(128, 128, 128);</string> + <property name="maximumSize"> + <size> + <width>30</width> + <height>30</height> + </size> </property> - <property name="text"> - <string>best name</string> + <property name="toolTip"> + <string>Add to contacts</string> </property> - </widget> - </item> - <item> - <widget class="QLabel" name="wantToTalkLabel"> <property name="styleSheet"> - <string notr="true">color: rgb(174, 174, 174);</string> + <string notr="true"/> </property> <property name="text"> - <string>Wants to talk to you!</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_5"> - <property name="orientation"> - <enum>Qt::Vertical</enum> + <string/> </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> + <property name="icon"> + <iconset resource="ressources.qrc"> + <normaloff>:/images/icons/ic_person_add_black_24dp_2x.png</normaloff>:/images/icons/ic_person_add_black_24dp_2x.png</iconset> </property> - <property name="sizeHint" stdset="0"> + <property name="iconSize"> <size> - <width>20</width> - <height>50</height> + <width>18</width> + <height>18</height> </size> </property> - </spacer> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_3" stretch="2"> - <property name="spacing"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_2"> - <property name="spacing"> - <number>0</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <item> - <layout class="QVBoxLayout" name="verticalLayout_4"> - <property name="spacing"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_4"> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="QPushButton" name="acceptButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>56</width> - <height>56</height> - </size> - </property> - <property name="toolTip"> - <string>Answer incoming call button</string> - </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/icons/ic_done_white_24dp.png</normaloff>:/images/icons/ic_done_white_24dp.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> - </size> - </property> - </widget> - </item> - </layout> - </item> - <item> - <widget class="QLabel" name="acceptLabel"> - <property name="styleSheet"> - <string notr="true">color: rgb(174, 174, 174);</string> - </property> - <property name="text"> - <string>Answer</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="horizontalSpacer_21"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_7"> - <property name="spacing"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_5"> - <item> - <widget class="QPushButton" name="refuseButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>56</width> - <height>56</height> - </size> - </property> - <property name="toolTip"> - <string>Ignore incoming call button</string> - </property> - <property name="layoutDirection"> - <enum>Qt::RightToLeft</enum> - </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/icons/ic_close_white_24dp.png</normaloff>:/images/icons/ic_close_white_24dp.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> - </size> - </property> - </widget> - </item> - </layout> - </item> - <item> - <widget class="QLabel" name="refuseLabel"> - <property name="layoutDirection"> - <enum>Qt::RightToLeft</enum> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(174, 174, 174);</string> - </property> - <property name="text"> - <string>Ignore</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </item> - </layout> + </widget> </item> </layout> </widget> </item> - </layout> - </widget> - </widget> - <widget class="QWidget" name="messagesWidget" native="true"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>358</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <layout class="QVBoxLayout" name="verticalLayout_8"> - <property name="spacing"> - <number>0</number> - </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="QWidget" name="messagingHeaderWidget" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_10"> + <item> + <layout class="QHBoxLayout" name="messagesHBoxLayout" stretch="0,0,0"> <property name="spacing"> - <number>6</number> + <number>0</number> </property> <property name="leftMargin"> - <number>10</number> + <number>0</number> </property> <property name="topMargin"> - <number>6</number> + <number>0</number> </property> <property name="rightMargin"> - <number>10</number> + <number>0</number> </property> <property name="bottomMargin"> - <number>6</number> + <number>0</number> </property> <item> - <widget class="QPushButton" name="imBackButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Back to homepage button</string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/icons/ic_arrow_back_24px.svg</normaloff>:/images/icons/ic_arrow_back_24px.svg</iconset> - </property> - <property name="iconSize"> - <size> - <width>18</width> - <height>18</height> - </size> - </property> - <property name="flat"> - <bool>false</bool> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_16"> - <property name="spacing"> - <number>0</number> - </property> - <property name="leftMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="imNameLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>200</width> - <height>0</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>10</pointsize> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(63,63,63);</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="wordWrap"> - <bool>false</bool> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="imIdLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>200</width> - <height>0</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(192,192,192);</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_6"> + <spacer name="horizontalSpacer_5"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Horizontal</enum> </property> <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> + <enum>QSizePolicy::Maximum</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>0</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item> - <spacer name="horizontalSpacer_13"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> - <widget class="QPushButton" name="btnAudioCall"> - <property name="minimumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/icons/ic_phone_24px.svg</normaloff>:/images/icons/ic_phone_24px.svg</iconset> - </property> - <property name="iconSize"> - <size> - <width>18</width> - <height>18</height> - </size> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="btnVideoCall"> - <property name="minimumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/icons/ic_video_call_24px.svg</normaloff>:/images/icons/ic_video_call_24px.svg</iconset> - </property> - <property name="iconSize"> - <size> - <width>18</width> - <height>18</height> - </size> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="sendContactRequestButton"> + <widget class="MessageWebView" name="messageView"> <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> <property name="maximumSize"> <size> - <width>30</width> - <height>30</height> + <width>1000</width> + <height>16777215</height> </size> </property> - <property name="toolTip"> - <string>Add to contacts</string> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - <property name="text"> - <string/> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_14"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> </property> - <property name="icon"> - <iconset resource="ressources.qrc"> - <normaloff>:/images/icons/ic_person_add_black_24dp_2x.png</normaloff>:/images/icons/ic_person_add_black_24dp_2x.png</iconset> + <property name="sizeType"> + <enum>QSizePolicy::Maximum</enum> </property> - <property name="iconSize"> + <property name="sizeHint" stdset="0"> <size> - <width>18</width> - <height>18</height> + <width>0</width> + <height>20</height> </size> </property> - </widget> + </spacer> </item> </layout> - </widget> - </item> - <item> - <layout class="QHBoxLayout" name="messagesHBoxLayout" stretch="0,0,0"> - <property name="spacing"> - <number>0</number> - </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> - <spacer name="horizontalSpacer_5"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Maximum</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>0</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="MessageWebView" name="messageView"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>680</width> - <height>16777215</height> - </size> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_14"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Maximum</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>0</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> + </item> + </layout> + </widget> </widget> - </widget> - </item> - </layout> + </item> + </layout> + </widget> </widget> - </widget> - </item> - </layout> - </widget> - </item> - </layout> + </item> + </layout> + </widget> + </item> + </layout> + </widget> </widget> - </widget> - </item> - </layout> + </item> + </layout> + </widget> </item> </layout> </widget> diff --git a/mainwindow.cpp b/mainwindow.cpp index 42b2240641316014e72cc6d2ff9b7010cc4948f1..4e8ea625bed2b066289f8b0c0e97b2cda0fab7d9 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -21,6 +21,8 @@ #include "ui_mainwindow.h" #include <QDesktopWidget> +#include <QWindow> +#include <QScreen> #include "media/text.h" #include "media/textrecording.h" @@ -47,23 +49,21 @@ MainWindow::MainWindow(QWidget* parent) : { ui->setupUi(this); - connect(ui->wizardwidget, &WizardWidget::NavigationRequested, - [this](ScreenEnum scr) { - int index = scr; - if (scr == ScreenEnum::SetttingsScreen) { - index = addSettingsWidget(); - } - Utils::setStackWidget(ui->navStack, ui->navStack->widget(index)); - }); + setMinimumSize(mainWindowMinWidth, mainWindowMinHeight); + setMaximumSize(QtMaxDimension, QtMaxDimension); - connect(ui->callwidget, &CallWidget::NavigationRequested, - [this](ScreenEnum scr) { - int index = scr; - if (scr == ScreenEnum::SetttingsScreen) { - index = addSettingsWidget(); - } - Utils::setStackWidget(ui->navStack, ui->navStack->widget(index)); - }); + for (int i = 0; i < ui->navStack->count(); ++i) { + if (auto navWidget = dynamic_cast<NavWidget*>(ui->navStack->widget(i))) { + connect(navWidget, &NavWidget::NavigationRequested, + [this](ScreenEnum scr) { + Utils::setStackWidget(ui->navStack, ui->navStack->widget(scr)); + }); + } + } + + connect(ui->navStack, SIGNAL(currentChanged(int)), + this, SLOT(slotCurrentChanged(int)), + Qt::QueuedConnection); QIcon icon(":images/jami.png"); @@ -77,12 +77,7 @@ MainWindow::MainWindow(QWidget* parent) : auto configAction = new QAction(tr("Settings"), this); connect(configAction, &QAction::triggered, [this]() { - if (auto settingsWidget = getSettingsWidget()) { - Utils::setStackWidget(ui->navStack, settingsWidget); - } else { - auto index = addSettingsWidget(); - Utils::setStackWidget(ui->navStack, ui->navStack->widget(index)); - } + Utils::setStackWidget(ui->navStack, ui->settingswidget); setWindowState(Qt::WindowActive); }); menu->addAction(configAction); @@ -112,8 +107,6 @@ MainWindow::MainWindow(QWidget* parent) : } #endif - readSettingsFromRegistry(); - win_sparkle_set_appcast_url("http://dl.jami.net/windows/winsparkle-ring.xml"); win_sparkle_set_app_details(L"Savoir-faire Linux", L"Jami", QString(VERSION_STRING).toStdWString().c_str()); win_sparkle_set_shutdown_request_callback([]() {QCoreApplication::exit();}); @@ -137,21 +130,26 @@ MainWindow::MainWindow(QWidget* parent) : AccountModel::instance().slotConnectivityChanged(); }); + auto flags_ = windowFlags(); + auto accountList = LRCInstance::accountModel().getAccountList(); + ScreenEnum startScreen; if (accountList.size()) { - for (const auto& accountId : accountList) { - auto& accountInfo = LRCInstance::accountModel().getAccountInfo(accountId); - if (accountInfo.profileInfo.type == lrc::api::profile::Type::RING) { - if (accountInfo.status == lrc::api::account::Status::ERROR_NEED_MIGRATION) { - WizardDialog dlg(WizardDialog::MIGRATION); - dlg.exec(); - } - } - } - Utils::setStackWidget(ui->navStack, ui->navStack->widget(ScreenEnum::CallScreen)); + readSettingsFromRegistry(); + startScreen = ScreenEnum::CallScreen; } else { - Utils::setStackWidget(ui->navStack, ui->navStack->widget(ScreenEnum::WizardScreen)); + startScreen = ScreenEnum::WizardScreen; + } + + Utils::setStackWidget(ui->navStack, ui->navStack->widget(startScreen)); + if (startScreen == ScreenEnum::WizardScreen) { + setWindowSize(startScreen); } + if (auto navWidget = dynamic_cast<NavWidget*>(ui->navStack->widget(startScreen))) { + navWidget->navigated(true); + } + + lastScr_ = startScreen; } MainWindow::~MainWindow() @@ -159,39 +157,27 @@ MainWindow::~MainWindow() delete ui; } -int -MainWindow::addSettingsWidget() +void +MainWindow::slotCurrentChanged(int index) { - int index = -1; - if (ui->navStack->count() < ScreenEnum::SetttingsScreen + 1) { - auto settingsWidget = new SettingsWidget(this); - settingsWidget->updateSettings(ui->callwidget->getLeftPanelWidth()); - index = ui->navStack->addWidget(settingsWidget); - connect(settingsWidget, &SettingsWidget::NavigationRequested, - [this](ScreenEnum scr) { - Utils::setStackWidget(ui->navStack, ui->navStack->widget(scr)); - removeSettingsWidget(); - if (scr == ScreenEnum::CallScreen) { - ui->callwidget->update(); - } - }); + auto accountList = LRCInstance::accountModel().getAccountList(); + auto firstUse = + (accountList.size() == 1 && lastScr_ == ScreenEnum::WizardScreen) || + !accountList.size(); + for (int i = 0; i < ui->navStack->count(); ++i) { + if (auto navWidget = dynamic_cast<NavWidget*>(ui->navStack->widget(i))) { + navWidget->navigated(index == i); + } } - return index; -} -void -MainWindow::removeSettingsWidget() -{ - if (auto settingsWidget = getSettingsWidget()) { - ui->navStack->removeWidget(settingsWidget); - settingsWidget->deleteLater(); + auto scr = Utils::toEnum<ScreenEnum>(index); + + if (scr == ScreenEnum::SetttingsScreen) { + ui->settingswidget->updateSettings(ui->callwidget->getLeftPanelWidth()); } -} -SettingsWidget* -MainWindow::getSettingsWidget() -{ - return qobject_cast<SettingsWidget*>(ui->navStack->widget(ScreenEnum::SetttingsScreen)); + setWindowSize(scr, firstUse); + lastScr_ = scr; } void @@ -263,12 +249,7 @@ MainWindow::createThumbBar() settings->setIcon(icon); settings->setDismissOnClick(true); connect(settings, &QWinThumbnailToolButton::clicked, [this]() { - if (auto settingsWidget = getSettingsWidget()) { - Utils::setStackWidget(ui->navStack, settingsWidget); - } else { - auto index = addSettingsWidget(); - Utils::setStackWidget(ui->navStack, ui->navStack->widget(index)); - } + Utils::setStackWidget(ui->navStack, ui->settingswidget); }); thumbbar->addButton(settings); @@ -312,3 +293,49 @@ MainWindow::readSettingsFromRegistry() settings.setValue(SettingsKey::enableNotifications, true); } } + +void +MainWindow::setWindowSize(ScreenEnum scr, bool firstUse) +{ + auto screenNumber = qApp->desktop()->screenNumber(); + QScreen* screen = qApp->screens().at(screenNumber); + auto accountList = LRCInstance::accountModel().getAccountList(); + if (scr == ScreenEnum::WizardScreen && !accountList.size()) { + hide(); + setFixedSize(wizardDialogWidth, wizardDialogHeight); + } + if (firstUse || !accountList.size()) { + setGeometry( + QStyle::alignedRect( + Qt::LeftToRight, + Qt::AlignCenter, + size(), + qApp->desktop()->screenGeometry(screenNumber) + ) + ); + windowHandle()->setScreen(screen); + if (scr == ScreenEnum::WizardScreen) { + setWindowFlags(Qt::Dialog); + setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); + adjustSize(); + } else { + setWindowFlags(flags_); + } + updateGeometry(); + update(); + show(); + } +} + +void +MainWindow::show() +{ + QMainWindow::show(); + disconnect(screenChangedConnection_); + screenChangedConnection_ = connect(windowHandle(), &QWindow::screenChanged, + [this](QScreen* screen) { + adjustSize(); + updateGeometry(); + update(); + }); +} diff --git a/mainwindow.h b/mainwindow.h index 2795f91b15c37d811c9975be8bb3a6ab6aa9fb97..95cfb26462932f5e705bafed65bed82cc16ab1f3 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -32,6 +32,12 @@ static constexpr char IDM_ABOUTBOX = 0x0010; +static constexpr uint32_t QtMaxDimension = 16777215; +static constexpr uint32_t mainWindowMinWidth = 1088; +static constexpr uint32_t mainWindowMinHeight = 600; +static constexpr uint32_t wizardDialogWidth = 512; +static constexpr uint32_t wizardDialogHeight = 512; + namespace Ui { class MainWindow; } @@ -48,6 +54,8 @@ public: void createThumbBar(); bool init(); + void show(); + protected: bool nativeEvent(const QByteArray& eventType, void* message, long* result); void closeEvent(QCloseEvent* event); @@ -56,6 +64,7 @@ public slots: void onRingEvent(const QString& uri); private slots: + void slotCurrentChanged(int index); void trayActivated(QSystemTrayIcon::ActivationReason reason); void onIncomingCall(Call* call); void switchNormalMaximize(); @@ -65,11 +74,13 @@ private: explicit MainWindow(QWidget* parent = 0); ~MainWindow(); + void setWindowSize(ScreenEnum scr, bool firstUse = false); + ScreenEnum lastScr_; + Qt::WindowFlags flags_; + void readSettingsFromRegistry(); - void removeSettingsWidget(); - int addSettingsWidget(); - SettingsWidget* getSettingsWidget(); Ui::MainWindow* ui; QNetworkConfigurationManager netManager_; + QMetaObject::Connection screenChangedConnection_; }; diff --git a/mainwindow.ui b/mainwindow.ui index 0d49bd98ead13d692c09402882a8ecc9dac6f047..cdd7fe94af3681bbad5d7126031e68416a0b6620 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -465,6 +465,14 @@ <widget class="QStackedWidget" name="navStack"> <widget class="WizardWidget" name="wizardwidget"/> <widget class="CallWidget" name="callwidget"/> + <widget class="SettingsWidget" name="settingswidget"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> </widget> </item> </layout> @@ -484,6 +492,11 @@ <header>wizardwidget.h</header> <container>1</container> </customwidget> + <customwidget> + <class>SettingsWidget</class> + <extends>QWidget</extends> + <header>settingswidget.h</header> + </customwidget> </customwidgets> <resources> <include location="ressources.qrc"/> diff --git a/navwidget.h b/navwidget.h index df1205e1c18f5e3f22a240ab728dff4a0809b163..29fdf93bfd4673848bfeae73e521d596a70d6a91 100644 --- a/navwidget.h +++ b/navwidget.h @@ -36,8 +36,11 @@ public: explicit NavWidget(QWidget* parent = 0); ~NavWidget(); + virtual void navigated(bool to) = 0; + signals: void NavigationRequested(ScreenEnum screen); void BackRequested(); + }; diff --git a/settingswidget.cpp b/settingswidget.cpp index 5eb000b9d547d819486af3e51024fb71cb4e3e23..e2bd6eebb6782617e9068ef6ef3ec3e4c1aadb37 100644 --- a/settingswidget.cpp +++ b/settingswidget.cpp @@ -130,7 +130,26 @@ SettingsWidget::SettingsWidget(QWidget* parent) ui->advancedSettingsOffsetLabel->show(); - setConnections(); + auto accountList = LRCInstance::accountModel().getAccountList(); + if (!accountList.size()) { + QMetaObject::Connection* toDisconnect = &accountAddedConnection_; + accountAddedConnection_ = connect(&LRCInstance::accountModel(), + &lrc::api::NewAccountModel::accountAdded, + [this, toDisconnect](const std::string& accountId) { + setConnections(); + QObject::disconnect(*toDisconnect); + }); + } else { + setConnections(); + } + + ui->containerWidget->setVisible(false); +} + +void +SettingsWidget::navigated(bool to) +{ + ui->containerWidget->setVisible(to); } void diff --git a/settingswidget.h b/settingswidget.h index 485cb537e77d3806a11e8d27c0943ecd8ebd4ed2..73cd019202b8b0279b37ac790a9be39e05087c55 100644 --- a/settingswidget.h +++ b/settingswidget.h @@ -52,6 +52,9 @@ public: ~SettingsWidget(); void resize(int size); + // NavWidget + virtual void navigated(bool to); + public slots: void updateSettings(int size); @@ -126,6 +129,8 @@ private: QSettings* settings_; + QMetaObject::Connection accountAddedConnection_; + private slots: void setNotificationsSlot(int state); void checkForUpdateSlot(); diff --git a/settingswidget.ui b/settingswidget.ui index 704cc4fc312c11daec8f65eab3edaf9ad2ac16ef..c85f37ebb2476030b86ed45c14c22d555017b4df 100644 --- a/settingswidget.ui +++ b/settingswidget.ui @@ -33,38 +33,8 @@ <number>0</number> </property> <item> - <widget class="QWidget" name="leftSettingsWidget" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="baseSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">background: rgb(245, 245,245);</string> - </property> - <layout class="QVBoxLayout" name="leftVerticalLayout" stretch="0,0,0,1,0,0,0,5"> - <property name="spacing"> - <number>0</number> - </property> + <widget class="QWidget" name="containerWidget" native="true"> + <layout class="QGridLayout" name="gridLayout"> <property name="leftMargin"> <number>0</number> </property> @@ -77,2729 +47,2786 @@ <property name="bottomMargin"> <number>0</number> </property> - <item> - <spacer name="verticalSpacer_5"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>15</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout"> - <property name="spacing"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>9</number> - </property> - <item> - <spacer name="horizontalSpacer_8"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="label_10"> - <property name="font"> - <font> - <pointsize>14</pointsize> - <underline>false</underline> - </font> - </property> - <property name="text"> - <string>Settings</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_2"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="exitSettingsButton"> - <property name="minimumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>30</width> - <height>30</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">QPushButton {background: white; border: 0px; border-radius: 8px;} -QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 8px;} -QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 8px;}</string> - </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_4"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>15</height> - </size> - </property> - </spacer> - </item> - <item> - <spacer name="verticalSpacer_6"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="accountSettingsButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>200</width> - <height>60</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>60</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>12</pointsize> - </font> - </property> - <property name="mouseTracking"> - <bool>true</bool> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - <property name="text"> - <string>Account</string> - </property> - <property name="checkable"> - <bool>true</bool> - </property> - <property name="flat"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="generalSettingsButton"> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="QWidget" name="leftSettingsWidget" native="true"> <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> - <width>200</width> - <height>60</height> + <width>0</width> + <height>0</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> - <height>60</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>12</pointsize> - </font> - </property> - <property name="mouseTracking"> - <bool>true</bool> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - <property name="text"> - <string>General</string> - </property> - <property name="checkable"> - <bool>true</bool> - </property> - <property name="flat"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="avSettingsButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>200</width> - <height>60</height> + <height>16777215</height> </size> </property> - <property name="maximumSize"> + <property name="baseSize"> <size> - <width>16777215</width> - <height>60</height> + <width>0</width> + <height>0</height> </size> </property> - <property name="font"> - <font> - <pointsize>12</pointsize> - </font> - </property> - <property name="mouseTracking"> - <bool>true</bool> - </property> <property name="styleSheet"> - <string notr="true"/> - </property> - <property name="text"> - <string>Audio / Video</string> - </property> - <property name="checkable"> - <bool>true</bool> - </property> - <property name="default"> - <bool>false</bool> - </property> - <property name="flat"> - <bool>true</bool> + <string notr="true">background: rgb(245, 245,245);</string> </property> + <layout class="QVBoxLayout" name="leftVerticalLayout" stretch="0,0,0,1,0,0,0,5"> + <property name="spacing"> + <number>0</number> + </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> + <spacer name="verticalSpacer_5"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>15</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="spacing"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>9</number> + </property> + <item> + <spacer name="horizontalSpacer_8"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_10"> + <property name="font"> + <font> + <pointsize>14</pointsize> + <underline>false</underline> + </font> + </property> + <property name="text"> + <string>Settings</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="exitSettingsButton"> + <property name="minimumSize"> + <size> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>30</width> + <height>30</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton {background: white; border: 0px; border-radius: 8px;} +QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 8px;} +QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 8px;}</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_4"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>15</height> + </size> + </property> + </spacer> + </item> + <item> + <spacer name="verticalSpacer_6"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="accountSettingsButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>200</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>60</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>12</pointsize> + </font> + </property> + <property name="mouseTracking"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="text"> + <string>Account</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="generalSettingsButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>200</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>60</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>12</pointsize> + </font> + </property> + <property name="mouseTracking"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="text"> + <string>General</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="avSettingsButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>200</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>60</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>12</pointsize> + </font> + </property> + <property name="mouseTracking"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="text"> + <string>Audio / Video</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="default"> + <bool>false</bool> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </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>40</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QWidget" name="rightSettingsWidget" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0"> - <property name="spacing"> - <number>0</number> - </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"> + <item row="0" column="1"> + <widget class="QWidget" name="rightSettingsWidget" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>500</width> - <height>850</height> - </size> - </property> <property name="maximumSize"> <size> - <width>80000</width> + <width>16777215</width> <height>16777215</height> </size> </property> - <property name="styleSheet"> - <string notr="true">background: white;</string> - </property> - <property name="currentIndex"> - <number>0</number> - </property> - <widget class="QWidget" name="generalSettings"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> + <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0"> + <property name="spacing"> + <number>0</number> </property> - <property name="minimumSize"> - <size> - <width>600</width> - <height>850</height> - </size> + <property name="leftMargin"> + <number>0</number> </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> + <property name="topMargin"> + <number>0</number> </property> - <layout class="QVBoxLayout" name="verticalLayout" stretch="0"> - <property name="leftMargin"> - <number>9</number> - </property> - <property name="rightMargin"> - <number>9</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_5" stretch="2,0,3"> - <item> - <spacer name="horizontalSpacer_16"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>50</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QWidget" name="widget" native="true"> - <property name="minimumSize"> - <size> - <width>580</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>580</width> - <height>16777215</height> - </size> - </property> - <layout class="QVBoxLayout" name="verticalLayout_5"> + <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"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>500</width> + <height>850</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>80000</width> + <height>16777215</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background: white;</string> + </property> + <property name="currentIndex"> + <number>0</number> + </property> + <widget class="QWidget" name="generalSettings"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>600</width> + <height>850</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <layout class="QVBoxLayout" name="verticalLayout" stretch="0"> + <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> + <layout class="QHBoxLayout" name="horizontalLayout_5" stretch="2,0,3"> <item> - <layout class="QVBoxLayout" name="verticalLayout_4" stretch="1,0,0,0,0,0,0,0,0,0,0,0,0,0,3"> - <item> - <spacer name="verticalSpacer_2"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="label_4"> - <property name="font"> - <font> - <pointsize>13</pointsize> - </font> - </property> - <property name="text"> - <string>System</string> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_19"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_19"> - <property name="leftMargin"> - <number>40</number> - </property> - <property name="topMargin"> - <number>5</number> - </property> - <item> - <widget class="QCheckBox" name="notificationCheckBox"> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> - <property name="toolTip"> - <string>enable notifications checkbox</string> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(77, 77, 77);</string> - </property> - <property name="text"> - <string>Enable desktop notifications</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_20"> - <property name="leftMargin"> - <number>40</number> - </property> - <item> - <widget class="QCheckBox" name="closeOrMinCheckBox"> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> - <property name="toolTip"> - <string>keep minimized on close checkbox</string> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(77, 77, 77);</string> - </property> - <property name="text"> - <string>Keep minimized on close</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_11"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>15</height> - </size> - </property> - </spacer> - </item> + <spacer name="horizontalSpacer_16"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>50</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QWidget" name="widget" native="true"> + <property name="minimumSize"> + <size> + <width>580</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>580</width> + <height>16777215</height> + </size> + </property> + <layout class="QVBoxLayout" name="verticalLayout_5"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_4" stretch="1,0,0,0,0,0,0,0,0,0,0,0,0,0,3"> + <item> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_4"> + <property name="font"> + <font> + <pointsize>13</pointsize> + </font> + </property> + <property name="text"> + <string>System</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_19"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_19"> + <property name="leftMargin"> + <number>40</number> + </property> + <property name="topMargin"> + <number>5</number> + </property> + <item> + <widget class="QCheckBox" name="notificationCheckBox"> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="toolTip"> + <string>enable notifications checkbox</string> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(77, 77, 77);</string> + </property> + <property name="text"> + <string>Enable desktop notifications</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_20"> + <property name="leftMargin"> + <number>40</number> + </property> + <item> + <widget class="QCheckBox" name="closeOrMinCheckBox"> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="toolTip"> + <string>keep minimized on close checkbox</string> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(77, 77, 77);</string> + </property> + <property name="text"> + <string>Keep minimized on close</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_11"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>15</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_22"> + <property name="leftMargin"> + <number>50</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_3"> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="text"> + <string>Download folder</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_18"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="downloadButton"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="minimumSize"> + <size> + <width>150</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>30</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton {background: rgb(245, 245, 245); border: 0px; border-radius: 3px; padding: 5px;} +QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 3px;} +QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 3px;}</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>images/icons/round-folder-24px.svg</normaloff>images/icons/round-folder-24px.svg</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_18"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_11"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_28"> + <item> + <widget class="QLabel" name="label_2"> + <property name="font"> + <font> + <pointsize>12</pointsize> + </font> + </property> + <property name="text"> + <string>Recordings</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_20"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_29"> + <property name="leftMargin"> + <number>50</number> + </property> + <property name="topMargin"> + <number>5</number> + </property> + <item> + <widget class="QLabel" name="label_5"> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="text"> + <string>Save in</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_12"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="recordPathButton"> + <property name="minimumSize"> + <size> + <width>150</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>30</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton {background: rgb(245, 245, 245); border: 0px; border-radius: 3px; padding: 5px;} +QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 3px;} +QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 3px;}</string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>images/icons/round-folder-24px.svg</normaloff>images/icons/round-folder-24px.svg</iconset> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_30"> + <property name="leftMargin"> + <number>20</number> + </property> + <item> + <widget class="QCheckBox" name="alwaysRecordingCheckBox"> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="text"> + <string>Always Recording</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_14"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_6"> + <property name="font"> + <font> + <pointsize>12</pointsize> + </font> + </property> + <property name="text"> + <string>Updates</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_21"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_6"> + <property name="leftMargin"> + <number>40</number> + </property> + <property name="topMargin"> + <number>5</number> + </property> + <item> + <widget class="QCheckBox" name="autoUpdateCheckBox"> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTip"> + <string>Autamatic update checks checkbox</string> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(77, 77, 77);</string> + </property> + <property name="text"> + <string>Check for updates automatically every</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QSpinBox" name="intervalUpdateCheckSpinBox"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Interval between update checks in days selector</string> + </property> + <property name="suffix"> + <string> days</string> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="value"> + <number>3</number> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_17"> + <property name="topMargin"> + <number>0</number> + </property> + <item> + <spacer name="horizontalSpacer_5"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="checkUpdateButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>9</pointsize> + </font> + </property> + <property name="toolTip"> + <string>Check for updates now button</string> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton {background: rgb(245, 245, 245); border: 0px; border-radius: 3px; padding: 5px;} +QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 3px;} +QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 3px;}</string> + </property> + <property name="text"> + <string>Check for updates now</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <spacer name="accountSettingsBottom"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_17"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>50</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="currentAccountSettingsScrollWidget"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>600</width> + <height>860</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QScrollArea" name="scrollArea"> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Plain</enum> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAsNeeded</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="sizeAdjustPolicy"> + <enum>QAbstractScrollArea::AdjustIgnored</enum> + </property> + <property name="widgetResizable"> + <bool>true</bool> + </property> + <widget class="QWidget" name="scrollAreaWidgetContents"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>649</width> + <height>908</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_12" stretch="0"> <item> - <layout class="QHBoxLayout" name="horizontalLayout_22"> - <property name="leftMargin"> - <number>50</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="label_3"> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> - <property name="text"> - <string>Download folder</string> - </property> - </widget> - </item> + <layout class="QHBoxLayout" name="accountHorLayout" stretch="2,0,0,3"> <item> - <spacer name="horizontalSpacer_18"> + <spacer name="horizontalSpacer_6"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> - <width>40</width> - <height>20</height> + <width>460</width> + <height>811</height> </size> </property> </spacer> </item> <item> - <widget class="QPushButton" name="downloadButton"> - <property name="enabled"> - <bool>true</bool> - </property> + <widget class="QWidget" name="centralWidget" native="true"> <property name="minimumSize"> <size> - <width>150</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>30</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">QPushButton {background: rgb(245, 245, 245); border: 0px; border-radius: 3px; padding: 5px;} -QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 3px;} -QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 3px;}</string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>images/icons/round-folder-24px.svg</normaloff>images/icons/round-folder-24px.svg</iconset> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> + <width>600</width> + <height>0</height> </size> </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_18"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_11"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_28"> - <item> - <widget class="QLabel" name="label_2"> - <property name="font"> - <font> - <pointsize>12</pointsize> - </font> - </property> - <property name="text"> - <string>Recordings</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_20"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_29"> - <property name="leftMargin"> - <number>50</number> - </property> - <property name="topMargin"> - <number>5</number> - </property> - <item> - <widget class="QLabel" name="label_5"> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> - <property name="text"> - <string>Save in</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_12"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="recordPathButton"> - <property name="minimumSize"> - <size> - <width>150</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>30</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">QPushButton {background: rgb(245, 245, 245); border: 0px; border-radius: 3px; padding: 5px;} -QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 3px;} -QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 3px;}</string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>images/icons/round-folder-24px.svg</normaloff>images/icons/round-folder-24px.svg</iconset> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> - </size> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_30"> - <property name="leftMargin"> - <number>20</number> - </property> - <item> - <widget class="QCheckBox" name="alwaysRecordingCheckBox"> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> - <property name="text"> - <string>Always Recording</string> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_14"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="label_6"> - <property name="font"> - <font> - <pointsize>12</pointsize> - </font> - </property> - <property name="text"> - <string>Updates</string> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_21"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_6"> - <property name="leftMargin"> - <number>40</number> - </property> - <property name="topMargin"> - <number>5</number> - </property> - <item> - <widget class="QCheckBox" name="autoUpdateCheckBox"> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> - <property name="acceptDrops"> - <bool>false</bool> - </property> - <property name="toolTip"> - <string>Autamatic update checks checkbox</string> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(77, 77, 77);</string> - </property> - <property name="text"> - <string>Check for updates automatically every</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QSpinBox" name="intervalUpdateCheckSpinBox"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="maximumSize"> - <size> - <width>60</width> - <height>16777215</height> - </size> - </property> - <property name="toolTip"> - <string>Interval between update checks in days selector</string> - </property> - <property name="suffix"> - <string> days</string> - </property> - <property name="minimum"> - <number>1</number> - </property> - <property name="value"> - <number>3</number> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_17"> - <property name="topMargin"> - <number>0</number> - </property> - <item> - <spacer name="horizontalSpacer_5"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="checkUpdateButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - </font> - </property> - <property name="toolTip"> - <string>Check for updates now button</string> - </property> - <property name="styleSheet"> - <string notr="true">QPushButton {background: rgb(245, 245, 245); border: 0px; border-radius: 3px; padding: 5px;} -QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 3px;} -QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 3px;}</string> - </property> - <property name="text"> - <string>Check for updates now</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_4"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <spacer name="accountSettingsBottom"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_17"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>50</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> - </widget> - <widget class="QWidget" name="currentAccountSettingsScrollWidget"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>600</width> - <height>860</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <item> - <widget class="QScrollArea" name="scrollArea"> - <property name="frameShape"> - <enum>QFrame::NoFrame</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Plain</enum> - </property> - <property name="verticalScrollBarPolicy"> - <enum>Qt::ScrollBarAsNeeded</enum> - </property> - <property name="horizontalScrollBarPolicy"> - <enum>Qt::ScrollBarAlwaysOff</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustIgnored</enum> - </property> - <property name="widgetResizable"> - <bool>true</bool> - </property> - <widget class="QWidget" name="scrollAreaWidgetContents"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>649</width> - <height>908</height> - </rect> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_12" stretch="0"> - <item> - <layout class="QHBoxLayout" name="accountHorLayout" stretch="2,0,0,3"> - <item> - <spacer name="horizontalSpacer_6"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>460</width> - <height>811</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QWidget" name="centralWidget" native="true"> - <property name="minimumSize"> - <size> - <width>600</width> - <height>0</height> - </size> - </property> - <layout class="QVBoxLayout" name="currentAccountSettingsScrollLayout" stretch="2,0,0,0,0,0,0,0,0,3,0,2"> - <item> - <spacer name="verticalSpacer_7"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <spacer name="horizontalSpacer_19"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>600</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_56"> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <layout class="QVBoxLayout" name="verticalLayout_17"> - <property name="spacing"> - <number>0</number> - </property> - <property name="leftMargin"> - <number>10</number> - </property> - <item> - <widget class="QPushButton" name="currentAccountAvatar"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>160</width> - <height>160</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>160</width> - <height>160</height> - </size> - </property> - <property name="font"> - <font> - <stylestrategy>PreferAntialias</stylestrategy> - </font> - </property> - <property name="cursor"> - <cursorShape>PointingHandCursor</cursorShape> - </property> - <property name="styleSheet"> - <string notr="true">border: none;</string> - </property> - <property name="text"> - <string/> - </property> - <property name="iconSize"> - <size> - <width>160</width> - <height>160</height> - </size> - </property> - <property name="flat"> - <bool>false</bool> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_18"> - <property name="topMargin"> - <number>10</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_58" stretch="0,40"> - <property name="spacing"> - <number>0</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetDefaultConstraint</enum> - </property> - <item> - <widget class="QWidget" name="widget_4" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>110</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>110</width> - <height>16777215</height> - </size> - </property> - <layout class="QVBoxLayout" name="verticalLayout_19"> - <property name="spacing"> - <number>0</number> + <layout class="QVBoxLayout" name="currentAccountSettingsScrollLayout" stretch="2,0,0,0,0,0,0,0,0,3,0,2"> + <item> + <spacer name="verticalSpacer_7"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <spacer name="horizontalSpacer_19"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>600</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_56"> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <layout class="QVBoxLayout" name="verticalLayout_17"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>10</number> + </property> + <item> + <widget class="QPushButton" name="currentAccountAvatar"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="leftMargin"> - <number>0</number> + <property name="minimumSize"> + <size> + <width>160</width> + <height>160</height> + </size> </property> - <property name="topMargin"> - <number>0</number> + <property name="maximumSize"> + <size> + <width>160</width> + <height>160</height> + </size> </property> - <property name="rightMargin"> - <number>0</number> + <property name="font"> + <font> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="cursor"> + <cursorShape>PointingHandCursor</cursorShape> + </property> + <property name="styleSheet"> + <string notr="true">border: none;</string> + </property> + <property name="text"> + <string/> + </property> + <property name="iconSize"> + <size> + <width>160</width> + <height>160</height> + </size> + </property> + <property name="flat"> + <bool>false</bool> </property> - <property name="bottomMargin"> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_18"> + <property name="topMargin"> + <number>10</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_58" stretch="0,40"> + <property name="spacing"> <number>0</number> </property> + <property name="sizeConstraint"> + <enum>QLayout::SetDefaultConstraint</enum> + </property> <item> - <layout class="QHBoxLayout" name="horizontalLayout_16"> - <property name="bottomMargin"> - <number>5</number> - </property> - <item> - <spacer name="horizontalSpacer_14"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>1</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="label_11"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>40</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>40</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>8</pointsize> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="layoutDirection"> - <enum>Qt::LeftToRight</enum> - </property> - <property name="text"> - <string>Account</string> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_60"> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <spacer name="horizontalSpacer_42"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>1</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="currentRegisteredIDLabel"> - <property name="minimumSize"> - <size> - <width>90</width> - <height>32</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>32</height> - </size> - </property> - <property name="text"> - <string>Registered Name</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_59"> - <property name="bottomMargin"> - <number>3</number> - </property> - <item> - <spacer name="horizontalSpacer_41"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>1</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="currentRingIDMessage"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>40</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>150</width> - <height>40</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>8</pointsize> - <stylestrategy>PreferAntialias</stylestrategy> - </font> - </property> - <property name="text"> - <string>ID</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_7"> - <item> - <spacer name="horizontalSpacer_25"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="label_7"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>30</height> - </size> - </property> - <property name="text"> - <string>Password</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_28"> - <property name="orientation"> - <enum>Qt::Vertical</enum> + <widget class="QWidget" name="widget_4" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> + <property name="minimumSize"> + <size> + <width>110</width> + <height>0</height> + </size> </property> - <property name="sizeHint" stdset="0"> + <property name="maximumSize"> <size> - <width>20</width> - <height>8</height> + <width>110</width> + <height>16777215</height> </size> </property> - </spacer> - </item> - </layout> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_20"> - <property name="spacing"> - <number>0</number> - </property> - <property name="leftMargin"> - <number>10</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_14"> - <property name="bottomMargin"> - <number>5</number> - </property> - <item> - <widget class="QCheckBox" name="accountEnableCheckBox"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>40</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>140</width> - <height>40</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - </font> + <layout class="QVBoxLayout" name="verticalLayout_19"> + <property name="spacing"> + <number>0</number> </property> - <property name="layoutDirection"> - <enum>Qt::LeftToRight</enum> + <property name="leftMargin"> + <number>0</number> </property> - <property name="styleSheet"> - <string notr="true"/> + <property name="topMargin"> + <number>0</number> </property> - <property name="text"> - <string>Enable</string> + <property name="rightMargin"> + <number>0</number> </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_15"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> + <property name="bottomMargin"> + <number>0</number> </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>1</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_61"> - <item> - <widget class="QLineEdit" name="currentRegisteredID"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>250</width> - <height>32</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>144444</width> - <height>32</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - <stylestrategy>PreferAntialias</stylestrategy> - </font> - </property> - <property name="mouseTracking"> - <bool>true</bool> - </property> - <property name="styleSheet"> - <string notr="true">padding-left: 10; border: 1px solid black;</string> - </property> - <property name="text"> - <string/> - </property> - <property name="frame"> - <bool>false</bool> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="readOnly"> - <bool>false</bool> - </property> - <property name="placeholderText"> - <string>Type here to register a username</string> - </property> - <property name="clearButtonEnabled"> - <bool>false</bool> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="regNameButton"> - <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="text"> - <string/> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> - </size> - </property> - <property name="flat"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_9"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>1</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_62"> - <property name="spacing"> - <number>0</number> - </property> - <item> - <widget class="QLineEdit" name="currentRingID"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>290</width> - <height>40</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>40</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - <stylestrategy>PreferAntialias</stylestrategy> - </font> - </property> - <property name="layoutDirection"> - <enum>Qt::RightToLeft</enum> - </property> - <property name="styleSheet"> - <string notr="true">border: 0px; padding: 1px;</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_10"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>1</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_63"> - <property name="leftMargin"> - <number>5</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <item> - <widget class="QPushButton" name="passwdPushButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>134</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>134</width> - <height>30</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - <underline>false</underline> - </font> - </property> - <property name="styleSheet"> - <string notr="true">QPushButton {background: rgb(245, 245, 245); border: 0px; border-radius: 3px;} + <item> + <layout class="QHBoxLayout" name="horizontalLayout_16"> + <property name="bottomMargin"> + <number>5</number> + </property> + <item> + <spacer name="horizontalSpacer_14"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>1</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_11"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>40</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>40</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>8</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="layoutDirection"> + <enum>Qt::LeftToRight</enum> + </property> + <property name="text"> + <string>Account</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_60"> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <spacer name="horizontalSpacer_42"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>1</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="currentRegisteredIDLabel"> + <property name="minimumSize"> + <size> + <width>90</width> + <height>32</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>32</height> + </size> + </property> + <property name="text"> + <string>Registered Name</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_59"> + <property name="bottomMargin"> + <number>3</number> + </property> + <item> + <spacer name="horizontalSpacer_41"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>1</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="currentRingIDMessage"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>40</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>150</width> + <height>40</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>8</pointsize> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="text"> + <string>ID</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_7"> + <item> + <spacer name="horizontalSpacer_25"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_7"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>30</height> + </size> + </property> + <property name="text"> + <string>Password</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_28"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>8</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_20"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>10</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_14"> + <property name="bottomMargin"> + <number>5</number> + </property> + <item> + <widget class="QCheckBox" name="accountEnableCheckBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>40</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>140</width> + <height>40</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>9</pointsize> + </font> + </property> + <property name="layoutDirection"> + <enum>Qt::LeftToRight</enum> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="text"> + <string>Enable</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_15"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>1</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_61"> + <item> + <widget class="QLineEdit" name="currentRegisteredID"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>250</width> + <height>32</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>144444</width> + <height>32</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>9</pointsize> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="mouseTracking"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true">padding-left: 10; border: 1px solid black;</string> + </property> + <property name="text"> + <string/> + </property> + <property name="frame"> + <bool>false</bool> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string>Type here to register a username</string> + </property> + <property name="clearButtonEnabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="regNameButton"> + <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="text"> + <string/> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_9"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>1</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_62"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLineEdit" name="currentRingID"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>290</width> + <height>40</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>40</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>9</pointsize> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="layoutDirection"> + <enum>Qt::RightToLeft</enum> + </property> + <property name="styleSheet"> + <string notr="true">border: 0px; padding: 1px;</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_10"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>1</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_63"> + <property name="leftMargin"> + <number>5</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <item> + <widget class="QPushButton" name="passwdPushButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>134</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>134</width> + <height>30</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>9</pointsize> + <underline>false</underline> + </font> + </property> + <property name="styleSheet"> + <string notr="true">QPushButton {background: rgb(245, 245, 245); border: 0px; border-radius: 3px;} QPushButton:hover {background: rgb(237,237, 237); border: 0px; border-radius: 3px;} QPushButton:pressed {background: rgb(230,230, 230); border: 0px; border-radius: 3px;}</string> - </property> - <property name="text"> - <string>Change Password</string> - </property> - <property name="checkable"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_7"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_8"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>8</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> - </item> - </layout> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_64" stretch="0,0"> - <property name="spacing"> - <number>10</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <item> - <widget class="QLineEdit" name="displayNameLineEdit"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>180</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>180</width> - <height>50</height> - </size> - </property> - <property name="font"> - <font> - <stylestrategy>PreferAntialias</stylestrategy> - </font> - </property> - <property name="styleSheet"> - <string notr="true">border: 0px; border-radius: 3px; background: rgb(245, 245, 245);</string> - </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_45"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>400</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <layout class="QGridLayout" name="gridLayout_8"> - <property name="topMargin"> - <number>30</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item row="1" column="0"> - <spacer name="verticalSpacer_30"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>32</height> - </size> - </property> - </spacer> - </item> - <item row="0" column="0"> - <layout class="QHBoxLayout" name="horizontalLayout_65"> - <property name="spacing"> - <number>50</number> - </property> - <property name="leftMargin"> - <number>50</number> - </property> - <property name="topMargin"> - <number>20</number> - </property> - <property name="rightMargin"> - <number>50</number> - </property> - <property name="bottomMargin"> - <number>20</number> - </property> - <item> - <widget class="QPushButton" name="btnExportAccount"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">border: 0px; border-radius: 3px; background: #e8f5e9;</string> - </property> - <property name="text"> - <string>Export Account</string> - </property> - <property name="flat"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="btnDeletAccount"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">border: 0px; border-radius: 3px; background:#ffebee;</string> - </property> - <property name="text"> - <string>Delete Account</string> - </property> - <property name="flat"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> - </item> - <item row="2" column="0"> - <widget class="QLabel" name="label"> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>30</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="text"> - <string>Linked Devices</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_66"> - <property name="leftMargin"> - <number>0</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>1</number> - </property> - <property name="bottomMargin"> - <number>3</number> - </property> - <item> - <spacer name="horizontalSpacer_46"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="label_12"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="linkDevPushButton"> - <property name="minimumSize"> - <size> - <width>150</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>80000</width> - <height>30</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">border: 0px; border-radius: 3px; background: rgb(245, 245, 245); + </property> + <property name="text"> + <string>Change Password</string> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_7"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_8"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>8</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_64" stretch="0,0"> + <property name="spacing"> + <number>10</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <item> + <widget class="QLineEdit" name="displayNameLineEdit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>180</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>180</width> + <height>50</height> + </size> + </property> + <property name="font"> + <font> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="styleSheet"> + <string notr="true">border: 0px; border-radius: 3px; background: rgb(245, 245, 245);</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_45"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>400</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QGridLayout" name="gridLayout_8"> + <property name="topMargin"> + <number>30</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item row="1" column="0"> + <spacer name="verticalSpacer_30"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>32</height> + </size> + </property> + </spacer> + </item> + <item row="0" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout_65"> + <property name="spacing"> + <number>50</number> + </property> + <property name="leftMargin"> + <number>50</number> + </property> + <property name="topMargin"> + <number>20</number> + </property> + <property name="rightMargin"> + <number>50</number> + </property> + <property name="bottomMargin"> + <number>20</number> + </property> + <item> + <widget class="QPushButton" name="btnExportAccount"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">border: 0px; border-radius: 3px; background: #e8f5e9;</string> + </property> + <property name="text"> + <string>Export Account</string> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="btnDeletAccount"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">border: 0px; border-radius: 3px; background:#ffebee;</string> + </property> + <property name="text"> + <string>Delete Account</string> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label"> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>30</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>Linked Devices</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_66"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>1</number> + </property> + <property name="bottomMargin"> + <number>3</number> + </property> + <item> + <spacer name="horizontalSpacer_46"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_12"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="linkDevPushButton"> + <property name="minimumSize"> + <size> + <width>150</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>80000</width> + <height>30</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">border: 0px; border-radius: 3px; background: rgb(245, 245, 245); padding: 5px; </string> - </property> - <property name="text"> - <string>Link Another Device</string> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> - </size> - </property> - <property name="flat"> - <bool>false</bool> - </property> - </widget> - </item> - </layout> - </item> - <item> - <widget class="QListWidget" name="settingsListWidget"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>600</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>200</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true">border: 1px solid grey;</string> - </property> - <property name="frameShadow"> - <enum>QFrame::Plain</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="showDropIndicator" stdset="0"> - <bool>false</bool> - </property> - <property name="alternatingRowColors"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::NoSelection</enum> - </property> - <property name="uniformItemSizes"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_67"> - <property name="topMargin"> - <number>5</number> - </property> - <item> - <widget class="QPushButton" name="blockedContactsBtn"> - <property name="minimumSize"> - <size> - <width>120</width> - <height>25</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>180</width> - <height>25</height> - </size> - </property> - <property name="layoutDirection"> - <enum>Qt::RightToLeft</enum> - </property> - <property name="styleSheet"> - <string notr="true">border: 0px; border-radius: 3px; background: rgb(245, 245, 245); + </property> + <property name="text"> + <string>Link Another Device</string> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + <property name="flat"> + <bool>false</bool> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QListWidget" name="settingsListWidget"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>600</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>200</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">border: 1px solid grey;</string> + </property> + <property name="frameShadow"> + <enum>QFrame::Plain</enum> + </property> + <property name="editTriggers"> + <set>QAbstractItemView::NoEditTriggers</set> + </property> + <property name="showDropIndicator" stdset="0"> + <bool>false</bool> + </property> + <property name="alternatingRowColors"> + <bool>false</bool> + </property> + <property name="selectionMode"> + <enum>QAbstractItemView::NoSelection</enum> + </property> + <property name="uniformItemSizes"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_67"> + <property name="topMargin"> + <number>5</number> + </property> + <item> + <widget class="QPushButton" name="blockedContactsBtn"> + <property name="minimumSize"> + <size> + <width>120</width> + <height>25</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>180</width> + <height>25</height> + </size> + </property> + <property name="layoutDirection"> + <enum>Qt::RightToLeft</enum> + </property> + <property name="styleSheet"> + <string notr="true">border: 0px; border-radius: 3px; background: rgb(245, 245, 245); +padding-right: 20px; +padding-left: 15px; +</string> + </property> + <property name="text"> + <string>Blocked Contacts</string> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_47"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="advancedSettingsOffsetLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>4</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>4</height> + </size> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_10"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>15</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_68" stretch="1,0,1"> + <property name="topMargin"> + <number>4</number> + </property> + <property name="bottomMargin"> + <number>15</number> + </property> + <item> + <spacer name="horizontalSpacer_48"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="advancedAccountSettingsPButton"> + <property name="minimumSize"> + <size> + <width>180</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>600</width> + <height>30</height> + </size> + </property> + <property name="layoutDirection"> + <enum>Qt::RightToLeft</enum> + </property> + <property name="styleSheet"> + <string notr="true">border: 0px; border-radius: 3px; background: rgb(245, 245, 245); padding-right: 20px; padding-left: 15px; </string> - </property> - <property name="text"> - <string>Blocked Contacts</string> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> - </size> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_47"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> + </property> + <property name="text"> + <string>Advanced Account Settings</string> + </property> + <property name="iconSize"> + <size> + <width>24</width> + <height>24</height> + </size> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_49"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_9"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> </item> <item> - <widget class="QLabel" name="advancedSettingsOffsetLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> + <widget class="QLabel" name="scrollBarLabel"> <property name="minimumSize"> <size> - <width>0</width> - <height>4</height> + <width>4</width> + <height>0</height> </size> </property> <property name="maximumSize"> <size> - <width>16777215</width> - <height>4</height> + <width>4</width> + <height>16777215</height> </size> </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_10"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> + <property name="toolTip"> + <string notr="true"/> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>15</height> - </size> + <property name="whatsThis"> + <string notr="true"/> </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_68" stretch="1,0,1"> - <property name="topMargin"> - <number>4</number> + <property name="text"> + <string/> </property> - <property name="bottomMargin"> - <number>15</number> + <property name="textFormat"> + <enum>Qt::PlainText</enum> </property> - <item> - <spacer name="horizontalSpacer_48"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="advancedAccountSettingsPButton"> - <property name="minimumSize"> - <size> - <width>180</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>600</width> - <height>30</height> - </size> - </property> - <property name="layoutDirection"> - <enum>Qt::RightToLeft</enum> - </property> - <property name="styleSheet"> - <string notr="true">border: 0px; border-radius: 3px; background: rgb(245, 245, 245); -padding-right: 20px; -padding-left: 15px; -</string> - </property> - <property name="text"> - <string>Advanced Account Settings</string> - </property> - <property name="iconSize"> - <size> - <width>24</width> - <height>24</height> - </size> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_49"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> + </widget> </item> <item> - <spacer name="verticalSpacer_9"> + <spacer name="horizontalSpacer_3"> <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> + <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> - <width>20</width> - <height>40</height> + <width>697</width> + <height>811</height> </size> </property> </spacer> </item> </layout> - </widget> - </item> - <item> - <widget class="QLabel" name="scrollBarLabel"> - <property name="minimumSize"> - <size> - <width>4</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>4</width> - <height>16777215</height> - </size> - </property> - <property name="toolTip"> - <string notr="true"/> - </property> - <property name="whatsThis"> - <string notr="true"/> - </property> - <property name="text"> - <string/> - </property> - <property name="textFormat"> - <enum>Qt::PlainText</enum> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_3"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>697</width> - <height>811</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> - </widget> + </item> + </layout> + </widget> + </widget> + </item> + </layout> </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="avSettings"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <layout class="QGridLayout" name="gridLayout_3"> - <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 row="0" column="0"> - <layout class="QVBoxLayout" name="verticalLayout_3"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="2,0,3"> - <property name="spacing"> - <number>0</number> - </property> - <item> - <spacer name="horizontalSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QWidget" name="widget_2" native="true"> - <property name="minimumSize"> - <size> - <width>580</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>580</width> - <height>16777215</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - <layout class="QVBoxLayout" name="verticalLayout_8" stretch="2,0,0,0,0,0,0,5"> + <widget class="QWidget" name="avSettings"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <layout class="QGridLayout" name="gridLayout_3"> + <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 row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="2,0,3"> + <property name="spacing"> + <number>0</number> + </property> <item> - <spacer name="verticalSpacer_23"> + <spacer name="horizontalSpacer"> <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> + <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> - <width>20</width> - <height>40</height> + <width>40</width> + <height>20</height> </size> </property> </spacer> </item> <item> - <layout class="QVBoxLayout" name="verticalLayout_9"> - <item> - <widget class="QLabel" name="label_16"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>30</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>13</pointsize> - </font> - </property> - <property name="text"> - <string>Audio</string> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_12"> - <property name="spacing"> - <number>0</number> - </property> - <property name="leftMargin"> - <number>20</number> - </property> - <item> - <spacer name="verticalSpacer_13"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_32"> - <property name="spacing"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="label_18"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>200</width> - <height>16777215</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="text"> - <string>Microphone</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_20"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QComboBox" name="inputComboBox"> - <property name="minimumSize"> - <size> - <width>320</width> - <height>0</height> - </size> - </property> - <property name="toolTip"> - <string>Audio input device selector</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_31"> - <property name="spacing"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="label_17"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>100</width> - <height>16777215</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="text"> - <string>Output Device</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_13"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QComboBox" name="outputComboBox"> - <property name="minimumSize"> - <size> - <width>320</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>200</width> - <height>16777215</height> - </size> - </property> - <property name="toolTip"> - <string>Choose the output device</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_22"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>30</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_9"> - <item> - <widget class="QLabel" name="label_19"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>30</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>13</pointsize> - </font> - </property> - <property name="text"> - <string>Video</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_13"> - <property name="leftMargin"> - <number>20</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_33"> - <property name="spacing"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="label_20"> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="text"> - <string>Device</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_21"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QComboBox" name="deviceBox"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>320</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="toolTip"> - <string>Video device selector</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_34"> - <property name="spacing"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="label_21"> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="text"> - <string>Resolution</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_22"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QComboBox" name="sizeBox"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>320</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="toolTip"> - <string>Video device resolution selector</string> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_3"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> + <widget class="QWidget" name="widget_2" native="true"> + <property name="minimumSize"> <size> - <width>20</width> - <height>40</height> + <width>580</width> + <height>0</height> </size> </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="videoLayout" stretch="1,0,1"> - <property name="spacing"> - <number>0</number> - </property> - <item> - <spacer name="horizontalSpacer_23"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="VideoWidget" name="videoWidget" native="true"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>520</width> - <height>300</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="baseSize"> - <size> - <width>550</width> - <height>300</height> - </size> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_24"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::MinimumExpanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <widget class="QLabel" name="previewUnavailableLabel"> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> + <property name="maximumSize"> + <size> + <width>580</width> + <height>16777215</height> + </size> </property> - <property name="text"> - <string>Preview unavailable during call</string> + <property name="styleSheet"> + <string notr="true"/> </property> + <layout class="QVBoxLayout" name="verticalLayout_8" stretch="2,0,0,0,0,0,0,5"> + <item> + <spacer name="verticalSpacer_23"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_9"> + <item> + <widget class="QLabel" name="label_16"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>30</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>13</pointsize> + </font> + </property> + <property name="text"> + <string>Audio</string> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_12"> + <property name="spacing"> + <number>0</number> + </property> + <property name="leftMargin"> + <number>20</number> + </property> + <item> + <spacer name="verticalSpacer_13"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_32"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_18"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>Microphone</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_20"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QComboBox" name="inputComboBox"> + <property name="minimumSize"> + <size> + <width>320</width> + <height>0</height> + </size> + </property> + <property name="toolTip"> + <string>Audio input device selector</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_31"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_17"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>100</width> + <height>16777215</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>Output Device</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_13"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QComboBox" name="outputComboBox"> + <property name="minimumSize"> + <size> + <width>320</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Choose the output device</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_22"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>30</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_9"> + <item> + <widget class="QLabel" name="label_19"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>30</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>13</pointsize> + </font> + </property> + <property name="text"> + <string>Video</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_13"> + <property name="leftMargin"> + <number>20</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_33"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_20"> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>Device</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_21"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QComboBox" name="deviceBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>320</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Video device selector</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_34"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_21"> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>Resolution</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_22"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QComboBox" name="sizeBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>320</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Video device resolution selector</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_3"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="videoLayout" stretch="1,0,1"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <spacer name="horizontalSpacer_23"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="VideoWidget" name="videoWidget" native="true"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>520</width> + <height>300</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>550</width> + <height>300</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_24"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::MinimumExpanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QLabel" name="previewUnavailableLabel"> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="text"> + <string>Preview unavailable during call</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_24"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> </widget> </item> <item> - <spacer name="verticalSpacer_24"> + <spacer name="horizontalSpacer_11"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> - <width>20</width> - <height>40</height> + <width>40</width> + <height>20</height> </size> </property> </spacer> </item> </layout> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_11"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> - </item> - </layout> - </widget> + </item> + </layout> + </item> + </layout> + </widget> + </widget> + </item> + </layout> </widget> </item> </layout> diff --git a/wizardwidget.cpp b/wizardwidget.cpp index 772cf2ece127f7925a0d370a3e6a80084c54d59f..d88be84b57df6b491ba1084906e1a6d39d8c71c9 100644 --- a/wizardwidget.cpp +++ b/wizardwidget.cpp @@ -45,11 +45,6 @@ WizardWidget::WizardWidget(WizardMode wizardMode, AccountInfo* toBeMigrated, QWi { ui->setupUi(this); - Qt::WindowFlags flags = windowFlags(); - flags = flags & (~Qt::WindowContextHelpButtonHint); - - setWindowFlags(flags); - QPixmap logo(":/images/logo-jami-standard-coul.png"); ui->welcomeLogo->setPixmap(logo.scaledToHeight(65, Qt::SmoothTransformation)); @@ -81,6 +76,8 @@ WizardWidget::WizardWidget(WizardMode wizardMode, AccountInfo* toBeMigrated, QWi connect(&nameLookupTimer_, &QTimer::timeout, this, &WizardWidget::timeoutNameLookupTimer); connect(ui->photoBooth, &PhotoboothWidget::photoTaken, this, &WizardWidget::on_photoTaken); ui->avatarLabel->hide(); + + ui->containerWidget->setVisible(false); } WizardWidget::~WizardWidget() @@ -90,6 +87,13 @@ WizardWidget::~WizardWidget() delete ui; } +void +WizardWidget::navigated(bool to) +{ + ui->containerWidget->setVisible(to); + Utils::setStackWidget(ui->stackedWidget, ui->welcomePage); +} + void WizardWidget::processWizardInformations() { diff --git a/wizardwidget.h b/wizardwidget.h index f5ba21d09f77175de23b540fd30e14a3ba6b8f70..c77edb8d2220c3b08a4fc7360c7c2ca6544ffe8d 100644 --- a/wizardwidget.h +++ b/wizardwidget.h @@ -52,6 +52,9 @@ public: explicit WizardWidget(WizardMode wizardMode = WIZARD, AccountInfo* toBeMigrated = nullptr, QWidget* parent = 0); ~WizardWidget(); + // NavWidget + virtual void navigated(bool to); + //UI Slots private slots: void on_existingPushButton_clicked(); diff --git a/wizardwidget.ui b/wizardwidget.ui index 9a286e48ecfae3a8dea72eb7befde92817517697..3c607e2472ad71b0a5156c7cf7c048279daf0228 100644 --- a/wizardwidget.ui +++ b/wizardwidget.ui @@ -36,660 +36,978 @@ <string>Account creation wizard dialog</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> + <property name="spacing"> + <number>0</number> + </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="currentIndex"> - <number>0</number> - </property> - <widget class="QWidget" name="welcomePage"> - <layout class="QVBoxLayout" name="verticalLayout_3"> - <item> - <spacer name="verticalSpacer_6"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="welcomeLabel"> - <property name="font"> - <font> - <pointsize>30</pointsize> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="accessibleName"> - <string>Welcome Label</string> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(63, 63, 63)</string> - </property> - <property name="text"> - <string> Welcome to</string> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="indent"> - <number>0</number> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_12"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>10</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="welcomeLogo"> - <property name="accessibleName"> - <string>Welcome Logo</string> - </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_7"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>10</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="newAccountButton"> - <property name="minimumSize"> - <size> - <width>85</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Create Jami account button</string> - </property> - <property name="accessibleName"> - <string/> - </property> - <property name="accessibleDescription"> - <string>Push button for Jami account creation start trigger</string> - </property> - <property name="layoutDirection"> - <enum>Qt::LeftToRight</enum> - </property> - <property name="text"> - <string>Create Jami account</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="existingPushButton"> - <property name="minimumSize"> - <size> - <width>85</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Link device button</string> - </property> - <property name="accessibleName"> - <string/> - </property> - <property name="accessibleDescription"> - <string>Push button for device linkage start trigger</string> - </property> - <property name="text"> - <string>Link this device to an account</string> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_5"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - <widget class="QWidget" name="linkMethodPage"> - <layout class="QVBoxLayout" name="verticalLayout_7"> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="label_3"> - <property name="font"> - <font> - <pointsize>30</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(63, 63, 63)</string> - </property> - <property name="text"> - <string>Select link method</string> - </property> + <widget class="QWidget" name="containerWidget" native="true"> + <layout class="QGridLayout" name="gridLayout_3"> + <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 row="0" column="0"> + <widget class="QStackedWidget" name="stackedWidget"> + <property name="currentIndex"> + <number>0</number> + </property> + <widget class="QWidget" name="welcomePage"> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> + <spacer name="verticalSpacer_6"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="welcomeLabel"> + <property name="font"> + <font> + <pointsize>30</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="accessibleName"> + <string>Welcome Label</string> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(63, 63, 63)</string> + </property> + <property name="text"> + <string> Welcome to</string> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="indent"> + <number>0</number> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_12"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>10</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="welcomeLogo"> + <property name="accessibleName"> + <string>Welcome Logo</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_7"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>10</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="newAccountButton"> + <property name="minimumSize"> + <size> + <width>85</width> + <height>30</height> + </size> + </property> + <property name="toolTip"> + <string>Create Jami account button</string> + </property> + <property name="accessibleName"> + <string/> + </property> + <property name="accessibleDescription"> + <string>Push button for Jami account creation start trigger</string> + </property> + <property name="layoutDirection"> + <enum>Qt::LeftToRight</enum> + </property> + <property name="text"> + <string>Create Jami account</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="existingPushButton"> + <property name="minimumSize"> + <size> + <width>85</width> + <height>30</height> + </size> + </property> + <property name="toolTip"> + <string>Link device button</string> + </property> + <property name="accessibleName"> + <string/> + </property> + <property name="accessibleDescription"> + <string>Push button for device linkage start trigger</string> + </property> + <property name="text"> + <string>Link this device to an account</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_5"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> </widget> - </item> - <item> - <spacer name="verticalSpacer_14"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>139</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,2,1"> - <property name="topMargin"> - <number>0</number> - </property> - <item> - <spacer name="horizontalSpacer_4"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_8"> - <property name="leftMargin"> - <number>0</number> - </property> - <item> - <widget class="QPushButton" name="dhtImportBtn"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Link account to device from the network</string> - </property> - <property name="text"> - <string>Link account from DHT</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="fileImportBtn"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Link from exported account archive file</string> - </property> - <property name="text"> - <string>Link account from file</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="horizontalSpacer_3"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_13"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>139</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - <widget class="QWidget" name="explanationPage"> - <layout class="QVBoxLayout" name="verticalLayout_6"> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="label"> - <property name="font"> - <font> - <pointsize>30</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(63, 63, 63)</string> - </property> - <property name="text"> - <string>How to add a device</string> - </property> + <widget class="QWidget" name="linkMethodPage"> + <layout class="QVBoxLayout" name="verticalLayout_7"> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="label_3"> + <property name="font"> + <font> + <pointsize>30</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(63, 63, 63)</string> + </property> + <property name="text"> + <string>Select link method</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_14"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>139</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,2,1"> + <property name="topMargin"> + <number>0</number> + </property> + <item> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_8"> + <property name="leftMargin"> + <number>0</number> + </property> + <item> + <widget class="QPushButton" name="dhtImportBtn"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="toolTip"> + <string>Link account to device from the network</string> + </property> + <property name="text"> + <string>Link account from DHT</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="fileImportBtn"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> + </property> + <property name="toolTip"> + <string>Link from exported account archive file</string> + </property> + <property name="text"> + <string>Link account from file</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_13"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>139</height> + </size> + </property> + </spacer> + </item> + </layout> </widget> - </item> - <item> - <widget class="QTextBrowser" name="textBrowser"> - <property name="html"> - <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> + <widget class="QWidget" name="explanationPage"> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="label"> + <property name="font"> + <font> + <pointsize>30</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(63, 63, 63)</string> + </property> + <property name="text"> + <string>How to add a device</string> + </property> + </widget> + </item> + <item> + <widget class="QTextBrowser" name="textBrowser"> + <property name="html"> + <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Cantarell'; font-size:11pt; font-weight:400; font-style:normal;"> +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:12pt;">To link this device to another account, you first </span><span style=" font-family:'Ubuntu'; font-size:12pt; font-weight:600;">need to obtain a PIN</span><span style=" font-family:'Ubuntu'; font-size:12pt;"> code. To generate the PIN code:</span></p> <ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" font-family:'Ubuntu'; font-size:12pt;" style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Go to the <span style=" font-weight:600;">Account management setting</span> of a previous device</li> <li style=" font-family:'Ubuntu'; font-size:12pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Choose the <span style=" font-weight:600;">Jami account</span> you want to use</li> <li style=" font-family:'Ubuntu'; font-size:12pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Go to the <span style=" font-weight:600;">Devices</span> tab</li> <li style=" font-family:'Ubuntu'; font-size:12pt;" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Select <span style=" font-weight:600;">Add a device</span></li></ol> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:12pt;">You will get the necessary PIN to complete this form. The PIN is only valid for </span><span style=" font-family:'Ubuntu'; font-size:12pt; font-weight:600;">10 minutes</span><span style=" font-family:'Ubuntu'; font-size:12pt;">.</span></p></body></html></string> - </property> + </property> + </widget> + </item> + </layout> </widget> - </item> - </layout> - </widget> - <widget class="QWidget" name="fileImportPage"> - <layout class="QVBoxLayout" name="verticalLayout_9"> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="label_2"> - <property name="font"> - <font> - <pointsize>30</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(63, 63, 63)</string> - </property> - <property name="text"> - <string>Select file to import</string> - </property> + <widget class="QWidget" name="fileImportPage"> + <layout class="QVBoxLayout" name="verticalLayout_9"> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="label_2"> + <property name="font"> + <font> + <pointsize>30</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(63, 63, 63)</string> + </property> + <property name="text"> + <string>Select file to import</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_16"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>126</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="1,2"> + <property name="topMargin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="archivePathLabel"> + <property name="text"> + <string>Account archive path:</string> + </property> + </widget> + </item> + <item> + <widget class="RingButton" name="archivePathSelector"> + <property name="toolTip"> + <string>Account archive path selector</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="1,2"> + <property name="topMargin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="archivePasswordLabel"> + <property name="text"> + <string>Archive password:</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="archivePasswordInput"> + <property name="toolTip"> + <string>Archive passord input</string> + </property> + <property name="echoMode"> + <enum>QLineEdit::Password</enum> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer_15"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>126</height> + </size> + </property> + </spacer> + </item> + </layout> </widget> - </item> - <item> - <spacer name="verticalSpacer_16"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>126</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="1,2"> - <property name="topMargin"> - <number>0</number> - </property> + <widget class="QWidget" name="profilePage"> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="profileLabel"> + <property name="font"> + <font> + <pointsize>30</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(63, 63, 63)</string> + </property> + <property name="text"> + <string>Create your profile</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_4"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="PhotoboothWidget" name="photoBooth" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>300</width> + <height>300</height> + </size> + </property> + <property name="toolTip"> + <string>Photobooth Widget</string> + </property> + <property name="accessibleName"> + <string/> + </property> + </widget> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="avatarLabel"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>100</height> + </size> + </property> + <property name="font"> + <font> + <kerning>true</kerning> + </font> + </property> + <property name="mouseTracking"> + <bool>false</bool> + </property> + <property name="toolTip"> + <string>Avatar display</string> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="text"> + <string/> + </property> + <property name="textFormat"> + <enum>Qt::AutoText</enum> + </property> + <property name="pixmap"> + <pixmap>:/images/user/btn-default-userpic.svg</pixmap> + </property> + <property name="scaledContents"> + <bool>false</bool> + </property> + <property name="openExternalLinks"> + <bool>false</bool> + </property> + <property name="textInteractionFlags"> + <set>Qt::NoTextInteraction</set> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>30</height> + </size> + </property> + </spacer> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="fullNameLabel"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>17</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>12</pointsize> + </font> + </property> + <property name="text"> + <string>Enter your full name:</string> + </property> + </widget> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLineEdit" name="fullNameEdit"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="toolTip"> + <string>Full name edit</string> + </property> + <property name="accessibleName"> + <string/> + </property> + <property name="accessibleDescription"> + <string>Text entry for full name input</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_8"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="accountPage"> + <layout class="QVBoxLayout" name="verticalLayout_5"> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="accountLabel"> + <property name="font"> + <font> + <pointsize>30</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(63, 63, 63)</string> + </property> + <property name="text"> + <string>Create your account</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_9"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="infoLabel"> + <property name="font"> + <font> + <pointsize>12</pointsize> + </font> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + <property name="buddy"> + <cstring>usernameEdit</cstring> + </property> + </widget> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QCheckBox" name="signUpCheckbox"> + <property name="toolTip"> + <string>Register your username on the Jami. This will reserve the username so that only you can use it. Your friends will be able to call you with your usename instead of using your ID.</string> + </property> + <property name="accessibleName"> + <string>Public username checkbox</string> + </property> + <property name="accessibleDescription"> + <string>Checkbox selecting if the user wants a public username</string> + </property> + <property name="text"> + <string>Register public username (experimental)</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLineEdit" name="usernameEdit"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="toolTip"> + <string>Public username edit</string> + </property> + <property name="accessibleName"> + <string/> + </property> + <property name="placeholderText"> + <string>Choose your username</string> + </property> + <property name="clearButtonEnabled"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="searchingStateLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="accessibleName"> + <string>Public username validation status</string> + </property> + <property name="text"> + <string>Searching...</string> + </property> + <property name="margin"> + <number>6</number> + </property> + </widget> + </item> + </layout> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLineEdit" name="pinEdit"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="toolTip"> + <string>PIN edit</string> + </property> + <property name="accessibleName"> + <string/> + </property> + <property name="accessibleDescription"> + <string>Device linking PIN text entry</string> + </property> + <property name="placeholderText"> + <string>Enter your pin</string> + </property> + <property name="clearButtonEnabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLineEdit" name="passwordEdit"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="toolTip"> + <string>Password text input</string> + </property> + <property name="accessibleName"> + <string/> + </property> + <property name="accessibleDescription"> + <string>Password text entry</string> + </property> + <property name="echoMode"> + <enum>QLineEdit::Password</enum> + </property> + <property name="placeholderText"> + <string>Password</string> + </property> + <property name="clearButtonEnabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLineEdit" name="confirmPasswordEdit"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="toolTip"> + <string>Password confirmation text input</string> + </property> + <property name="accessibleName"> + <string/> + </property> + <property name="accessibleDescription"> + <string>Password confirmation text input</string> + </property> + <property name="echoMode"> + <enum>QLineEdit::Password</enum> + </property> + <property name="placeholderText"> + <string>Confirm password</string> + </property> + <property name="clearButtonEnabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="spinnerPage"> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <item> + <spacer name="verticalSpacer_3"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="spinnerLabel"> + <property name="text"> + <string/> + </property> + <property name="pixmap"> + <pixmap resource="ressources.qrc">:/images/loading.gif</pixmap> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_11"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item alignment="Qt::AlignHCenter"> + <widget class="QLabel" name="progressLabel"> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>Generating your Jami account...</string> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer_10"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Minimum</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </widget> + </item> + <item row="1" column="0"> + <widget class="QWidget" name="navBarWidget" native="true"> + <layout class="QHBoxLayout" name="_2"> <item> - <widget class="QLabel" name="archivePathLabel"> - <property name="text"> - <string>Account archive path:</string> + <widget class="QPushButton" name="previousButton"> + <property name="minimumSize"> + <size> + <width>85</width> + <height>30</height> + </size> </property> - </widget> - </item> - <item> - <widget class="RingButton" name="archivePathSelector"> <property name="toolTip"> - <string>Account archive path selector</string> + <string>Previous page button</string> </property> - <property name="text"> + <property name="accessibleName"> <string/> </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="1,2"> - <property name="topMargin"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="archivePasswordLabel"> + <property name="accessibleDescription"> + <string>push button to access previous page of wizard</string> + </property> <property name="text"> - <string>Archive password:</string> + <string>Previous</string> </property> </widget> </item> <item> - <widget class="QLineEdit" name="archivePasswordInput"> - <property name="toolTip"> - <string>Archive passord input</string> - </property> - <property name="echoMode"> - <enum>QLineEdit::Password</enum> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer_15"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>126</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - <widget class="QWidget" name="profilePage"> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="profileLabel"> - <property name="font"> - <font> - <pointsize>30</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(63, 63, 63)</string> - </property> - <property name="text"> - <string>Create your profile</string> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_4"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - </spacer> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="PhotoboothWidget" name="photoBooth" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>300</width> - <height>300</height> - </size> - </property> - <property name="toolTip"> - <string>Photobooth Widget</string> - </property> - <property name="accessibleName"> - <string/> - </property> - </widget> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="avatarLabel"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="minimumSize"> - <size> - <width>100</width> - <height>100</height> - </size> - </property> - <property name="font"> - <font> - <kerning>true</kerning> - </font> - </property> - <property name="mouseTracking"> - <bool>false</bool> - </property> - <property name="toolTip"> - <string>Avatar display</string> - </property> - <property name="autoFillBackground"> - <bool>false</bool> - </property> - <property name="text"> - <string/> - </property> - <property name="textFormat"> - <enum>Qt::AutoText</enum> - </property> - <property name="pixmap"> - <pixmap resource="ressources.qrc">:/images/user/btn-default-userpic.svg</pixmap> - </property> - <property name="scaledContents"> - <bool>false</bool> - </property> - <property name="openExternalLinks"> - <bool>false</bool> - </property> - <property name="textInteractionFlags"> - <set>Qt::NoTextInteraction</set> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_2"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>30</height> - </size> - </property> - </spacer> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="fullNameLabel"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>17</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>12</pointsize> - </font> - </property> - <property name="text"> - <string>Enter your full name:</string> - </property> - </widget> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLineEdit" name="fullNameEdit"> - <property name="minimumSize"> - <size> - <width>200</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>200</width> - <height>16777215</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="toolTip"> - <string>Full name edit</string> - </property> - <property name="accessibleName"> - <string/> - </property> - <property name="accessibleDescription"> - <string>Text entry for full name input</string> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_8"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - <widget class="QWidget" name="accountPage"> - <layout class="QVBoxLayout" name="verticalLayout_5"> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="accountLabel"> - <property name="font"> - <font> - <pointsize>30</pointsize> - </font> - </property> - <property name="styleSheet"> - <string notr="true">color: rgb(63, 63, 63)</string> - </property> - <property name="text"> - <string>Create your account</string> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_9"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QLabel" name="infoLabel"> - <property name="font"> - <font> - <pointsize>12</pointsize> - </font> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - <property name="wordWrap"> - <bool>true</bool> - </property> - <property name="buddy"> - <cstring>usernameEdit</cstring> - </property> - </widget> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QCheckBox" name="signUpCheckbox"> - <property name="toolTip"> - <string>Register your username on the Jami. This will reserve the username so that only you can use it. Your friends will be able to call you with your usename instead of using your ID.</string> - </property> - <property name="accessibleName"> - <string>Public username checkbox</string> - </property> - <property name="accessibleDescription"> - <string>Checkbox selecting if the user wants a public username</string> - </property> - <property name="text"> - <string>Register public username (experimental)</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_2"> - <property name="spacing"> - <number>0</number> - </property> - <item> - <spacer name="horizontalSpacer_2"> + <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> @@ -702,325 +1020,37 @@ p, li { white-space: pre-wrap; } </spacer> </item> <item> - <widget class="QLineEdit" name="usernameEdit"> + <widget class="QPushButton" name="nextButton"> <property name="minimumSize"> <size> - <width>200</width> - <height>0</height> + <width>85</width> + <height>30</height> </size> </property> <property name="maximumSize"> <size> - <width>200</width> - <height>16777215</height> + <width>85</width> + <height>30</height> </size> </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> <property name="toolTip"> - <string>Public username edit</string> + <string>Next page Button</string> </property> <property name="accessibleName"> <string/> </property> - <property name="placeholderText"> - <string>Choose your username</string> - </property> - <property name="clearButtonEnabled"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="searchingStateLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="accessibleName"> - <string>Public username validation status</string> + <property name="accessibleDescription"> + <string>Push button to access next page of wizard</string> </property> <property name="text"> - <string>Searching...</string> + <string>Next</string> </property> - <property name="margin"> - <number>6</number> + <property name="flat"> + <bool>false</bool> </property> </widget> </item> </layout> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLineEdit" name="pinEdit"> - <property name="minimumSize"> - <size> - <width>200</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>200</width> - <height>16777215</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="toolTip"> - <string>PIN edit</string> - </property> - <property name="accessibleName"> - <string/> - </property> - <property name="accessibleDescription"> - <string>Device linking PIN text entry</string> - </property> - <property name="placeholderText"> - <string>Enter your pin</string> - </property> - <property name="clearButtonEnabled"> - <bool>false</bool> - </property> - </widget> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLineEdit" name="passwordEdit"> - <property name="minimumSize"> - <size> - <width>200</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>200</width> - <height>16777215</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="toolTip"> - <string>Password text input</string> - </property> - <property name="accessibleName"> - <string/> - </property> - <property name="accessibleDescription"> - <string>Password text entry</string> - </property> - <property name="echoMode"> - <enum>QLineEdit::Password</enum> - </property> - <property name="placeholderText"> - <string>Password</string> - </property> - <property name="clearButtonEnabled"> - <bool>false</bool> - </property> - </widget> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLineEdit" name="confirmPasswordEdit"> - <property name="minimumSize"> - <size> - <width>200</width> - <height>0</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>200</width> - <height>16777215</height> - </size> - </property> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="toolTip"> - <string>Password confirmation text input</string> - </property> - <property name="accessibleName"> - <string/> - </property> - <property name="accessibleDescription"> - <string>Password confirmation text input</string> - </property> - <property name="echoMode"> - <enum>QLineEdit::Password</enum> - </property> - <property name="placeholderText"> - <string>Confirm password</string> - </property> - <property name="clearButtonEnabled"> - <bool>false</bool> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - <widget class="QWidget" name="spinnerPage"> - <layout class="QVBoxLayout" name="verticalLayout_4"> - <item> - <spacer name="verticalSpacer_3"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="spinnerLabel"> - <property name="text"> - <string/> - </property> - <property name="pixmap"> - <pixmap resource="ressources.qrc">:/images/loading.gif</pixmap> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_11"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item alignment="Qt::AlignHCenter"> - <widget class="QLabel" name="progressLabel"> - <property name="font"> - <font> - <pointsize>11</pointsize> - </font> - </property> - <property name="text"> - <string>Generating your Jami account...</string> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer_10"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Minimum</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - </widget> - </item> - <item> - <widget class="QWidget" name="navBarWidget" native="true"> - <layout class="QHBoxLayout" name="_2"> - <item> - <widget class="QPushButton" name="previousButton"> - <property name="minimumSize"> - <size> - <width>85</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Previous page button</string> - </property> - <property name="accessibleName"> - <string/> - </property> - <property name="accessibleDescription"> - <string>push button to access previous page of wizard</string> - </property> - <property name="text"> - <string>Previous</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="nextButton"> - <property name="minimumSize"> - <size> - <width>85</width> - <height>30</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>85</width> - <height>30</height> - </size> - </property> - <property name="toolTip"> - <string>Next page Button</string> - </property> - <property name="accessibleName"> - <string/> - </property> - <property name="accessibleDescription"> - <string>Push button to access next page of wizard</string> - </property> - <property name="text"> - <string>Next</string> - </property> - <property name="flat"> - <bool>false</bool> - </property> </widget> </item> </layout>