projects
/
jenirok
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Architecture changed to allow easier addition of new phone books. Norwegian phonebook...
[jenirok]
/
src
/
gui
/
searchdialog.cpp
diff --git
a/src/gui/searchdialog.cpp
b/src/gui/searchdialog.cpp
index
1097b80
..
58dd94f
100644
(file)
--- a/
src/gui/searchdialog.cpp
+++ b/
src/gui/searchdialog.cpp
@@
-43,7
+43,7
@@
numberInput_(0), locationInput_(0), selector_(0)
selector_ = new ButtonSelector(tr("Type"), this);
selector_->addItem(tr("Persons"));
selector_ = new ButtonSelector(tr("Type"), this);
selector_->addItem(tr("Persons"));
- selector_->addItem(tr("Yellow pages"));
+ selector_->addItem(tr("Companies"));
QVBoxLayout* leftLayout = new QVBoxLayout;
leftLayout->addLayout(numberLayout);
QVBoxLayout* leftLayout = new QVBoxLayout;
leftLayout->addLayout(numberLayout);
@@
-82,6
+82,10
@@
void SearchDialog::searchPressed()
void SearchDialog::setVisible(bool visible)
{
void SearchDialog::setVisible(bool visible)
{
- QDialog::setVisible(visible);
- numberInput_->setFocus();
+ QDialog::setVisible(visible);
+
+ if(visible)
+ {
+ numberInput_->setFocus();
+ }
}
}