Commit f5ce0bf4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

When we doubleclick we change setting

svn path=/trunk/kdesdk/cervisia/; revision=115633
parent 512b46ed
......@@ -61,6 +61,9 @@ RepositoryDialog::RepositoryDialog(QWidget *parent, const char *name)
connect(repolist,SIGNAL(selectionChanged ()),
this,SLOT(slotSelectionChanged()));
connect(repolist,SIGNAL(doubleClicked ( QListViewItem * )),
this,SLOT(slotDoubleClicked(QListViewItem *)));
KButtonBox *actionbox = new KButtonBox(this, KButtonBox::Vertical);
actionbox->addStretch();
QPushButton *addbutton = actionbox->addButton(i18n("&Add..."));
......@@ -117,6 +120,12 @@ RepositoryDialog::RepositoryDialog(QWidget *parent, const char *name)
slotSelectionChanged();
}
void RepositoryDialog::slotDoubleClicked(QListViewItem *item)
{
if(item)
slotSettingsClicked();
}
void RepositoryDialog::slotSelectionChanged()
{
bool state=(repolist->currentItem()!=0);
......
......@@ -46,6 +46,7 @@ private slots:
void slotLoginClicked();
void slotLogoutClicked();
void slotSelectionChanged();
void slotDoubleClicked(QListViewItem *);
private:
struct Options {
QSize size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment