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

View file

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