[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kdict
From: Henrique Pinto <stampede () coltec ! ufmg ! br>
Date: 2005-05-01 13:19:58
Message-ID: 20050501131958.10959669 () office ! kde ! org
[Download RAW message or body]
CVS commit by pinto:
* Autoselect the query box after a search.
BUGS: 55381
M +9 -0 actions.cpp 1.11
M +1 -0 actions.h 1.7
M +1 -0 queryview.cpp 1.17
M +4 -1 toplevel.cpp 1.28
--- kdenetwork/kdict/actions.cpp #1.10:1.11
@@ -107,4 +107,13 @@ QString DictComboAction::currentText() c
}
+void DictComboAction::selectAll()
+{
+ if (m_combo)
+ {
+ m_combo->lineEdit()->selectAll();
+ m_combo->lineEdit()->setFocus();
+ }
+}
+
void DictComboAction::setEditText(const QString &s)
--- kdenetwork/kdict/actions.h #1.6:1.7
@@ -45,4 +45,5 @@ class DictComboAction : public KAction
QString currentText() const;
+ void selectAll();
void setEditText(const QString &s);
void setCurrentItem(int index);
--- kdenetwork/kdict/queryview.cpp #1.16:1.17
@@ -353,4 +353,5 @@ void QueryView::resultReady(const QStrin
showResult();
emit(enablePrintSave());
+ actQueryCombo->selectAll();
updateBrowseActions();
}
--- kdenetwork/kdict/toplevel.cpp #1.27:1.28
@@ -468,6 +468,8 @@ void TopLevel::doDefine()
QString text(actQueryCombo->currentText());
- if (!text.isEmpty()) {
+ if (!text.isEmpty())
+ {
addCurrentInputToHistory();
+ actQueryCombo->selectAll();
interface->define(text);
}
@@ -481,4 +483,5 @@ void TopLevel::doMatch()
if (!text.isEmpty()) {
addCurrentInputToHistory();
+ actQueryCombo->selectAll();
if (!global->showMatchList)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic