mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: add version check
This commit is contained in:
@@ -33,6 +33,7 @@ void UpdateNotifyWidget::addToList(FileData fileData)
|
||||
|
||||
void UpdateNotifyWidget::showWithFill()
|
||||
{
|
||||
clearList();
|
||||
|
||||
if(versionContainer->getServerVersion() == baseNamePackage)
|
||||
{
|
||||
@@ -70,6 +71,15 @@ void UpdateNotifyWidget::showWithFill()
|
||||
show();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::clearList()
|
||||
{
|
||||
QLayoutItem* item;
|
||||
while ( ( item = ui->labelsLayout->layout()->takeAt( 0 ) ) != NULL )
|
||||
{
|
||||
delete item->widget();
|
||||
delete item;
|
||||
}
|
||||
}
|
||||
QLabel* UpdateNotifyWidget::createLabel(QString text)
|
||||
{
|
||||
QLabel *label = new QLabel;
|
||||
|
||||
@@ -44,6 +44,7 @@ private:
|
||||
VersionContainer *versionContainer;
|
||||
int currentLoadingCount;
|
||||
QLabel* createLabel(QString text);
|
||||
void clearList();
|
||||
};
|
||||
|
||||
#endif // UPDATENOTIFYWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user