summaryrefslogtreecommitdiffabout
path: root/microkde/kdeui/klistview.h
Unidiff
Diffstat (limited to 'microkde/kdeui/klistview.h') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kdeui/klistview.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/microkde/kdeui/klistview.h b/microkde/kdeui/klistview.h
index 8d933f6..d559ce7 100644
--- a/microkde/kdeui/klistview.h
+++ b/microkde/kdeui/klistview.h
@@ -351,48 +351,52 @@ public:
351 * @ref #saveLayout 351 * @ref #saveLayout
352 * 352 *
353 * @param config the @ref KConfig object to read from 353 * @param config the @ref KConfig object to read from
354 * @param group the config group to use 354 * @param group the config group to use
355 */ 355 */
356 void restoreLayout(KConfig *config, const QString &group); 356 void restoreLayout(KConfig *config, const QString &group);
357 /** 357 /**
358 * Reimplemented to remember the current sort column and order. 358 * Reimplemented to remember the current sort column and order.
359 * @param column is the column to be sorted, or -1 to sort in order of 359 * @param column is the column to be sorted, or -1 to sort in order of
360 * insertion 360 * insertion
361 * @param whether to sort ascending (or descending) 361 * @param whether to sort ascending (or descending)
362 */ 362 */
363 virtual void setSorting(int column, bool ascending = true); 363 virtual void setSorting(int column, bool ascending = true);
364 364
365 /** 365 /**
366 * @return the currently sorted column, or -1 if none is sorted 366 * @return the currently sorted column, or -1 if none is sorted
367 */ 367 */
368 int columnSorted(void) const; 368 int columnSorted(void) const;
369 369
370 /** 370 /**
371 * @return whether the current sort is ascending (or descending) 371 * @return whether the current sort is ascending (or descending)
372 */ 372 */
373 bool ascendingSort(void) const; 373 bool ascendingSort(void) const;
374 374
375 //US we do not have a "global KDE" variable to setup singleClick functionality
376 void setSingleClick(bool s);
377
378
375signals: 379signals:
376 380
377 /** 381 /**
378 * This signal is emitted whenever the user executes an listview item. 382 * This signal is emitted whenever the user executes an listview item.
379 * That means depending on the KDE wide Single Click/Double Click 383 * That means depending on the KDE wide Single Click/Double Click
380 * setting the user clicked or double clicked on that item. 384 * setting the user clicked or double clicked on that item.
381 * @param item is the pointer to the executed listview item. 385 * @param item is the pointer to the executed listview item.
382 * 386 *
383 * Note that you may not delete any @ref QListViewItem objects in slots 387 * Note that you may not delete any @ref QListViewItem objects in slots
384 * connected to this signal. 388 * connected to this signal.
385 */ 389 */
386 void executed( QListViewItem *item ); 390 void executed( QListViewItem *item );
387 391
388 /** 392 /**
389 * This signal is emitted whenever the user executes an listview item. 393 * This signal is emitted whenever the user executes an listview item.
390 * That means depending on the KDE wide Single Click/Double Click 394 * That means depending on the KDE wide Single Click/Double Click
391 * setting the user clicked or double clicked on that item. 395 * setting the user clicked or double clicked on that item.
392 * @param item is the pointer to the executed listview item. 396 * @param item is the pointer to the executed listview item.
393 * @param pos is the position where the user has clicked 397 * @param pos is the position where the user has clicked
394 * @param c is the column into which the user clicked. 398 * @param c is the column into which the user clicked.
395 * 399 *
396 * Note that you may not delete any @ref QListViewItem objects in slots 400 * Note that you may not delete any @ref QListViewItem objects in slots
397 * connected to this signal. 401 * connected to this signal.
398 */ 402 */
@@ -662,49 +666,50 @@ protected:
662 /** 666 /**
663 * An overloaded version of below(const QRect&, const QPoint&). 667 * An overloaded version of below(const QRect&, const QPoint&).
664 * 668 *
665 * It differs from the above only in what arguments it takes. 669 * It differs from the above only in what arguments it takes.
666 * 670 *
667 * @param i the item whose rect() is passed to the above function. 671 * @param i the item whose rect() is passed to the above function.
668 * @param p is translated from contents coordinates to viewport coordinates 672 * @param p is translated from contents coordinates to viewport coordinates
669 * before being passed to the above function. 673 * before being passed to the above function.
670 */ 674 */
671 inline bool below (QListViewItem* i, const QPoint& p) 675 inline bool below (QListViewItem* i, const QPoint& p)
672 { 676 {
673 return below (itemRect(i), contentsToViewport(p)); 677 return below (itemRect(i), contentsToViewport(p));
674 } 678 }
675 679
676 /** 680 /**
677 * Reimplemented to reload the alternate background in palette changes. 681 * Reimplemented to reload the alternate background in palette changes.
678 * @internal 682 * @internal
679 */ 683 */
680 virtual bool event( QEvent * ); 684 virtual bool event( QEvent * );
681 685
682 /** 686 /**
683 * Emit signal @ref #executed. 687 * Emit signal @ref #executed.
684 * @internal 688 * @internal
685 */ 689 */
686 void emitExecute( QListViewItem *item, const QPoint &pos, int c ); 690 //US I added buttonstate to pass the current keyboard status
691 void emitExecute( int buttonstate, QListViewItem *item, const QPoint &pos, int c);
687 692
688 /** 693 /**
689 * Reimplemented for internal reasons. 694 * Reimplemented for internal reasons.
690 * Further reimplementations should call this function or else 695 * Further reimplementations should call this function or else
691 * some features may not work correctly. 696 * some features may not work correctly.
692 * 697 *
693 * The API is unaffected. 698 * The API is unaffected.
694 */ 699 */
695 virtual void focusInEvent(QFocusEvent* fe); 700 virtual void focusInEvent(QFocusEvent* fe);
696 701
697 /** 702 /**
698 * Reimplemented for internal reasons. 703 * Reimplemented for internal reasons.
699 * Further reimplementations should call this function or else 704 * Further reimplementations should call this function or else
700 * some features may not work correctly. 705 * some features may not work correctly.
701 * 706 *
702 * The API is unaffected. 707 * The API is unaffected.
703 */ 708 */
704 virtual void focusOutEvent( QFocusEvent *fe ); 709 virtual void focusOutEvent( QFocusEvent *fe );
705 710
706 /** 711 /**
707 * Reimplemented for internal reasons. 712 * Reimplemented for internal reasons.
708 * Further reimplementations should call this function or else 713 * Further reimplementations should call this function or else
709 * some features may not work correctly. 714 * some features may not work correctly.
710 * 715 *