|
Lines 55-60
Link Here
|
| 55 |
#include <tqwhatsthis.h> |
55 |
#include <tqwhatsthis.h> |
| 56 |
#include <tqtabwidget.h> |
56 |
#include <tqtabwidget.h> |
| 57 |
#include <tqradiobutton.h> |
57 |
#include <tqradiobutton.h> |
|
|
58 |
#include <tqstyle.h> |
| 59 |
#include <tqevent.h> |
| 58 |
|
60 |
|
| 59 |
#include <klocale.h> |
61 |
#include <klocale.h> |
| 60 |
#include <kdialog.h> |
62 |
#include <kdialog.h> |
|
Lines 223-230
Link Here
|
| 223 |
" rapidly to different areas on the screen."); |
225 |
" rapidly to different areas on the screen."); |
| 224 |
TQWhatsThis::add( thresh, wtstr ); |
226 |
TQWhatsThis::add( thresh, wtstr ); |
| 225 |
|
227 |
|
| 226 |
// It would be nice if the user had a test field. |
|
|
| 227 |
// Selecting such values in milliseconds is not intuitive |
| 228 |
doubleClickInterval = new KIntNumInput(thresh, 2000, tab2); |
228 |
doubleClickInterval = new KIntNumInput(thresh, 2000, tab2); |
| 229 |
doubleClickInterval->setLabel(i18n("Double click interval:")); |
229 |
doubleClickInterval->setLabel(i18n("Double click interval:")); |
| 230 |
doubleClickInterval->setRange(0, 2000, 100); |
230 |
doubleClickInterval->setRange(0, 2000, 100); |
|
Lines 241-247
Link Here
|
| 241 |
" separate clicks."); |
241 |
" separate clicks."); |
| 242 |
TQWhatsThis::add( doubleClickInterval, wtstr ); |
242 |
TQWhatsThis::add( doubleClickInterval, wtstr ); |
| 243 |
|
243 |
|
| 244 |
lay->addSpacing(15); |
244 |
lay->addSpacing(10); |
|
|
245 |
|
| 246 |
doubleClickLabel = new TQLabel(i18n("Double-click on the image below to test your double-click interval:"), tab2); |
| 247 |
lay->addWidget(doubleClickLabel); |
| 248 |
wtstr = i18n("The image will change when your double-click" |
| 249 |
" test time is less than or equal to the interval you" |
| 250 |
" configured. When changing the interval, be sure to select" |
| 251 |
" the Apply button before testing. For example, the image" |
| 252 |
" will not change when you configure a double-click interval" |
| 253 |
" of 700 milliseconds and the time between two successive" |
| 254 |
" clicks on the image is 800 milliseconds, but the image will" |
| 255 |
" change when the time between clicks is 600 milliseconds." |
| 256 |
" The goal is to select a comfortable interval that you find" |
| 257 |
" is not too fast or slow."); |
| 258 |
TQWhatsThis::add( doubleClickLabel, wtstr ); |
| 259 |
doubleClickButton = new TQPushButton( tab2 ); |
| 260 |
doubleClickButton->setAcceptDrops( false ); |
| 261 |
// The images are 32x32. |
| 262 |
uint sz = style().pixelMetric( TQStyle::PM_ButtonMargin ) * 2 + 48; |
| 263 |
doubleClickButton->setFixedSize( sz, sz ); |
| 264 |
// Show the first image. |
| 265 |
doubleClickButton->setPixmap(locate("data", "kcminput/pics/doubleclick_1.png")); |
| 266 |
lay->addWidget(doubleClickButton); |
| 267 |
// Use the same What's This help for the pushbutton. |
| 268 |
TQWhatsThis::add( doubleClickButton, wtstr ); |
| 269 |
|
| 270 |
lay->addSpacing(10); |
| 245 |
|
271 |
|
| 246 |
dragStartTime = new KIntNumInput(doubleClickInterval, 2000, tab2); |
272 |
dragStartTime = new KIntNumInput(doubleClickInterval, 2000, tab2); |
| 247 |
dragStartTime->setLabel(i18n("Drag start time:")); |
273 |
dragStartTime->setLabel(i18n("Drag start time:")); |