Commit d35df725 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

updates: Don't show delegates after they are done

parent 4ef91fa6
......@@ -178,6 +178,8 @@ DiscoverPage
layout.extended = false;
}
visible: resourceState < 3 //3=AbstractBackendUpdater.Done
Keys.onReturnPressed: {
itemChecked.clicked()
}
......
......@@ -56,6 +56,8 @@ public:
Qt::CheckState checked() const;
AbstractResource* resource() const { return m_app; }
bool isVisible() const { return m_visible; }
void setVisible(bool visible) { m_visible = visible; }
private:
AbstractResource * const m_app;
......@@ -63,6 +65,7 @@ private:
const QString m_categoryName;
const QIcon m_categoryIcon;
qreal m_progress = 0.;
bool m_visible = true;
AbstractBackendUpdater::State m_state = AbstractBackendUpdater::None;
QString m_changelog;
};
......
......@@ -44,7 +44,6 @@
#include "modeltest.h"
#include <QtTest>
#include <QVariant>
Q_DECLARE_METATYPE ( QModelIndex )
......
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