diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-07-17 16:26:17 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-07-17 16:26:17 +0200 |
| commit | 023cacab7fc2a9c36749fe235255fce8c4edd65b (patch) | |
| tree | a6a600623fc984dbded18b36850ecbd81f0aba52 /src/pluginlist.cpp | |
| parent | 35bbe0001efa9aac48c56503643b98ec03c080e7 (diff) | |
Added ability to open mod information window by double cliking on plugins.
Diffstat (limited to 'src/pluginlist.cpp')
| -rw-r--r-- | src/pluginlist.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index 9153df72..c6cea045 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -77,6 +77,7 @@ PluginList::PluginList(QObject *parent) , m_FontMetrics(QFont())
{
connect(this, SIGNAL(writePluginsList()), this, SLOT(generatePluginIndexes()));
+ m_LastCheck.start();
}
PluginList::~PluginList()
@@ -583,6 +584,11 @@ void PluginList::disconnectSlots() { m_PluginStateChanged.disconnect_all_slots();
}
+int PluginList::timeElapsedSinceLastChecked() const
+{
+ return m_LastCheck.elapsed();
+}
+
QStringList PluginList::pluginNames() const
{
QStringList result;
@@ -954,6 +960,7 @@ bool PluginList::setData(const QModelIndex &modIndex, const QVariant &value, int if (role == Qt::CheckStateRole) {
m_ESPs[modIndex.row()].m_Enabled =
value.toInt() == Qt::Checked || m_ESPs[modIndex.row()].m_ForceEnabled;
+ m_LastCheck.restart();
emit dataChanged(modIndex, modIndex);
refreshLoadOrder();
|
