diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-03-19 06:24:34 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-03-19 06:24:34 +0100 |
commit | 7d7e4034f48b578c87a4651075c2b73dc236181b (patch) | |
tree | a0e58c46bb5f18726ea6e5c9039eceaeea001f0d /libmultimc/src/instancelist.cpp | |
parent | d67d58e662159d53ee5fde37a6f60903f6350731 (diff) | |
download | MultiMC-7d7e4034f48b578c87a4651075c2b73dc236181b.tar MultiMC-7d7e4034f48b578c87a4651075c2b73dc236181b.tar.gz MultiMC-7d7e4034f48b578c87a4651075c2b73dc236181b.tar.lz MultiMC-7d7e4034f48b578c87a4651075c2b73dc236181b.tar.xz MultiMC-7d7e4034f48b578c87a4651075c2b73dc236181b.zip |
Property change propagation, changing instance groups, icon preview
Diffstat (limited to 'libmultimc/src/instancelist.cpp')
-rw-r--r-- | libmultimc/src/instancelist.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libmultimc/src/instancelist.cpp b/libmultimc/src/instancelist.cpp index a835fcfe..f9c525d0 100644 --- a/libmultimc/src/instancelist.cpp +++ b/libmultimc/src/instancelist.cpp @@ -185,6 +185,7 @@ InstanceList::InstListError InstanceList::loadList() qDebug(QString("Loaded instance %1").arg(inst->name()).toUtf8()); inst->setParent(this); m_instances.append(inst); + connect(instPtr, SIGNAL(propertiesChanged(Instance*)),this, SLOT(propertiesChanged(Instance*))); } } } @@ -221,4 +222,16 @@ InstancePtr InstanceList::getInstanceById(QString instId) return InstancePtr(); else return iter.peekPrevious(); +} + +void InstanceList::propertiesChanged(Instance * inst) +{ + for(int i = 0; i < m_instances.count(); i++) + { + if(inst == m_instances[i].data()) + { + emit instanceChanged(i); + break; + } + } }
\ No newline at end of file |