summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/remote/topgroup.cpp6
-rw-r--r--noncore/tools/remote/topgroup.h1
-rw-r--r--noncore/tools/remote/topgroupconf.cpp1
3 files changed, 6 insertions, 2 deletions
diff --git a/noncore/tools/remote/topgroup.cpp b/noncore/tools/remote/topgroup.cpp
index 427cb8f..7f2366b 100644
--- a/noncore/tools/remote/topgroup.cpp
+++ b/noncore/tools/remote/topgroup.cpp
@@ -45,10 +45,14 @@ TopGroup::TopGroup(QWidget *parent, const char *name):QWidget(parent,name)
45 layout->addWidget(remotes); 45 layout->addWidget(remotes);
46} 46}
47 47
48void TopGroup::updateRemotes(Config *cfg) 48void TopGroup::updateRemotes(Config *cfg)
49{ 49{
50 remotes->clear(); 50 remotes->clear();
51 remotes->insertItem(QString("SelectRemote"));
52 cfg->setGroup("Remotes"); 51 cfg->setGroup("Remotes");
53 remotes->insertStringList(cfg->readListEntry("remoteList", ',') ); 52 remotes->insertStringList(cfg->readListEntry("remoteList", ',') );
54} 53}
54
55QString TopGroup::getRemotesText()
56{
57 return remotes->currentText();
58}
diff --git a/noncore/tools/remote/topgroup.h b/noncore/tools/remote/topgroup.h
index 215292d..091ac14 100644
--- a/noncore/tools/remote/topgroup.h
+++ b/noncore/tools/remote/topgroup.h
@@ -23,9 +23,10 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 23
24class TopGroup : public QWidget 24class TopGroup : public QWidget
25{ 25{
26public: 26public:
27 TopGroup(QWidget *parent=0, const char *name=0); 27 TopGroup(QWidget *parent=0, const char *name=0);
28 void updateRemotes(Config *cfg); 28 void updateRemotes(Config *cfg);
29 QString getRemotesText();
29private: 30private:
30 QComboBox *remotes; 31 QComboBox *remotes;
31}; 32};
diff --git a/noncore/tools/remote/topgroupconf.cpp b/noncore/tools/remote/topgroupconf.cpp
index 0419a65..7df4d18 100644
--- a/noncore/tools/remote/topgroupconf.cpp
+++ b/noncore/tools/remote/topgroupconf.cpp
@@ -30,13 +30,12 @@ TopGroupConf::TopGroupConf(QWidget *parent, const char *name):QWidget(parent,nam
30 QPushButton *source = new QPushButton("Source",this,"source"); 30 QPushButton *source = new QPushButton("Source",this,"source");
31 layout->addWidget(source); 31 layout->addWidget(source);
32 connect(source, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) ); 32 connect(source, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
33 //source->setGeometry(50,5,40,20); 33 //source->setGeometry(50,5,40,20);
34 34
35 remotes = new QComboBox(true, this, "remotes"); 35 remotes = new QComboBox(true, this, "remotes");
36 remotes->insertItem(QString("Remotes"));
37 layout->addWidget(remotes); 36 layout->addWidget(remotes);
38 layout->setStretchFactor(remotes, 1); 37 layout->setStretchFactor(remotes, 1);
39 connect(remotes, SIGNAL(activated(const QString&)), this->parentWidget(), SLOT(remoteSelected(const QString&)) ); 38 connect(remotes, SIGNAL(activated(const QString&)), this->parentWidget(), SLOT(remoteSelected(const QString&)) );
40 39
41 40
42 QPushButton *newrem = new QPushButton("New", this, "new"); 41 QPushButton *newrem = new QPushButton("New", this, "new");