Changed: Comments

--HG--
branch : develop
This commit is contained in:
kervala 2016-06-12 15:10:37 +02:00
parent 91d1c70b5a
commit d09c48622d
3 changed files with 10 additions and 3 deletions

View file

@ -199,7 +199,9 @@ void COperationDialog::processMigrateNextStep()
void COperationDialog::processUpdateProfilesNextStep() void COperationDialog::processUpdateProfilesNextStep()
{ {
// TODO: implement // TODO: check all servers are downloaded
// TODO: delete profiles directories that are not used anymore
// TODO: create shortcuts
} }
void COperationDialog::processInstallNextStep() void COperationDialog::processInstallNextStep()

View file

@ -76,6 +76,7 @@ CUninstallWizardDialog::CUninstallWizardDialog(QWidget *parent):QDialog(parent),
} }
// installer
m_installerIndex = model->rowCount(); m_installerIndex = model->rowCount();
item = new QStandardItem(tr("Ryzom Installer")); item = new QStandardItem(tr("Ryzom Installer"));
@ -85,6 +86,7 @@ CUninstallWizardDialog::CUninstallWizardDialog(QWidget *parent):QDialog(parent),
componentsTreeView->setModel(model); componentsTreeView->setModel(model);
componentsTreeView->resizeColumnToContents(0); componentsTreeView->resizeColumnToContents(0);
// resize layout depending on content and constraints
adjustSize(); adjustSize();
// click signals // click signals
@ -105,6 +107,7 @@ void CUninstallWizardDialog::showEvent(QShowEvent *event)
{ {
QDialog::showEvent(event); QDialog::showEvent(event);
// update size of all components sizes in a thread to not block interface
QtConcurrent::run(this, &CUninstallWizardDialog::updateSizes); QtConcurrent::run(this, &CUninstallWizardDialog::updateSizes);
} }
@ -199,6 +202,7 @@ void CUninstallWizardDialog::onUpdateSize(int row, const QString &text)
QStandardItemModel *model = qobject_cast<QStandardItemModel*>(componentsTreeView->model()); QStandardItemModel *model = qobject_cast<QStandardItemModel*>(componentsTreeView->model());
if (model == NULL) return; if (model == NULL) return;
// set size for a component
QStandardItem *item = new QStandardItem(text); QStandardItem *item = new QStandardItem(text);
model->setItem(row, 1, item); model->setItem(row, 1, item);
} }
@ -253,11 +257,11 @@ void CUninstallWizardDialog::updateButtons()
int checkedCount = 0; int checkedCount = 0;
// Uninstall button should be enabled only if at least one component is selected
for (int i = 0; i < model->rowCount(); ++i) for (int i = 0; i < model->rowCount(); ++i)
{ {
if (model->item(i)->checkState() == Qt::Checked) ++checkedCount; if (model->item(i)->checkState() == Qt::Checked) ++checkedCount;
} }
// Uninstall button should be enabled only if at least one component is checked
uninstallButton->setEnabled(checkedCount > 0); uninstallButton->setEnabled(checkedCount > 0);
} }

View file

@ -21,7 +21,8 @@
#include "operation.h" #include "operation.h"
/** /**
* Wizard displayed at first launch, that asks user to choose source and destination directories. * Wizard displayed when uninstalling components from Add/Remove Program under Windows
* or when user clicks on Uninstall in main menu.
* *
* \author Cedric 'Kervala' OCHS * \author Cedric 'Kervala' OCHS
* \date 2016 * \date 2016