diff options
author | deva <deva> | 2009-11-30 15:03:50 +0000 |
---|---|---|
committer | deva <deva> | 2009-11-30 15:03:50 +0000 |
commit | 6e715b6a7816d5db31c0078cf99d13aaf811472f (patch) | |
tree | 352e27e414d73b595d6304a3b0f44ad9bf7df03a /dgedit/filelist.cc | |
parent | bb8e2b6be1c05fc41132724d1f48a285f104418c (diff) |
Some gui cleanups
Diffstat (limited to 'dgedit/filelist.cc')
-rw-r--r-- | dgedit/filelist.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dgedit/filelist.cc b/dgedit/filelist.cc index 52e6757..aca1f5d 100644 --- a/dgedit/filelist.cc +++ b/dgedit/filelist.cc @@ -31,7 +31,8 @@ FileList::FileList() { - connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(selectionChanged())); + connect(this, SIGNAL(itemDoubleClicked(QListWidgetItem *)), + this, SLOT(selectionChanged(QListWidgetItem *))); } void FileList::addFiles() @@ -55,8 +56,8 @@ void FileList::addFiles() } } -void FileList::selectionChanged() +void FileList::selectionChanged(QListWidgetItem *item) { - QString filename = currentItem()->text(); + QString filename = item->text(); emit masterFileChanged(filename); } |