mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-21 05:44:29 -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 */
|
/* Invoke the Qt Designer generated object setup routine */
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
|
|
||||||
|
ui.lineEdit->setFocus();
|
||||||
|
|
||||||
/* initialise the filetypes mapping */
|
/* initialise the filetypes mapping */
|
||||||
if (!SearchDialog::initialised)
|
if (!SearchDialog::initialised)
|
||||||
{
|
{
|
||||||
initialiseFileTypeMappings();
|
initialiseFileTypeMappings();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Advanced search panel specifica */
|
|
||||||
RshareSettings rsharesettings;
|
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.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 ) ) );
|
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 */
|
/* Create Bandwidth Graph related QObjects */
|
||||||
_settings = new RshareSettings();
|
_settings = new RshareSettings();
|
||||||
|
|
||||||
|
ui.loadPasswd->setFocus();
|
||||||
|
|
||||||
//connect(ui.genButton, SIGNAL(clicked()), this, SLOT(genPerson()));
|
//connect(ui.genButton, SIGNAL(clicked()), this, SLOT(genPerson()));
|
||||||
connect(ui.loadButton, SIGNAL(clicked()), this, SLOT(loadPerson()));
|
connect(ui.loadButton, SIGNAL(clicked()), this, SLOT(loadPerson()));
|
||||||
|
Loading…
Reference in New Issue
Block a user