|
@@ -6,35 +6,232 @@
|
|
|
<rect>
|
|
|
<x>0</x>
|
|
|
<y>0</y>
|
|
|
- <width>640</width>
|
|
|
- <height>480</height>
|
|
|
+ <width>728</width>
|
|
|
+ <height>446</height>
|
|
|
</rect>
|
|
|
</property>
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
<property name="windowTitle">
|
|
|
<string>Form</string>
|
|
|
</property>
|
|
|
- <layout class="QGridLayout" name="gridLayout">
|
|
|
- <item row="0" column="0">
|
|
|
- <widget class="QLabel" name="label_supertitle">
|
|
|
- <property name="font">
|
|
|
- <font>
|
|
|
- <family>Arial</family>
|
|
|
- <pointsize>18</pointsize>
|
|
|
- </font>
|
|
|
+ <layout class="QVBoxLayout" name="verticalLayout">
|
|
|
+ <item>
|
|
|
+ <widget class="QScrollArea" name="scrollArea">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="autoFillBackground">
|
|
|
+ <bool>true</bool>
|
|
|
</property>
|
|
|
<property name="styleSheet">
|
|
|
- <string notr="true">color: white;</string>
|
|
|
+ <string notr="true">QScrollArea{
|
|
|
+ background: transparent;
|
|
|
+}
|
|
|
+
|
|
|
+QScrollBar:vertical {
|
|
|
+ border: 0px solid grey;
|
|
|
+ background: transparent;
|
|
|
+ width: 10px;
|
|
|
+ margin: 22px 0 22px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ QScrollBar::handle:vertical {
|
|
|
+ background-color: rgba(129, 129, 129, 150);
|
|
|
+ min-height: 10px;
|
|
|
+ border-radius: 5px;
|
|
|
+ }
|
|
|
+ QScrollBar::add-line:vertical {
|
|
|
+ border: 0px solid grey;
|
|
|
+ background: transparent;
|
|
|
+ height: 1px;
|
|
|
+ subcontrol-position: bottom;
|
|
|
+ subcontrol-origin: margin;
|
|
|
+ }
|
|
|
+
|
|
|
+ QScrollBar::sub-line:vertical {
|
|
|
+ border: 0px solid grey;
|
|
|
+ background: transparent;
|
|
|
+ height: 1px;
|
|
|
+ subcontrol-position: top;
|
|
|
+ subcontrol-origin: margin;
|
|
|
+ }
|
|
|
+ QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
|
|
|
+ border: 0px;
|
|
|
+ width: 3px;
|
|
|
+ height: 3px;
|
|
|
+ background: transparent;
|
|
|
+ }
|
|
|
+
|
|
|
+ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
|
|
+ background: none;
|
|
|
+ }</string>
|
|
|
+ </property>
|
|
|
+ <property name="frameShape">
|
|
|
+ <enum>QFrame::NoFrame</enum>
|
|
|
+ </property>
|
|
|
+ <property name="frameShadow">
|
|
|
+ <enum>QFrame::Plain</enum>
|
|
|
+ </property>
|
|
|
+ <property name="lineWidth">
|
|
|
+ <number>0</number>
|
|
|
</property>
|
|
|
- <property name="text">
|
|
|
- <string>Окно "Новости"</string>
|
|
|
+ <property name="sizeAdjustPolicy">
|
|
|
+ <enum>QAbstractScrollArea::AdjustToContents</enum>
|
|
|
</property>
|
|
|
- <property name="alignment">
|
|
|
- <set>Qt::AlignCenter</set>
|
|
|
+ <property name="widgetResizable">
|
|
|
+ <bool>true</bool>
|
|
|
</property>
|
|
|
+ <widget class="QWidget" name="scrollAreaWidgetContents">
|
|
|
+ <property name="geometry">
|
|
|
+ <rect>
|
|
|
+ <x>0</x>
|
|
|
+ <y>0</y>
|
|
|
+ <width>710</width>
|
|
|
+ <height>403</height>
|
|
|
+ </rect>
|
|
|
+ </property>
|
|
|
+ <layout class="QGridLayout" name="gridLayout_2">
|
|
|
+ <property name="leftMargin">
|
|
|
+ <number>11</number>
|
|
|
+ </property>
|
|
|
+ <property name="topMargin">
|
|
|
+ <number>11</number>
|
|
|
+ </property>
|
|
|
+ <property name="rightMargin">
|
|
|
+ <number>11</number>
|
|
|
+ </property>
|
|
|
+ <property name="bottomMargin">
|
|
|
+ <number>11</number>
|
|
|
+ </property>
|
|
|
+ <property name="spacing">
|
|
|
+ <number>7</number>
|
|
|
+ </property>
|
|
|
+ <item row="0" column="0">
|
|
|
+ <layout class="QVBoxLayout" name="news_layout">
|
|
|
+ <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="test_news_piece" native="true">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QWidget{
|
|
|
+border-radius: 20px;
|
|
|
+background-color: rgba(30, 0, 0, 100);
|
|
|
+color: white;
|
|
|
+}
|
|
|
+
|
|
|
+QLabel{
|
|
|
+border-radius: 2px;
|
|
|
+background-color:rgba(0,0,0,0);
|
|
|
+}</string>
|
|
|
+ </property>
|
|
|
+ <layout class="QGridLayout" name="news_piece_layout">
|
|
|
+ <item row="0" column="0" rowspan="2">
|
|
|
+ <widget class="QLabel" name="iconLabel">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="minimumSize">
|
|
|
+ <size>
|
|
|
+ <width>60</width>
|
|
|
+ <height>60</height>
|
|
|
+ </size>
|
|
|
+ </property>
|
|
|
+ <property name="maximumSize">
|
|
|
+ <size>
|
|
|
+ <width>60</width>
|
|
|
+ <height>60</height>
|
|
|
+ </size>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string/>
|
|
|
+ </property>
|
|
|
+ <property name="pixmap">
|
|
|
+ <pixmap resource="../res.qrc">:/assets/appicon.ico</pixmap>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="0" column="1">
|
|
|
+ <widget class="QLabel" name="titleLabel_title">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Trebuchet MS</family>
|
|
|
+ <pointsize>11</pointsize>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">color: white;
|
|
|
+text-decoration: none;</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>Тестовая новость - Название</string>
|
|
|
+ </property>
|
|
|
+ <property name="alignment">
|
|
|
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
|
|
+ </property>
|
|
|
+ <property name="wordWrap">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="1" column="1">
|
|
|
+ <widget class="QLabel" name="contentLabel">
|
|
|
+ <property name="text">
|
|
|
+ <string>Контент контент контент контент контент контент контент контент контент контент контент контент</string>
|
|
|
+ </property>
|
|
|
+ <property name="alignment">
|
|
|
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
|
+ </property>
|
|
|
+ <property name="wordWrap">
|
|
|
+ <bool>false</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </widget>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
- <resources/>
|
|
|
+ <resources>
|
|
|
+ <include location="../res.qrc"/>
|
|
|
+ </resources>
|
|
|
<connections/>
|
|
|
</ui>
|