[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdeui
From:       Cristian Tibirna <tibirna () kde ! org>
Date:       2004-06-01 3:07:54
Message-ID: 20040601030754.2BAAA126E6 () office ! kde ! org
[Download RAW message or body]

CVS commit by tibirna: 

add a missing setBuddy (thanks, Stephan Binner)
and a missing qwhatsthis to the new searchline feature


  M +9 -3      kkeydialog.cpp   1.159


--- kdelibs/kdeui/kkeydialog.cpp  #1.158:1.159
@@ -305,10 +305,16 @@ void KKeyChooser::initGUI( ActionType ty
   clearSearch->setIconSet(SmallIconSet("locationbar_erase"));
   searchLayout->addWidget(clearSearch);
-  searchLayout->addWidget(new QLabel(i18n("&Search:"), this));
+  QLabel* slbl = new QLabel(i18n("&Search:"), this);
+  searchLayout->addWidget(slbl);
   KListViewSearchLine* listViewSearch = new KListViewSearchLine(this);
   searchLayout->addWidget(listViewSearch);
-
+  slbl->setBuddy(listViewSearch);
   connect(clearSearch, SIGNAL(pressed()), listViewSearch, SLOT(clear()));
 
+  QString wtstr = i18n("Search interactively for shortcut names (e.g. Copy) "
+                       "or combination of keys (e.g. Ctrl+C) by typing them here.");
+
+  QWhatsThis::add(slbl, wtstr);
+  QWhatsThis::add(listViewSearch, wtstr);
 
   //
@@ -327,5 +333,5 @@ void KKeyChooser::initGUI( ActionType ty
   stackLayout->addMultiCellWidget( d->pList, 1, 1, 0, 1 );
 
-  QString wtstr = i18n("Here you can see a list of key bindings, "
+  wtstr = i18n("Here you can see a list of key bindings, "
                        "i.e. associations between actions (e.g. 'Copy') "
                        "shown in the left column and keys or combination "


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic