[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/utils/krusader
From: Jan Lepper <dehtris () yahoo ! de>
Date: 2010-03-07 13:39:31
Message-ID: 1267969171.151042.8440.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1100407 by janlepper:
ADDED: option: Look&Feel > Quicksearch > "Up/Down cancels Quicksearch"
M +1 -0 ChangeLog
M +11 -2 krusader/Dialogs/krspecialwidgets.cpp
M +2 -1 krusader/Konfigurator/kglookfeel.cpp
--- trunk/extragear/utils/krusader/ChangeLog #1100406:1100407
@@ -1,3 +1,4 @@
+ ADDED: option: Look&Feel > Quicksearch > "Up/Down cancels Quicksearch"
ADDED: dbus interface: org.krusader.PanelManager.newTab(QString url) / \
newTabs(QStringList) ADDED: url command-line argument
ADDED: action "Show View Options Menu"
--- trunk/extragear/utils/krusader/krusader/Dialogs/krspecialwidgets.cpp \
#1100406:1100407 @@ -234,6 +234,9 @@
void KrQuickSearch::myKeyPressEvent(QKeyEvent *e)
{
+ KConfigGroup gc(krConfig, "Look&Feel");
+ bool updownCancel = gc.readEntry("Up/Down Cancels Quicksearch", false);
+
switch (e->key()) {
case Qt::Key_Escape:
emit stop(0);
@@ -246,10 +249,16 @@
emit stop(e);
break;
case Qt::Key_Down:
- otherMatching(text(), 1);
+ if(updownCancel)
+ emit stop(e);
+ else
+ otherMatching(text(), 1);
break;
case Qt::Key_Up:
- otherMatching(text(), -1);
+ if(updownCancel)
+ emit stop(e);
+ else
+ otherMatching(text(), -1);
break;
case Qt::Key_Insert:
case Qt::Key_Home:
--- trunk/extragear/utils/krusader/krusader/Konfigurator/kglookfeel.cpp \
#1100406:1100407 @@ -110,9 +110,10 @@
KONFIGURATOR_CHECKBOX_PARAM quicksearch[] = { // cfg_class cfg_name \
default text restart tooltip
{"Look&Feel", "New Style Quicksearch", _NewStyleQuicksearch, i18n("New \
style quicksearch"), false, i18n("Opens a quick search dialog box.") }, \
{"Look&Feel", "Case Sensitive Quicksearch", _CaseSensitiveQuicksearch, i18n("Case \
sensitive quicksearch"), false, i18n("All files beginning with capital letters \
appear before files beginning with non-capital letters (UNIX default).") }, + \
{"Look&Feel", "Up/Down Cancels Quicksearch", false, i18n("Up/Down cancels \
Quicksearch"), false, i18n("Pressing the Up/Down buttons cancels Quicksearch.") }, \
};
- quicksearchCheckboxes = createCheckBoxGroup(2, 0, quicksearch, 2 /*count*/, \
quicksearchGroup, PAGE_OPERATION); + quicksearchCheckboxes = \
createCheckBoxGroup(2, 0, quicksearch, 3 /*count*/, quicksearchGroup, \
PAGE_OPERATION); quicksearchGrid->addWidget(quicksearchCheckboxes, 0, 0);
connect(quicksearchCheckboxes->find("New Style Quicksearch"), \
SIGNAL(stateChanged(int)), this, SLOT(slotDisable())); slotDisable();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic