parent
1821373141
commit
d71a36f0ef
@ -0,0 +1,33 @@
|
|||||||
|
#include "releaseupgradewindow.h"
|
||||||
|
#include "ui_releaseupgradewindow.h"
|
||||||
|
|
||||||
|
ReleaseUpgradeWindow::ReleaseUpgradeWindow(QString releaseCode, QWidget *parent) :
|
||||||
|
QDialog(parent),
|
||||||
|
ui(new Ui::ReleaseUpgradeWindow)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
ui->upgradeLabel->setText(tr("An upgrade to Lubuntu %1 is available! Would you like to install this upgrade now?").arg(releaseCode));
|
||||||
|
connect(ui->upgradeButton, &QPushButton::clicked, this, &ReleaseUpgradeWindow::onUpgradeClicked);
|
||||||
|
connect(ui->remindButton, &QPushButton::clicked, this, &ReleaseUpgradeWindow::onRemindClicked);
|
||||||
|
connect(ui->declineButton, &QPushButton::clicked, this, &ReleaseUpgradeWindow::onDeclineClicked);
|
||||||
|
}
|
||||||
|
|
||||||
|
ReleaseUpgradeWindow::~ReleaseUpgradeWindow()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ReleaseUpgradeWindow::onUpgradeClicked()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void ReleaseUpgradeWindow::onRemindClicked()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void ReleaseUpgradeWindow::onDeclineClicked()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
#ifndef RELEASEUPGRADEWINDOW_H
|
||||||
|
#define RELEASEUPGRADEWINDOW_H
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class ReleaseUpgradeWindow;
|
||||||
|
}
|
||||||
|
|
||||||
|
class ReleaseUpgradeWindow : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit ReleaseUpgradeWindow(QString releaseCode, QWidget *parent = nullptr);
|
||||||
|
~ReleaseUpgradeWindow();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void onUpgradeClicked();
|
||||||
|
void onRemindClicked();
|
||||||
|
void onDeclineClicked();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::ReleaseUpgradeWindow *ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // RELEASEUPGRADEWINDOW_H
|
@ -0,0 +1,66 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>ReleaseUpgradeWindow</class>
|
||||||
|
<widget class="QDialog" name="ReleaseUpgradeWindow">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>393</width>
|
||||||
|
<height>74</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Dialog</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="upgradeLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>upgrade available</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>6</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="upgradeButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Upgrade Now</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="remindButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Remind me later</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="declineButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Decline Upgrade</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
Loading…
Reference in new issue