summaryrefslogtreecommitdiff
path: root/noncore/tools/remote/mainview.cpp
Unidiff
Diffstat (limited to 'noncore/tools/remote/mainview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/remote/mainview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/tools/remote/mainview.cpp b/noncore/tools/remote/mainview.cpp
index 8c87785..a00a75a 100644
--- a/noncore/tools/remote/mainview.cpp
+++ b/noncore/tools/remote/mainview.cpp
@@ -31,24 +31,29 @@ MainView::MainView(QWidget *parent, const char *name) : QWidget(parent, name)
31 remote = new RemoteTab(tabs); 31 remote = new RemoteTab(tabs);
32 learn = new LearnTab(tabs); 32 learn = new LearnTab(tabs);
33 config = new ConfigTab(tabs); 33 config = new ConfigTab(tabs);
34 help = new HelpTab(tabs); 34 help = new HelpTab(tabs);
35 connect(config, SIGNAL(remotesChanged()), this, SLOT(updateRemotesList()) ); 35 connect(config, SIGNAL(remotesChanged()), this, SLOT(updateRemotesList()) );
36 36
37 tabs->addTab(remote, tr("Remote") ); 37 tabs->addTab(remote, tr("Remote") );
38 tabs->addTab(learn,tr("Learn") ); 38 tabs->addTab(learn,tr("Learn") );
39 tabs->addTab(config,tr("Config") ); 39 tabs->addTab(config,tr("Config") );
40 tabs->addTab(help, tr("Help") ); 40 tabs->addTab(help, tr("Help") );
41 41
42 printf("1\n"); 42 printf("1\n");
43 cfg = new Config("Remote"); 43 cfg = new Config("Remote");
44 printf("2\n"); 44 printf("2\n");
45 45
46 remote->setConfig(cfg); 46 remote->setConfig(cfg);
47 config->setConfig(cfg); 47 config->setConfig(cfg);
48} 48}
49 49
50void MainView::updateRemotesList() 50void MainView::updateRemotesList()
51{ 51{
52 remote->updateRemotesList(); 52 remote->updateRemotesList();
53 printf("MainView: got remotes changed signal\n"); 53 printf("MainView: got remotes changed signal\n");
54} 54}
55
56void MainView::updateLearnTab()
57{
58 learn->updateRemotesList();
59}