By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1324
Collapse All | Expand All

(-)ori/tdebase/kcontrol/input/mouse.cpp (-1 / +30 lines)
Lines 256-261 Link Here
256
         " The goal is to select a comfortable interval that you find"
256
         " The goal is to select a comfortable interval that you find"
257
         " is not too fast or slow.");
257
         " is not too fast or slow.");
258
    TQWhatsThis::add( doubleClickLabel, wtstr );
258
    TQWhatsThis::add( doubleClickLabel, wtstr );
259
    doubleClickStatus = false;  // First image will be displayed
259
    doubleClickButton = new TQPushButton( tab2 );
260
    doubleClickButton = new TQPushButton( tab2 );
260
    doubleClickButton->setAcceptDrops( false );
261
    doubleClickButton->setAcceptDrops( false );
261
    // The images are 32x32.
262
    // The images are 32x32.
Lines 266-272 Link Here
266
    lay->addWidget(doubleClickButton);
267
    lay->addWidget(doubleClickButton);
267
    // Use the same What's This help for the pushbutton.
268
    // Use the same What's This help for the pushbutton.
268
    TQWhatsThis::add( doubleClickButton, wtstr );
269
    TQWhatsThis::add( doubleClickButton, wtstr );
269
270
    connect(doubleClickButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotDoubleClickButtonPressed()));
271
    doubleClickTimer=new TQTimer();
272
    connect(doubleClickTimer, TQT_SIGNAL(timeout()), this, SLOT(slotDoubleClickTimerDone()) );
273
    
270
    lay->addSpacing(10);
274
    lay->addSpacing(10);
271
275
272
    dragStartTime = new KIntNumInput(doubleClickInterval, 2000, tab2);
276
    dragStartTime = new KIntNumInput(doubleClickInterval, 2000, tab2);
Lines 641-646 Link Here
641
645
642
}
646
}
643
647
648
void MouseConfig::slotDoubleClickButtonPressed()
649
{
650
  if (!doubleClickTimer->isActive())
651
  {
652
    // First click or click after the timer has expired -> start the timer
653
    doubleClickTimer->start(doubleClickInterval->value(), true);
654
  }
655
  else
656
  {
657
    // Double click event: stop the timer and change the picture
658
    doubleClickTimer->stop();
659
    if (!doubleClickStatus)
660
      doubleClickButton->setPixmap(locate("data", "kcminput/pics/doubleclick_2.png"));
661
    else
662
      doubleClickButton->setPixmap(locate("data", "kcminput/pics/doubleclick_1.png"));
663
    doubleClickStatus= !doubleClickStatus;
664
  }
665
}
666
667
void MouseConfig::slotDoubleClickTimerDone()
668
{
669
  // Stop the timer, even though not strictly needed since it is a single shot timer
670
  doubleClickTimer->stop();
671
}
672
644
/** No descriptions */
673
/** No descriptions */
645
void MouseConfig::slotHandedChanged(int val){
674
void MouseConfig::slotHandedChanged(int val){
646
  if(val==RIGHT_HANDED)
675
  if(val==RIGHT_HANDED)
(-)ori/tdebase/kcontrol/input/mouse.h (-2 / +6 lines)
Lines 37-42 Link Here
37
#include <tqlcdnumber.h>
37
#include <tqlcdnumber.h>
38
#include <tqpushbutton.h>
38
#include <tqpushbutton.h>
39
#include <tqradiobutton.h>
39
#include <tqradiobutton.h>
40
#include <tqtimer.h>
40
41
41
#include <tdeapplication.h>
42
#include <tdeapplication.h>
42
43
Lines 104-109 Link Here
104
private slots:
105
private slots:
105
106
106
  void slotClick();
107
  void slotClick();
108
  void slotDoubleClickButtonPressed();
109
  void slotDoubleClickTimerDone();
107
  /** No descriptions */
110
  /** No descriptions */
108
  void slotHandedChanged(int val);
111
  void slotHandedChanged(int val);
109
  void slotScrollPolarityChanged();
112
  void slotScrollPolarityChanged();
Lines 149-157 Link Here
149
  KIntNumInput *mk_delay, *mk_interval, *mk_time_to_max, *mk_max_speed,
152
  KIntNumInput *mk_delay, *mk_interval, *mk_time_to_max, *mk_max_speed,
150
    *mk_curve;
153
    *mk_curve;
151
154
152
  TQLabel *doubleClickLabel;
155
  TQLabel      *doubleClickLabel;
153
  TQPushButton *doubleClickButton;
156
  TQPushButton *doubleClickButton;
154
157
  TQTimer      *doubleClickTimer;
158
  bool         doubleClickStatus;
155
};
159
};
156
160
157
#endif
161
#endif

Return to bug 1324