1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 12:39:59 +00:00

Added combobox slot for changing the profile

This commit is contained in:
Pieter van der Kloet 2011-04-24 23:29:32 +02:00
parent c68a4743bd
commit be47750a45
2 changed files with 13 additions and 1 deletions

View File

@ -90,10 +90,15 @@ DataFilesPage::DataFilesPage(QWidget *parent) : QWidget(parent)
setupDataFiles();
connect(mMastersWidget->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), this, SLOT(masterSelectionChanged(const QItemSelection&, const QItemSelection&)));
connect(mMastersWidget->selectionModel(),
SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)),
this, SLOT(masterSelectionChanged(const QItemSelection&, const QItemSelection&)));
connect(mPluginsTable, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(setCheckstate(QModelIndex)));
connect(mPluginsModel, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), this, SLOT(resizeRows()));
connect(mProfileComboBox, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(profileChanged(const QString&)));
}
void DataFilesPage::setupDataFiles()
@ -347,6 +352,12 @@ void DataFilesPage::resizeRows()
mPluginsTable->resizeRowsToContents();
}
void DataFilesPage::profileChanged(const QString &profile)
{
qDebug() << "Profile changed";
uncheckPlugins();
}
void DataFilesPage::writeConfig()
{

View File

@ -29,6 +29,7 @@ public slots:
void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void setCheckstate(QModelIndex index);
void resizeRows();
void profileChanged(const QString &profile);
private:
QTableWidget *mMastersWidget;