mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 18:28:35 +12:00
Dialog allows users to preview the order in which PKG's will be installed and allows users to move items around if needed. Because clicking "Install" on this new dialog acts as a confirmation and user has a second chance to eyeball what is to be installed, "Install package X?" dialogs have been removed and instead user is only notified of success. In case of failure, batch installation aborts with a descriptive error.
18 lines
314 B
C++
18 lines
314 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QListWidget>
|
|
|
|
class pkg_install_dialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit pkg_install_dialog(const QStringList& paths, QWidget* parent = nullptr);
|
|
QStringList GetPathsToInstall() const;
|
|
|
|
private:
|
|
void MoveItem(int offset);
|
|
|
|
QListWidget* m_dir_list;
|
|
};
|