[vlmc-devel] RecentProjects: Add updated() signal
Yikai Lu
git at videolan.org
Mon Aug 22 04:19:23 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Aug 21 21:08:29 2016 -0500| [3b9a5f755a031a931f97bd296eaf352dafa82994] | committer: Yikai Lu
RecentProjects: Add updated() signal
> https://code.videolan.org/videolan/vlmc/commit/3b9a5f755a031a931f97bd296eaf352dafa82994
---
src/Project/RecentProjects.cpp | 2 ++
src/Project/RecentProjects.h | 3 +++
2 files changed, 5 insertions(+)
diff --git a/src/Project/RecentProjects.cpp b/src/Project/RecentProjects.cpp
index b3a48ce..1aacdf7 100644
--- a/src/Project/RecentProjects.cpp
+++ b/src/Project/RecentProjects.cpp
@@ -62,6 +62,7 @@ RecentProjects::remove( const QString &projectFile )
}
}
m_recentsProjects->set( l );
+ emit updated();
}
void
@@ -75,4 +76,5 @@ RecentProjects::projectLoaded( const QString& projectName, const QString& projec
l.removeAll( var );
l.insert( 0, var );
m_recentsProjects->set( l );
+ emit updated();
}
diff --git a/src/Project/RecentProjects.h b/src/Project/RecentProjects.h
index b031d18..bd62e3d 100644
--- a/src/Project/RecentProjects.h
+++ b/src/Project/RecentProjects.h
@@ -40,6 +40,9 @@ class RecentProjects : public QObject
const QVariant& toVariant() const;
void remove( const QString& projectFile );
+ signals:
+ void updated();
+
public slots:
void projectLoaded( const QString& projectName, const QString& projectFile );
More information about the Vlmc-devel
mailing list