Fixed info component style sheet

This commit is contained in:
Klaus Basan
2014-06-25 19:30:05 +02:00
parent 6c6bcb4e08
commit 71185b1250
2 changed files with 188 additions and 146 deletions

View File

@@ -21,6 +21,7 @@ namespace BlackGui
this->m_hideTimer = new QTimer(this);
this->m_hideTimer->setSingleShot(true);
connect(this->m_hideTimer, &QTimer::timeout, this, &CInfoWindowComponent::hide);
connect(this->ui->pb_Close, &QPushButton::pressed, this, &CInfoWindowComponent::hide);
}
/*
@@ -80,7 +81,7 @@ namespace BlackGui
this->ui->le_SmSeverity->setText(statusMessage.getSeverityAsString());
this->ui->le_SmType->setText(statusMessage.getTypeAsString());
this->ui->te_SmStatusMessage->setText(statusMessage.getMessage());
this->ui->lbl_SmSeverity->setPixmap(statusMessage.toIcon());
this->ui->lbl_SmSeverityIcon->setPixmap(statusMessage.toIcon());
this->setCurrentPage(this->ui->pg_StatusMessage);
this->showWindow(displayTimeMs);

View File

@@ -6,18 +6,25 @@
<rect>
<x>0</x>
<y>0</y>
<width>278</width>
<height>143</height>
<width>300</width>
<height>180</height>
</rect>
</property>
<property name="windowTitle">
<string>WizardPage</string>
</property>
<property name="styleSheet">
<string notr="true">QWidget {
<string notr="true">QFrame#fr_InfoWindow {
border-style: solid;
border-width: 2px;
border-radius: 20px;
border-color: white;
}
QStackedWidget {
font-family: arial-rounded;
font: bold 10px;
color: black; /** font **/
color: white; /** font not in text edit **/
}
QPushButton {
@@ -36,10 +43,13 @@ QTextEdit {
border-radius:6px;
border-color: green;
opacity: 0.5;
}
</string>
color: black; /** font **/
}</string>
</property>
<layout class="QHBoxLayout" name="hl_InfoWindow">
<property name="title">
<string>Information</string>
</property>
<layout class="QVBoxLayout" name="vl_InfoWindow">
<property name="spacing">
<number>0</number>
</property>
@@ -55,6 +65,53 @@ QTextEdit {
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QFrame" name="fr_InfoWindow">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="vl_layoutInfoFrame">
<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 alignment="Qt::AlignRight">
<widget class="QPushButton" name="pb_Close">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="blackgui.qrc">
<normaloff>:/blackgui/icons/close.png</normaloff>:/blackgui/icons/close.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QStackedWidget" name="sw_DifferentModes">
<property name="currentIndex">
@@ -124,83 +181,67 @@ QTextEdit {
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QGridLayout" name="gl_StatusMessage">
<item row="0" column="0">
<widget class="QLabel" name="lbl_SmSeverity">
<property name="text">
<string>Severity</string>
</property>
</widget>
</item>
<item row="1" column="0">
<item row="2" column="0">
<widget class="QLabel" name="lbl_SmType">
<property name="text">
<string>Type</string>
</property>
</widget>
</item>
<item row="0" column="1">
<item row="1" column="1">
<widget class="QLineEdit" name="le_SmSeverity">
<property name="text">
<string>severity</string>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QTextEdit" name="te_SmStatusMessage"/>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="le_SmType"/>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
<item alignment="Qt::AlignTop">
<widget class="QPushButton" name="pb_Close">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<item row="2" column="1">
<widget class="QLineEdit" name="le_SmType">
<property name="text">
<string/>
<string>type</string>
</property>
<property name="icon">
<iconset resource="blackgui.qrc">
<normaloff>:/blackgui/icons/close.png</normaloff>:/blackgui/icons/close.png</iconset>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QTextEdit" name="te_SmStatusMessage">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lbl_SmSeverity">
<property name="text">
<string>Severity</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="lbl_SmSeverityIcon">
<property name="text">
<string>icon</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="blackgui.qrc"/>
</resources>
<connections>
<connection>
<sender>pb_Close</sender>
<signal>clicked()</signal>
<receiver>InfoWindow</receiver>
<slot>hide()</slot>
<hints>
<hint type="sourcelabel">
<x>272</x>
<y>52</y>
</hint>
<hint type="destinationlabel">
<x>302</x>
<y>67</y>
</hint>
</hints>
</connection>
</connections>
<connections/>
</ui>