--- a/QTfrontend/ui/page/pageplayrecord.cpp Wed May 02 16:36:11 2012 +0100
+++ b/QTfrontend/ui/page/pageplayrecord.cpp Wed May 02 19:36:23 2012 +0200
@@ -16,6 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
+#include "pageplayrecord.h"
+
#include <QFont>
#include <QGridLayout>
#include <QPushButton>
@@ -26,7 +28,8 @@
#include <QInputDialog>
#include "hwconsts.h"
-#include "pageplayrecord.h"
+
+#include "DataManager.h"
QLayout * PagePlayDemo::bodyLayoutDefinition()
{
@@ -61,6 +64,7 @@
{
connect(BtnRenameRecord, SIGNAL(clicked()), this, SLOT(renameRecord()));
connect(BtnRemoveRecord, SIGNAL(clicked()), this, SLOT(removeRecord()));
+ connect(&DataManager::instance(), SIGNAL(updated()), this, SLOT(refresh()));
}
PagePlayDemo::PagePlayDemo(QWidget* parent) : AbstractPage(parent)
@@ -103,6 +107,14 @@
}
}
+
+void PagePlayDemo::refresh()
+{
+ if (this->isVisible());
+ FillFromDir(recType);
+}
+
+
void PagePlayDemo::renameRecord()
{
QListWidgetItem * curritem = DemosList->currentItem();
--- a/QTfrontend/ui/page/pageplayrecord.h Wed May 02 16:36:11 2012 +0100
+++ b/QTfrontend/ui/page/pageplayrecord.h Wed May 02 19:36:23 2012 +0200
@@ -47,6 +47,9 @@
QPushButton *BtnRemoveRecord;
QListWidget *DemosList;
+ public slots:
+ void refresh();
+
private:
QLayout * bodyLayoutDefinition();
void connectSignals();