mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
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:
parent
243af3ffee
commit
e56f29ce92
@ -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 ) ) );
|
||||
|
||||
|
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user