Commit d989b7ea authored by Dennis Rassmann's avatar Dennis Rassmann

update_notif: ui work + hide/show stuff

Signed-off-by: Dennis Rassmann's avatarshowp1984 <showp1984@gmail.com>
parent 3ef0f121
......@@ -43,6 +43,13 @@ update_notif::update_notif(QWidget *parent) :
timer_tout->setSingleShot(true);
timer_tout->setInterval(1000);
timer_tout->start();
ui->lbl2_restart->hide();
ui->lbl2_updating->hide();
ui->lbl2_warn->hide();
ui->lbl2_xtr->hide();
ui->bar2_xtr->hide();
ui->bar2_downl->hide();
}
update_notif::~update_notif()
......@@ -125,3 +132,27 @@ void getDBupd::run(void)
this->finished();
this->quit();
}
void update_notif::on_btn_now_clicked()
{
ui->btn_later->hide();
ui->btn_now->hide();
ui->btn_quit->hide();
ui->lbl_branch->hide();
ui->lbl_change->hide();
ui->lbl_date->hide();
ui->lbl_edt_branch->hide();
ui->lbl_edt_date->hide();
ui->lbl_edt_vers->hide();
ui->lbl_updnot->hide();
ui->lbl_vers->hide();
ui->txt_change->hide();
ui->lbl2_warn->show();
ui->lbl2_updating->show();
ui->bar2_downl->show();
ui->lbl2_xtr->show();
ui->bar2_xtr->show();
ui->lbl2_restart->show();
}
......@@ -45,6 +45,7 @@ private:
QString url;
private slots:
void on_btn_now_clicked();
void on_btn_later_clicked();
void on_btn_quit_clicked();
void closeupdnot(void);
......
......@@ -38,6 +38,9 @@
<property name="text">
<string>There is an update available for this program.</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
<widget class="QLabel" name="lbl_vers">
<property name="geometry">
......@@ -216,6 +219,101 @@ p, li { white-space: pre-wrap; }
<string>Update Later</string>
</property>
</widget>
<widget class="QLabel" name="lbl2_updating">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>341</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Downloading update...</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
<widget class="QProgressBar" name="bar2_downl">
<property name="geometry">
<rect>
<x>30</x>
<y>70</y>
<width>671</width>
<height>23</height>
</rect>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QLabel" name="lbl2_xtr">
<property name="geometry">
<rect>
<x>10</x>
<y>110</y>
<width>341</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Extracting update...</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
<widget class="QProgressBar" name="bar2_xtr">
<property name="geometry">
<rect>
<x>30</x>
<y>140</y>
<width>671</width>
<height>23</height>
</rect>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QLabel" name="lbl2_restart">
<property name="geometry">
<rect>
<x>10</x>
<y>180</y>
<width>421</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Restarting application...</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
<widget class="QLabel" name="lbl2_warn">
<property name="geometry">
<rect>
<x>10</x>
<y>330</y>
<width>701</width>
<height>131</height>
</rect>
</property>
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:18pt; font-weight:600; color:#ff0000;&quot;&gt;Please do not interrupt this process,&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:18pt; font-weight:600; color:#ff0000;&quot;&gt;it will result in an unuseable program!&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</widget>
</widget>
<resources/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment