Skip to content

Commit

Permalink
Fix condition handling issues and bring back queue dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Yunusemre Şentürk <[email protected]>
  • Loading branch information
Yunusemre Şentürk committed Jan 21, 2019
1 parent 5dc4d58 commit 2ed8d30
Show file tree
Hide file tree
Showing 11 changed files with 470 additions and 513 deletions.
3 changes: 2 additions & 1 deletion pardus-store.pro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ HEADERS += \
src/singleton.h \
src/dpkg-progress.h \
src/application.h \
src/namfactory.h
src/namfactory.h \
src/condition.h

TARGET = pardus-store

Expand Down
21 changes: 21 additions & 0 deletions src/condition.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#ifndef CONDITION_H
#define CONDITION_H

#include <QObject>

class Condition : public QObject
{
Q_OBJECT
public:
enum State {
Idle,
Installed,
Removed,
Downloading,
Installing,
Removing
};
Q_ENUM(State)
};

#endif // CONDITION_H
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "src/condition.h"
#include "src/helper.h"
#include "src/iconprovider.h"
#include "src/applicationlistmodel.h"
Expand All @@ -18,6 +19,7 @@ int main(int argc, char *argv[])
if (!singleton.tryToRun()) {
return 0;
}
qmlRegisterType<Condition>("ps.condition",1,0,"Condition");
qmlRegisterType<Helper>("ps.helper",1,0,"Helper");
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
QGuiApplication::setWindowIcon(QIcon(":/images/icon.svg"));
Expand Down
Loading

0 comments on commit 2ed8d30

Please sign in to comment.