refs #887, skip copy steps if there is no other swift version to copy from

* pages as enum
* buttons to copy/select/deselect (when UI component is used detached from wizard)
* avoid crash when there is no other swift version (->empty model)
This commit is contained in:
Klaus Basan
2017-02-25 19:19:27 +01:00
committed by Mathew Sutcliffe
parent cb024b0245
commit 1076eb2b29
5 changed files with 70 additions and 10 deletions

View File

@@ -51,6 +51,9 @@ namespace BlackGui
//! Init file content
void initCurrentDirectories();
//! Are there other versions to copy from
bool hasOtherVersionData() const;
private:
//! The current version changed
void currentVersionChanged(const QString &text);
@@ -64,10 +67,10 @@ namespace BlackGui
//! Get the selected files
QStringList getSelectedFiles() const;
//! Combobox width
//! Set calculated combobox width
void setComboBoxWidth();
QStringList m_versionDirs;
QStringList m_otherVersionDirs;
QScopedPointer<Ui::CCopyConfigurationComponent> ui;
};