-rw-r--r-- | libopie2/opieui/oversatileview.cpp | 152 | ||||
-rw-r--r-- | libopie2/opieui/oversatileviewitem.cpp | 2 |
2 files changed, 77 insertions, 77 deletions
diff --git a/libopie2/opieui/oversatileview.cpp b/libopie2/opieui/oversatileview.cpp index 32855be..6808539 100644 --- a/libopie2/opieui/oversatileview.cpp +++ b/libopie2/opieui/oversatileview.cpp | |||
@@ -259,3 +259,3 @@ void OVersatileView::popupContextMenu( OVersatileViewItem* item, const QPoint& p | |||
259 | { | 259 | { |
260 | if ( not item ) | 260 | if ( !item ) |
261 | _contextmenu->exec( pos ); | 261 | _contextmenu->exec( pos ); |
@@ -451,3 +451,3 @@ void OVersatileView::expanded( QListViewItem *item ) // QListView | |||
451 | //qDebug( "OVersatileView::expanded(): opening tree..." ); | 451 | //qDebug( "OVersatileView::expanded(): opening tree..." ); |
452 | if ( not _treeopened.isNull() ) | 452 | if ( !_treeopened.isNull() ) |
453 | item->setPixmap( 0, _treeopened ); | 453 | item->setPixmap( 0, _treeopened ); |
@@ -457,3 +457,3 @@ void OVersatileView::collapsed( QListViewItem *item ) // QListView | |||
457 | { | 457 | { |
458 | if ( not _treeclosed.isNull() ) | 458 | if ( !_treeclosed.isNull() ) |
459 | item->setPixmap( 0, _treeclosed ); | 459 | item->setPixmap( 0, _treeclosed ); |
@@ -468,3 +468,3 @@ int OVersatileView::treeStepSize() const // QListView | |||
468 | { | 468 | { |
469 | if ( not isValidViewMode( Tree ) ) | 469 | if ( !isValidViewMode( Tree ) ) |
470 | { | 470 | { |
@@ -476,3 +476,3 @@ int OVersatileView::treeStepSize() const // QListView | |||
476 | { | 476 | { |
477 | if ( not isValidViewMode( Tree ) ) | 477 | if ( !isValidViewMode( Tree ) ) |
478 | { | 478 | { |
@@ -485,3 +485,3 @@ QHeader * OVersatileView::header() const // QListView | |||
485 | { | 485 | { |
486 | if ( not isValidViewMode( Tree ) ) | 486 | if ( !isValidViewMode( Tree ) ) |
487 | { | 487 | { |
@@ -494,3 +494,3 @@ QHeader * OVersatileView::header() const // QListView | |||
494 | { | 494 | { |
495 | if ( not isValidViewMode( Tree ) ) | 495 | if ( !isValidViewMode( Tree ) ) |
496 | { | 496 | { |
@@ -500,6 +500,6 @@ QHeader * OVersatileView::header() const // QListView | |||
500 | } | 500 | } |
501 | 501 | ||
502 | int OVersatileView::addColumn( const QIconSet& iconset, const QString &label, int size ) // QListView | 502 | int OVersatileView::addColumn( const QIconSet& iconset, const QString &label, int size ) // QListView |
503 | { | 503 | { |
504 | if ( not isValidViewMode( Tree ) ) | 504 | if ( !isValidViewMode( Tree ) ) |
505 | { | 505 | { |
@@ -512,3 +512,3 @@ void OVersatileView::removeColumn( int index ) // QListView | |||
512 | { | 512 | { |
513 | if ( not isValidViewMode( Tree ) ) | 513 | if ( !isValidViewMode( Tree ) ) |
514 | { | 514 | { |
@@ -520,3 +520,3 @@ void OVersatileView::removeColumn( int index ) // QListView | |||
520 | { | 520 | { |
521 | if ( not isValidViewMode( Tree ) ) | 521 | if ( !isValidViewMode( Tree ) ) |
522 | { | 522 | { |
@@ -528,3 +528,3 @@ void OVersatileView::removeColumn( int index ) // QListView | |||
528 | { | 528 | { |
529 | if ( not isValidViewMode( Tree ) ) | 529 | if ( !isValidViewMode( Tree ) ) |
530 | { | 530 | { |
@@ -536,3 +536,3 @@ QString OVersatileView::columnText( int column ) const // QListView | |||
536 | { | 536 | { |
537 | if ( not isValidViewMode( Tree ) ) | 537 | if ( !isValidViewMode( Tree ) ) |
538 | { | 538 | { |
@@ -544,3 +544,3 @@ QString OVersatileView::columnText( int column ) const // QListView | |||
544 | { | 544 | { |
545 | if ( not isValidViewMode( Tree ) ) | 545 | if ( !isValidViewMode( Tree ) ) |
546 | { | 546 | { |
@@ -552,3 +552,3 @@ int OVersatileView::columnWidth( int column ) const // QListView | |||
552 | { | 552 | { |
553 | if ( not isValidViewMode( Tree ) ) | 553 | if ( !isValidViewMode( Tree ) ) |
554 | { | 554 | { |
@@ -560,3 +560,3 @@ int OVersatileView::columnWidth( int column ) const // QListView | |||
560 | { | 560 | { |
561 | if ( not isValidViewMode( Tree ) ) | 561 | if ( !isValidViewMode( Tree ) ) |
562 | { | 562 | { |
@@ -568,3 +568,3 @@ int OVersatileView::columns() const // QListView | |||
568 | { | 568 | { |
569 | if ( not isValidViewMode( Tree ) ) | 569 | if ( !isValidViewMode( Tree ) ) |
570 | { | 570 | { |
@@ -577,3 +577,3 @@ int OVersatileView::columns() const // QListView | |||
577 | { | 577 | { |
578 | if ( not isValidViewMode( Tree ) ) | 578 | if ( !isValidViewMode( Tree ) ) |
579 | { | 579 | { |
@@ -585,3 +585,3 @@ int OVersatileView::columnAlignment( int column ) const // QListView | |||
585 | { | 585 | { |
586 | if ( not isValidViewMode( Tree ) ) | 586 | if ( !isValidViewMode( Tree ) ) |
587 | { | 587 | { |
@@ -594,3 +594,3 @@ OVersatileViewItem * OVersatileView::itemAt( const QPoint & screenPos ) const / | |||
594 | { | 594 | { |
595 | if ( not isValidViewMode( Tree ) ) | 595 | if ( !isValidViewMode( Tree ) ) |
596 | { | 596 | { |
@@ -602,3 +602,3 @@ QRect OVersatileView::itemRect( const OVersatileViewItem * item ) const // QLis | |||
602 | { | 602 | { |
603 | if ( not isValidViewMode( Tree ) ) | 603 | if ( !isValidViewMode( Tree ) ) |
604 | { | 604 | { |
@@ -610,3 +610,3 @@ int OVersatileView::itemPos( const OVersatileViewItem * item ) // QListView | |||
610 | { | 610 | { |
611 | if ( not isValidViewMode( Tree ) ) | 611 | if ( !isValidViewMode( Tree ) ) |
612 | { | 612 | { |
@@ -619,3 +619,3 @@ bool OVersatileView::isSelected( const OVersatileViewItem * item ) const // QLi | |||
619 | { | 619 | { |
620 | if ( not isValidViewMode( Tree ) ) | 620 | if ( !isValidViewMode( Tree ) ) |
621 | { | 621 | { |
@@ -637,3 +637,3 @@ OVersatileViewItem * OVersatileView::selectedItem() const // QListView | |||
637 | { | 637 | { |
638 | if ( not isValidViewMode( Tree ) ) | 638 | if ( !isValidViewMode( Tree ) ) |
639 | { | 639 | { |
@@ -645,3 +645,3 @@ OVersatileViewItem * OVersatileView::selectedItem() const // QListView | |||
645 | { | 645 | { |
646 | if ( not isValidViewMode( Tree ) ) | 646 | if ( !isValidViewMode( Tree ) ) |
647 | { | 647 | { |
@@ -653,3 +653,3 @@ bool OVersatileView::isOpen( const OVersatileViewItem * item ) const // QListVi | |||
653 | { | 653 | { |
654 | if ( not isValidViewMode( Tree ) ) | 654 | if ( !isValidViewMode( Tree ) ) |
655 | { | 655 | { |
@@ -662,3 +662,3 @@ OVersatileViewItem * OVersatileView::firstChild() const // QListView | |||
662 | { | 662 | { |
663 | if ( not isValidViewMode( Tree ) ) | 663 | if ( !isValidViewMode( Tree ) ) |
664 | { | 664 | { |
@@ -670,3 +670,3 @@ int OVersatileView::childCount() const // QListView | |||
670 | { | 670 | { |
671 | if ( not isValidViewMode( Tree ) ) | 671 | if ( !isValidViewMode( Tree ) ) |
672 | { | 672 | { |
@@ -679,3 +679,3 @@ int OVersatileView::childCount() const // QListView | |||
679 | { | 679 | { |
680 | if ( not isValidViewMode( Tree ) ) | 680 | if ( !isValidViewMode( Tree ) ) |
681 | { | 681 | { |
@@ -687,3 +687,3 @@ bool OVersatileView::allColumnsShowFocus() const // QListView | |||
687 | { | 687 | { |
688 | if ( not isValidViewMode( Tree ) ) | 688 | if ( !isValidViewMode( Tree ) ) |
689 | { | 689 | { |
@@ -696,3 +696,3 @@ bool OVersatileView::allColumnsShowFocus() const // QListView | |||
696 | { | 696 | { |
697 | if ( not isValidViewMode( Tree ) ) | 697 | if ( !isValidViewMode( Tree ) ) |
698 | { | 698 | { |
@@ -704,3 +704,3 @@ int OVersatileView::itemMargin() const // QListView | |||
704 | { | 704 | { |
705 | if ( not isValidViewMode( Tree ) ) | 705 | if ( !isValidViewMode( Tree ) ) |
706 | { | 706 | { |
@@ -713,3 +713,3 @@ int OVersatileView::itemMargin() const // QListView | |||
713 | { | 713 | { |
714 | if ( not isValidViewMode( Tree ) ) | 714 | if ( !isValidViewMode( Tree ) ) |
715 | { | 715 | { |
@@ -721,3 +721,3 @@ bool OVersatileView::rootIsDecorated() const // QListView | |||
721 | { | 721 | { |
722 | if ( not isValidViewMode( Tree ) ) | 722 | if ( !isValidViewMode( Tree ) ) |
723 | { | 723 | { |
@@ -730,3 +730,3 @@ void OVersatileView::setShowSortIndicator( bool show ) // QListView | |||
730 | { | 730 | { |
731 | if ( not isValidViewMode( Tree ) ) | 731 | if ( !isValidViewMode( Tree ) ) |
732 | { | 732 | { |
@@ -738,3 +738,3 @@ bool OVersatileView::showSortIndicator() const // QListView | |||
738 | { | 738 | { |
739 | if ( not isValidViewMode( Tree ) ) | 739 | if ( !isValidViewMode( Tree ) ) |
740 | { | 740 | { |
@@ -747,3 +747,3 @@ void OVersatileView::triggerUpdate() // QListView | |||
747 | { | 747 | { |
748 | if ( not isValidViewMode( Tree ) ) | 748 | if ( !isValidViewMode( Tree ) ) |
749 | { | 749 | { |
@@ -760,3 +760,3 @@ uint OVersatileView::count() const // QIconView | |||
760 | { | 760 | { |
761 | if ( not isValidViewMode( Icons ) ) | 761 | if ( !isValidViewMode( Icons ) ) |
762 | { | 762 | { |
@@ -769,3 +769,3 @@ int OVersatileView::index( const OVersatileViewItem *item ) const // QIconView | |||
769 | { | 769 | { |
770 | if ( not isValidViewMode( Icons ) ) | 770 | if ( !isValidViewMode( Icons ) ) |
771 | { | 771 | { |
@@ -778,3 +778,3 @@ OVersatileViewItem* OVersatileView::firstItem() const // QIconView | |||
778 | { | 778 | { |
779 | if ( not isValidViewMode( Icons ) ) | 779 | if ( !isValidViewMode( Icons ) ) |
780 | { | 780 | { |
@@ -786,3 +786,3 @@ OVersatileViewItem* OVersatileView::lastItem() const // QIconView | |||
786 | { | 786 | { |
787 | if ( not isValidViewMode( Icons ) ) | 787 | if ( !isValidViewMode( Icons ) ) |
788 | { | 788 | { |
@@ -795,3 +795,3 @@ OVersatileViewItem* OVersatileView::findItem( const QPoint &pos ) const // QIcon | |||
795 | { | 795 | { |
796 | if ( not isValidViewMode( Icons ) ) | 796 | if ( !isValidViewMode( Icons ) ) |
797 | { | 797 | { |
@@ -803,3 +803,3 @@ OVersatileViewItem* OVersatileView::findItem( const QString &text ) const // QIc | |||
803 | { | 803 | { |
804 | if ( not isValidViewMode( Icons ) ) | 804 | if ( !isValidViewMode( Icons ) ) |
805 | { | 805 | { |
@@ -812,3 +812,3 @@ OVersatileViewItem* OVersatileView::findFirstVisibleItem( const QRect &r ) const | |||
812 | { | 812 | { |
813 | if ( not isValidViewMode( Icons ) ) | 813 | if ( !isValidViewMode( Icons ) ) |
814 | { | 814 | { |
@@ -820,3 +820,3 @@ OVersatileViewItem* OVersatileView::findLastVisibleItem( const QRect &r ) const | |||
820 | { | 820 | { |
821 | if ( not isValidViewMode( Icons ) ) | 821 | if ( !isValidViewMode( Icons ) ) |
822 | { | 822 | { |
@@ -829,3 +829,3 @@ OVersatileViewItem* OVersatileView::findLastVisibleItem( const QRect &r ) const | |||
829 | { | 829 | { |
830 | if ( not isValidViewMode( Icons ) ) | 830 | if ( !isValidViewMode( Icons ) ) |
831 | { | 831 | { |
@@ -837,3 +837,3 @@ OVersatileViewItem* OVersatileView::findLastVisibleItem( const QRect &r ) const | |||
837 | { | 837 | { |
838 | if ( not isValidViewMode( Icons ) ) | 838 | if ( !isValidViewMode( Icons ) ) |
839 | { | 839 | { |
@@ -845,3 +845,3 @@ int OVersatileView::gridX() const // QIconView | |||
845 | { | 845 | { |
846 | if ( not isValidViewMode( Icons ) ) | 846 | if ( !isValidViewMode( Icons ) ) |
847 | { | 847 | { |
@@ -853,3 +853,3 @@ int OVersatileView::gridY() const // QIconView | |||
853 | { | 853 | { |
854 | if ( not isValidViewMode( Icons ) ) | 854 | if ( !isValidViewMode( Icons ) ) |
855 | { | 855 | { |
@@ -861,3 +861,3 @@ int OVersatileView::gridY() const // QIconView | |||
861 | { | 861 | { |
862 | if ( not isValidViewMode( Icons ) ) | 862 | if ( !isValidViewMode( Icons ) ) |
863 | { | 863 | { |
@@ -869,3 +869,3 @@ int OVersatileView::spacing() const // QIconView | |||
869 | { | 869 | { |
870 | if ( not isValidViewMode( Icons ) ) | 870 | if ( !isValidViewMode( Icons ) ) |
871 | { | 871 | { |
@@ -877,3 +877,3 @@ int OVersatileView::spacing() const // QIconView | |||
877 | { | 877 | { |
878 | if ( not isValidViewMode( Icons ) ) | 878 | if ( !isValidViewMode( Icons ) ) |
879 | { | 879 | { |
@@ -885,3 +885,3 @@ QIconView::ItemTextPos OVersatileView::itemTextPos() const // QIconView | |||
885 | { | 885 | { |
886 | if ( not isValidViewMode( Icons ) ) | 886 | if ( !isValidViewMode( Icons ) ) |
887 | { | 887 | { |
@@ -893,3 +893,3 @@ QIconView::ItemTextPos OVersatileView::itemTextPos() const // QIconView | |||
893 | { | 893 | { |
894 | if ( not isValidViewMode( Icons ) ) | 894 | if ( !isValidViewMode( Icons ) ) |
895 | { | 895 | { |
@@ -901,3 +901,3 @@ QBrush OVersatileView::itemTextBackground() const // QIconView | |||
901 | { | 901 | { |
902 | if ( not isValidViewMode( Icons ) ) | 902 | if ( !isValidViewMode( Icons ) ) |
903 | { | 903 | { |
@@ -909,3 +909,3 @@ QBrush OVersatileView::itemTextBackground() const // QIconView | |||
909 | { | 909 | { |
910 | if ( not isValidViewMode( Icons ) ) | 910 | if ( !isValidViewMode( Icons ) ) |
911 | { | 911 | { |
@@ -917,3 +917,3 @@ QIconView::Arrangement OVersatileView::arrangement() const // QIconView | |||
917 | { | 917 | { |
918 | if ( not isValidViewMode( Icons ) ) | 918 | if ( !isValidViewMode( Icons ) ) |
919 | { | 919 | { |
@@ -925,3 +925,3 @@ QIconView::Arrangement OVersatileView::arrangement() const // QIconView | |||
925 | { | 925 | { |
926 | if ( not isValidViewMode( Icons ) ) | 926 | if ( !isValidViewMode( Icons ) ) |
927 | { | 927 | { |
@@ -933,3 +933,3 @@ QIconView::ResizeMode OVersatileView::resizeMode() const // QIconView | |||
933 | { | 933 | { |
934 | if ( not isValidViewMode( Icons ) ) | 934 | if ( !isValidViewMode( Icons ) ) |
935 | { | 935 | { |
@@ -941,3 +941,3 @@ QIconView::ResizeMode OVersatileView::resizeMode() const // QIconView | |||
941 | { | 941 | { |
942 | if ( not isValidViewMode( Icons ) ) | 942 | if ( !isValidViewMode( Icons ) ) |
943 | { | 943 | { |
@@ -949,3 +949,3 @@ int OVersatileView::maxItemWidth() const // QIconView | |||
949 | { | 949 | { |
950 | if ( not isValidViewMode( Icons ) ) | 950 | if ( !isValidViewMode( Icons ) ) |
951 | { | 951 | { |
@@ -957,3 +957,3 @@ int OVersatileView::maxItemWidth() const // QIconView | |||
957 | { | 957 | { |
958 | if ( not isValidViewMode( Icons ) ) | 958 | if ( !isValidViewMode( Icons ) ) |
959 | { | 959 | { |
@@ -965,3 +965,3 @@ int OVersatileView::maxItemTextLength() const // QIconView | |||
965 | { | 965 | { |
966 | if ( not isValidViewMode( Icons ) ) | 966 | if ( !isValidViewMode( Icons ) ) |
967 | { | 967 | { |
@@ -973,3 +973,3 @@ int OVersatileView::maxItemTextLength() const // QIconView | |||
973 | { | 973 | { |
974 | if ( not isValidViewMode( Icons ) ) | 974 | if ( !isValidViewMode( Icons ) ) |
975 | { | 975 | { |
@@ -981,3 +981,3 @@ bool OVersatileView::autoArrange() const // QIconView | |||
981 | { | 981 | { |
982 | if ( not isValidViewMode( Icons ) ) | 982 | if ( !isValidViewMode( Icons ) ) |
983 | { | 983 | { |
@@ -989,3 +989,3 @@ bool OVersatileView::autoArrange() const // QIconView | |||
989 | { | 989 | { |
990 | if ( not isValidViewMode( Icons ) ) | 990 | if ( !isValidViewMode( Icons ) ) |
991 | { | 991 | { |
@@ -997,3 +997,3 @@ bool OVersatileView::showToolTips() const // QIconView | |||
997 | { | 997 | { |
998 | if ( not isValidViewMode( Icons ) ) | 998 | if ( !isValidViewMode( Icons ) ) |
999 | { | 999 | { |
@@ -1006,3 +1006,3 @@ bool OVersatileView::sorting() const // QIconView | |||
1006 | { | 1006 | { |
1007 | if ( not isValidViewMode( Icons ) ) | 1007 | if ( !isValidViewMode( Icons ) ) |
1008 | { | 1008 | { |
@@ -1014,3 +1014,3 @@ bool OVersatileView::sortDirection() const // QIconView | |||
1014 | { | 1014 | { |
1015 | if ( not isValidViewMode( Icons ) ) | 1015 | if ( !isValidViewMode( Icons ) ) |
1016 | { | 1016 | { |
@@ -1023,3 +1023,3 @@ bool OVersatileView::sortDirection() const // QIconView | |||
1023 | { | 1023 | { |
1024 | if ( not isValidViewMode( Icons ) ) | 1024 | if ( !isValidViewMode( Icons ) ) |
1025 | { | 1025 | { |
@@ -1031,3 +1031,3 @@ bool OVersatileView::itemsMovable() const // QIconView | |||
1031 | { | 1031 | { |
1032 | if ( not isValidViewMode( Icons ) ) | 1032 | if ( !isValidViewMode( Icons ) ) |
1033 | { | 1033 | { |
@@ -1039,3 +1039,3 @@ void OVersatileView::setWordWrapIconText( bool b ) // QIconView | |||
1039 | { | 1039 | { |
1040 | if ( not isValidViewMode( Icons ) ) | 1040 | if ( !isValidViewMode( Icons ) ) |
1041 | { | 1041 | { |
@@ -1047,3 +1047,3 @@ bool OVersatileView::wordWrapIconText() const // QIconView | |||
1047 | { | 1047 | { |
1048 | if ( not isValidViewMode( Icons ) ) | 1048 | if ( !isValidViewMode( Icons ) ) |
1049 | { | 1049 | { |
@@ -1056,3 +1056,3 @@ void OVersatileView::arrangeItemsInGrid( const QSize &grid, bool update ) // QI | |||
1056 | { | 1056 | { |
1057 | if ( not isValidViewMode( Icons ) ) | 1057 | if ( !isValidViewMode( Icons ) ) |
1058 | { | 1058 | { |
@@ -1064,3 +1064,3 @@ void OVersatileView::arrangeItemsInGrid( bool update ) // QIconView | |||
1064 | { | 1064 | { |
1065 | if ( not isValidViewMode( Icons ) ) | 1065 | if ( !isValidViewMode( Icons ) ) |
1066 | { | 1066 | { |
@@ -1072,3 +1072,3 @@ void OVersatileView::updateContents() // QIconView | |||
1072 | { | 1072 | { |
1073 | if ( not isValidViewMode( Icons ) ) | 1073 | if ( !isValidViewMode( Icons ) ) |
1074 | { | 1074 | { |
diff --git a/libopie2/opieui/oversatileviewitem.cpp b/libopie2/opieui/oversatileviewitem.cpp index 379ce24..66de8eb 100644 --- a/libopie2/opieui/oversatileviewitem.cpp +++ b/libopie2/opieui/oversatileviewitem.cpp | |||
@@ -98,3 +98,3 @@ void OVersatileViewItem::init() | |||
98 | { | 98 | { |
99 | if ( not firstChild() ) | 99 | if ( !firstChild() ) |
100 | { | 100 | { |