fixed issue that return key did not work in the table to connect to a server when only the keyboard is available

This commit is contained in:
Volker Fischer 2011-07-04 15:44:51 +00:00
parent 000bf50be8
commit 215374c2e2

View File

@ -93,6 +93,10 @@ CConnectDlg::CConnectDlg ( QWidget* parent, Qt::WindowFlags f )
SIGNAL ( itemDoubleClicked ( QTreeWidgetItem*, int ) ),
this, SLOT ( OnServerListItemDoubleClicked ( QTreeWidgetItem*, int ) ) );
QObject::connect ( lvwServers, // to get default return key behaviour working
SIGNAL ( activated ( QModelIndex ) ),
this, SLOT ( OnConnectClicked() ) );
// combo boxes
QObject::connect ( cbxServerAddr, SIGNAL ( editTextChanged ( const QString& ) ),
this, SLOT ( OnServerAddrEditTextChanged ( const QString& ) ) );