Remove some extra unneeded lines

This commit is contained in:
Victor Tran 2016-06-12 23:00:03 +10:00
parent b0cfa41f9c
commit 1f29fc110d
2 changed files with 22 additions and 13 deletions

View file

@ -471,17 +471,17 @@ void MainWindow::on_batteryLabel_clicked()
void MainWindow::on_volumeFrame_MouseEnter() void MainWindow::on_volumeFrame_MouseEnter()
{ {
ui->volumeSlider->setVisible(true); ui->volumeSlider->setVisible(true);
//ui->volumeSlider->resize(0, 0);
QPropertyAnimation* anim = new QPropertyAnimation(ui->volumeSlider, "geometry"); QPropertyAnimation* anim = new QPropertyAnimation(ui->volumeSlider, "geometry");
anim->setStartValue(ui->volumeSlider->geometry()); anim->setStartValue(ui->volumeSlider->geometry());
QRect endGeometry = ui->volumeSlider->geometry(); QRect endGeometry = ui->volumeSlider->geometry();
endGeometry.setWidth(200); endGeometry.setWidth(220);
anim->setEndValue(endGeometry); anim->setEndValue(endGeometry);
anim->setDuration(250); anim->setDuration(250);
anim->setEasingCurve(QEasingCurve::OutCubic); anim->setEasingCurve(QEasingCurve::OutCubic);
connect(anim, SIGNAL(finished()), anim, SLOT(deleteLater())); connect(anim, SIGNAL(finished()), anim, SLOT(deleteLater()));
anim->start(); anim->start();
//Get Current Volume //Get Current Volume
QProcess* mixer = new QProcess(this); QProcess* mixer = new QProcess(this);
mixer->start("amixer"); mixer->start("amixer");
@ -568,7 +568,7 @@ void MainWindow::on_brightnessFrame_MouseEnter()
QPropertyAnimation* anim = new QPropertyAnimation(ui->brightnessSlider, "geometry"); QPropertyAnimation* anim = new QPropertyAnimation(ui->brightnessSlider, "geometry");
anim->setStartValue(ui->brightnessSlider->geometry()); anim->setStartValue(ui->brightnessSlider->geometry());
QRect endGeometry = ui->brightnessSlider->geometry(); QRect endGeometry = ui->brightnessSlider->geometry();
endGeometry.setWidth(200); endGeometry.setWidth(220);
anim->setEndValue(endGeometry); anim->setEndValue(endGeometry);
anim->setDuration(250); anim->setDuration(250);
anim->setEasingCurve(QEasingCurve::OutCubic); anim->setEasingCurve(QEasingCurve::OutCubic);

View file

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1251</width> <width>1582</width>
<height>83</height> <height>83</height>
</rect> </rect>
</property> </property>
@ -131,6 +131,12 @@
</item> </item>
<item> <item>
<widget class="HoverFrame" name="brightnessFrame"> <widget class="HoverFrame" name="brightnessFrame">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>228</width> <width>228</width>
@ -430,17 +436,20 @@
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer"> <widget class="QFrame" name="expanderFrame">
<property name="orientation"> <property name="sizePolicy">
<enum>Qt::Horizontal</enum> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="frameShape">
<size> <enum>QFrame::NoFrame</enum>
<width>40</width>
<height>20</height>
</size>
</property> </property>
</spacer> <property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item> </item>
</layout> </layout>
</item> </item>