NOISSUE feature complete setup wizard

This commit is contained in:
Petr Mrázek
2017-01-05 04:05:08 +01:00
parent 4c0db2b99d
commit e1bd1c6145
17 changed files with 1075 additions and 553 deletions

View File

@ -18,8 +18,15 @@
#include <QDialog>
#include <QSortFilterProxyModel>
#include "BaseVersionList.h"
class QVBoxLayout;
class QHBoxLayout;
class QDialogButtonBox;
class VersionSelectWidget;
class QPushButton;
namespace Ui
{
class VersionSelectDialog;
@ -32,14 +39,10 @@ class VersionSelectDialog : public QDialog
Q_OBJECT
public:
explicit VersionSelectDialog(BaseVersionList *vlist, QString title, QWidget *parent = 0,
bool cancelable = true);
~VersionSelectDialog();
explicit VersionSelectDialog(BaseVersionList *vlist, QString title, QWidget *parent = 0, bool cancelable = true);
virtual ~VersionSelectDialog() {};
virtual int exec();
//! Starts a task that loads the list.
void loadList();
int exec() override;
BaseVersionPtr selectedVersion() const;
@ -50,22 +53,19 @@ public:
void setResizeOn(int column);
void setUseLatest(const bool useLatest);
protected:
virtual void closeEvent ( QCloseEvent* );
private
slots:
private slots:
void on_refreshButton_clicked();
void onTaskFinished();
void changeProgress(qint64 current, qint64 total);
private:
void preselect();
void retranslate();
void selectRecommended();
private:
Ui::VersionSelectDialog *ui = nullptr;
VersionSelectWidget *m_versionWidget = nullptr;
QVBoxLayout *m_verticalLayout = nullptr;
QHBoxLayout *m_horizontalLayout = nullptr;
QPushButton *m_refreshButton = nullptr;
QDialogButtonBox *m_buttonBox = nullptr;
BaseVersionList *m_vlist = nullptr;
@ -74,6 +74,4 @@ private:
int resizeOnColumn = 0;
Task * loadTask = nullptr;
bool preselectedAlready = false;
};