mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: Comments
--HG-- branch : develop
This commit is contained in:
parent
91d1c70b5a
commit
d09c48622d
3 changed files with 10 additions and 3 deletions
|
@ -199,7 +199,9 @@ void COperationDialog::processMigrateNextStep()
|
|||
|
||||
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()
|
||||
|
|
|
@ -76,6 +76,7 @@ CUninstallWizardDialog::CUninstallWizardDialog(QWidget *parent):QDialog(parent),
|
|||
|
||||
}
|
||||
|
||||
// installer
|
||||
m_installerIndex = model->rowCount();
|
||||
|
||||
item = new QStandardItem(tr("Ryzom Installer"));
|
||||
|
@ -85,6 +86,7 @@ CUninstallWizardDialog::CUninstallWizardDialog(QWidget *parent):QDialog(parent),
|
|||
componentsTreeView->setModel(model);
|
||||
componentsTreeView->resizeColumnToContents(0);
|
||||
|
||||
// resize layout depending on content and constraints
|
||||
adjustSize();
|
||||
|
||||
// click signals
|
||||
|
@ -105,6 +107,7 @@ void CUninstallWizardDialog::showEvent(QShowEvent *event)
|
|||
{
|
||||
QDialog::showEvent(event);
|
||||
|
||||
// update size of all components sizes in a thread to not block interface
|
||||
QtConcurrent::run(this, &CUninstallWizardDialog::updateSizes);
|
||||
}
|
||||
|
||||
|
@ -199,6 +202,7 @@ void CUninstallWizardDialog::onUpdateSize(int row, const QString &text)
|
|||
QStandardItemModel *model = qobject_cast<QStandardItemModel*>(componentsTreeView->model());
|
||||
if (model == NULL) return;
|
||||
|
||||
// set size for a component
|
||||
QStandardItem *item = new QStandardItem(text);
|
||||
model->setItem(row, 1, item);
|
||||
}
|
||||
|
@ -253,11 +257,11 @@ void CUninstallWizardDialog::updateButtons()
|
|||
|
||||
int checkedCount = 0;
|
||||
|
||||
// Uninstall button should be enabled only if at least one component is selected
|
||||
for (int i = 0; i < model->rowCount(); ++i)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
#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
|
||||
* \date 2016
|
||||
|
|
Loading…
Reference in a new issue