mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
During refs #319, refactoring of QLed (as it is used with a LED formatter)
* renamed to CLedWidget * added missing SVG * rendering to pixmap possible * QScopedPointer<QSvgRenderer> * Led, copyright
This commit is contained in:
@@ -40,14 +40,14 @@ namespace BlackGui
|
||||
|
||||
void CInfoBarStatusComponent::initLeds()
|
||||
{
|
||||
CLed::LedShape shape = CLed::Circle;
|
||||
this->ui->led_DBus->setValues(CLed::Yellow, CLed::Black, shape, "DBus connected", "DBus disconnected", 14);
|
||||
this->ui->led_Network->setValues(CLed::Yellow, CLed::Black, shape, "Network connected", "Network disconnected", 14);
|
||||
this->ui->led_Simulator->setValues(CLed::Yellow, CLed::Black, shape, "Simulator connected", "Simulator disconnected", 14);
|
||||
CLedWidget::LedShape shape = CLedWidget::Circle;
|
||||
this->ui->led_DBus->setValues(CLedWidget::Yellow, CLedWidget::Black, shape, "DBus connected", "DBus disconnected", 14);
|
||||
this->ui->led_Network->setValues(CLedWidget::Yellow, CLedWidget::Black, shape, "Network connected", "Network disconnected", 14);
|
||||
this->ui->led_Simulator->setValues(CLedWidget::Yellow, CLedWidget::Black, shape, "Simulator connected", "Simulator disconnected", 14);
|
||||
|
||||
shape = CLed::Rounded;
|
||||
this->ui->led_Ptt->setValues(CLed::Yellow, CLed::Red, shape, "Ptt", "Silence", 18);
|
||||
this->ui->led_Audio->setValues(CLed::Yellow, CLed::Red, shape, "On", "Muted", 18);
|
||||
shape = CLedWidget::Rounded;
|
||||
this->ui->led_Ptt->setValues(CLedWidget::Yellow, CLedWidget::Red, shape, "Ptt", "Silence", 18);
|
||||
this->ui->led_Audio->setValues(CLedWidget::Yellow, CLedWidget::Red, shape, "On", "Muted", 18);
|
||||
}
|
||||
|
||||
void CInfoBarStatusComponent::setDBusStatus(bool dbus)
|
||||
@@ -125,7 +125,7 @@ namespace BlackGui
|
||||
this->ui->led_Network->setOn(true);
|
||||
break;
|
||||
case INetwork::Connecting:
|
||||
this->ui->led_Network->setTemporaryColor(CLed::Yellow);
|
||||
this->ui->led_Network->setTemporaryColor(CLedWidget::Yellow);
|
||||
break;
|
||||
default:
|
||||
this->ui->led_Network->setOn(false);
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="BlackGui::CLed" name="led_Network" native="true"/>
|
||||
<widget class="BlackGui::CLedWidget" name="led_Network" native="true"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_Simulator">
|
||||
@@ -75,7 +75,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="BlackGui::CLed" name="led_Simulator" native="true">
|
||||
<widget class="BlackGui::CLedWidget" name="led_Simulator" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -98,7 +98,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="BlackGui::CLed" name="led_DBus" native="true">
|
||||
<widget class="BlackGui::CLedWidget" name="led_DBus" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -124,7 +124,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="BlackGui::CLed" name="led_Ptt" native="true"/>
|
||||
<widget class="BlackGui::CLedWidget" name="led_Ptt" native="true"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_Audio">
|
||||
@@ -143,7 +143,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="BlackGui::CLed" name="led_Audio" native="true"/>
|
||||
<widget class="BlackGui::CLedWidget" name="led_Audio" native="true"/>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="hs_InfoStatusBar">
|
||||
@@ -162,7 +162,7 @@
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>BlackGui::CLed</class>
|
||||
<class>BlackGui::CLedWidget</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>blackgui/led.h</header>
|
||||
<container>1</container>
|
||||
|
||||
Reference in New Issue
Block a user