setFocus for Login and Search Field

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1526 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-08-13 12:16:35 +00:00
parent 243af3ffee
commit e56f29ce92
2 changed files with 4 additions and 16 deletions

View File

@ -88,29 +88,17 @@ SearchDialog::SearchDialog(QWidget *parent)
/* Invoke the Qt Designer generated object setup routine */
ui.setupUi(this);
ui.lineEdit->setFocus();
/* initialise the filetypes mapping */
if (!SearchDialog::initialised)
{
initialiseFileTypeMappings();
}
/* Advanced search panel specifica */
RshareSettings rsharesettings;
/*QString key (UI_PREF_ADVANCED_SEARCH);
bool useAdvanced = rsharesettings.value(key, QVariant(false)).toBool();
if (useAdvanced)
{
ui.toggleAdvancedSearchBtn->setChecked(true);
ui.SimpleSearchPanel->hide();
} else {
ui.AdvancedSearchPanel->hide();
}*/
connect(ui.toggleAdvancedSearchBtn, SIGNAL(clicked()), this, SLOT(showAdvSearchDialog()));
//connect(ui.focusAdvSearchDialogBtn, SIGNAL(clicked()), this, SLOT(showAdvSearchDialog()));
/* End Advanced Search Panel specifics */
connect( ui.searchResultWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( searchtableWidgetCostumPopupMenu( QPoint ) ) );

View File

@ -58,7 +58,7 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
/* Create Bandwidth Graph related QObjects */
_settings = new RshareSettings();
ui.loadPasswd->setFocus();
//connect(ui.genButton, SIGNAL(clicked()), this, SLOT(genPerson()));
connect(ui.loadButton, SIGNAL(clicked()), this, SLOT(loadPerson()));