|
|
@ -53,7 +53,7 @@ CUninstallDialog::CUninstallDialog(QWidget *parent):QDialog(parent), m_installer
|
|
|
|
|
|
|
|
|
|
|
|
if (QFile::exists(config->getInstallationDirectory() + "/" + server.id))
|
|
|
|
if (QFile::exists(config->getInstallationDirectory() + "/" + server.id))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_serversIndices[row] = model->rowCount();
|
|
|
|
m_serversIndices[server.id] = model->rowCount();
|
|
|
|
|
|
|
|
|
|
|
|
item = new QStandardItem(tr("Client for %1").arg(server.name));
|
|
|
|
item = new QStandardItem(tr("Client for %1").arg(server.name));
|
|
|
|
item->setCheckable(true);
|
|
|
|
item->setCheckable(true);
|
|
|
@ -66,10 +66,10 @@ CUninstallDialog::CUninstallDialog(QWidget *parent):QDialog(parent), m_installer
|
|
|
|
// profiles
|
|
|
|
// profiles
|
|
|
|
for (int row = 0; row < profilesCount; ++row)
|
|
|
|
for (int row = 0; row < profilesCount; ++row)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_profilesIndices[row] = model->rowCount();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const CProfile &profile = config->getProfile(row);
|
|
|
|
const CProfile &profile = config->getProfile(row);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_profilesIndices[profile.id] = model->rowCount();
|
|
|
|
|
|
|
|
|
|
|
|
item = new QStandardItem(tr("Profile #%1: %2").arg(profile.id).arg(profile.name));
|
|
|
|
item = new QStandardItem(tr("Profile #%1: %2").arg(profile.id).arg(profile.name));
|
|
|
|
item->setCheckable(true);
|
|
|
|
item->setCheckable(true);
|
|
|
|
model->appendRow(item);
|
|
|
|
model->appendRow(item);
|
|
|
@ -122,7 +122,7 @@ void CUninstallDialog::setSelectedComponents(const SUninstallComponents &compone
|
|
|
|
QStandardItem *item = NULL;
|
|
|
|
QStandardItem *item = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// servers
|
|
|
|
// servers
|
|
|
|
QMap<int, int>::const_iterator it = m_serversIndices.begin(), iend = m_serversIndices.end();
|
|
|
|
IDIndicesMap::const_iterator it = m_serversIndices.begin(), iend = m_serversIndices.end();
|
|
|
|
|
|
|
|
|
|
|
|
while (it != iend)
|
|
|
|
while (it != iend)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -160,7 +160,7 @@ SUninstallComponents CUninstallDialog::getSelectedCompenents() const
|
|
|
|
QStandardItem *item = NULL;
|
|
|
|
QStandardItem *item = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// servers
|
|
|
|
// servers
|
|
|
|
QMap<int, int>::const_iterator it = m_serversIndices.begin(), iend = m_serversIndices.end();
|
|
|
|
IDIndicesMap::const_iterator it = m_serversIndices.begin(), iend = m_serversIndices.end();
|
|
|
|
|
|
|
|
|
|
|
|
while (it != iend)
|
|
|
|
while (it != iend)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -222,7 +222,7 @@ void CUninstallDialog::updateSizes()
|
|
|
|
CConfigFile *config = CConfigFile::getInstance();
|
|
|
|
CConfigFile *config = CConfigFile::getInstance();
|
|
|
|
|
|
|
|
|
|
|
|
// clients
|
|
|
|
// clients
|
|
|
|
QMap<int, int>::const_iterator it = m_serversIndices.begin(), iend = m_serversIndices.end();
|
|
|
|
IDIndicesMap::const_iterator it = m_serversIndices.begin(), iend = m_serversIndices.end();
|
|
|
|
|
|
|
|
|
|
|
|
while(it != iend)
|
|
|
|
while(it != iend)
|
|
|
|
{
|
|
|
|
{
|
|
|
|