X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilepicker.cpp;h=86fbe55b410d25cb62cc1776099a5aed63c06a78;hb=e1652c7f4e7e08d072489f9085ebfe5a9c65187e;hp=288605274d0dc47d6978dc6eb3b2414b093f5ff8;hpb=417c77735e5e76ab8803694511b465206d64bf97;p=virtualjaguar diff --git a/src/gui/filepicker.cpp b/src/gui/filepicker.cpp index 2886052..86fbe55 100644 --- a/src/gui/filepicker.cpp +++ b/src/gui/filepicker.cpp @@ -198,6 +198,12 @@ New sizes: 373x172 (label), 420x340 (cart) connect(fileList->selectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)), this, SLOT(UpdateSelection(const QModelIndex &, const QModelIndex &))); connect(insertCart, SIGNAL(clicked()), this, SLOT(LoadButtonPressed())); + + connect(fileList, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(CatchDoubleClick(const QModelIndex &))); + +// connect(fileList, SIGNAL(doubleClicked()), this, SLOT(LoadButtonPressed())); +// This returns: +// Object::connect: No such signal QListView::QAbstractItemView::doubleClicked() in src/gui/filepicker.cpp:203 } void FilePickerWindow::keyPressEvent(QKeyEvent * e) @@ -208,6 +214,11 @@ void FilePickerWindow::keyPressEvent(QKeyEvent * e) LoadButtonPressed(); } +void FilePickerWindow::CatchDoubleClick(const QModelIndex &) +{ + LoadButtonPressed(); +} + QString FilePickerWindow::GetSelectedPrettyName(void) { return prettyFilename;