equal
deleted
inserted
replaced
113 q->connect(mSliderPopupContentWidget->slider,SIGNAL(textClicked()),q,SIGNAL(textClicked())); |
113 q->connect(mSliderPopupContentWidget->slider,SIGNAL(textClicked()),q,SIGNAL(textClicked())); |
114 |
114 |
115 q->setDismissPolicy(HbDialog::TapOutside); |
115 q->setDismissPolicy(HbDialog::TapOutside); |
116 q->setBackgroundFaded(false); |
116 q->setBackgroundFaded(false); |
117 q->setModal(false); |
117 q->setModal(false); |
118 mainLayout->setContentsMargins(0,0,0,0); |
|
119 mSliderPopupContentWidget->slider->setFlags(QGraphicsItem::ItemIsFocusable); |
118 mSliderPopupContentWidget->slider->setFlags(QGraphicsItem::ItemIsFocusable); |
120 } |
119 } |
121 |
120 |
122 /*! |
121 /*! |
123 @beta |
122 @beta |
288 d->q_ptr = this; |
287 d->q_ptr = this; |
289 d->init(); |
288 d->init(); |
290 } |
289 } |
291 |
290 |
292 /*! |
291 /*! |
|
292 @beta |
293 Constructs a sliderPopup with a \a orientation and \a parent. |
293 Constructs a sliderPopup with a \a orientation and \a parent. |
294 |
294 |
295 The slider contains only track element by default. |
295 The slider contains only track element by default. |
296 |
296 |
297 \sa setElements() |
297 \sa setElements() |
323 HbSliderPopup::~HbSliderPopup() |
323 HbSliderPopup::~HbSliderPopup() |
324 { |
324 { |
325 } |
325 } |
326 |
326 |
327 /*! |
327 /*! |
|
328 @beta |
328 Returns the slider text. |
329 Returns the slider text. |
329 |
330 |
330 returns empty text if text element does not exist |
331 returns empty text if text element does not exist |
331 |
332 |
332 \sa setText() |
333 \sa setText() |
336 Q_D(const HbSliderPopup); |
337 Q_D(const HbSliderPopup); |
337 return d->mSliderPopupContentWidget->slider->text(); |
338 return d->mSliderPopupContentWidget->slider->text(); |
338 } |
339 } |
339 |
340 |
340 /*! |
341 /*! |
|
342 @beta |
341 Sets the slider \a text for text element |
343 Sets the slider \a text for text element |
342 |
344 |
343 Slider will not take care of localization. |
345 Slider will not take care of localization. |
344 |
346 |
345 \warning Setting text to a non-existing text element has no effect. |
347 \warning Setting text to a non-existing text element has no effect. |
351 Q_D(HbSliderPopup); |
353 Q_D(HbSliderPopup); |
352 d->mSliderPopupContentWidget->slider->setText(text); |
354 d->mSliderPopupContentWidget->slider->setText(text); |
353 } |
355 } |
354 |
356 |
355 /*! |
357 /*! |
|
358 @beta |
356 Sets whether the tooltip is visible . |
359 Sets whether the tooltip is visible . |
357 |
360 |
358 \sa isToolTipVisible() |
361 \sa isToolTipVisible() |
359 */ |
362 */ |
360 void HbSliderPopup::setToolTipVisible(bool value) |
363 void HbSliderPopup::setToolTipVisible(bool value) |
362 Q_D(const HbSliderPopup); |
365 Q_D(const HbSliderPopup); |
363 d->mSliderPopupContentWidget->slider->setToolTipVisible(value); |
366 d->mSliderPopupContentWidget->slider->setToolTipVisible(value); |
364 } |
367 } |
365 |
368 |
366 /*! |
369 /*! |
|
370 @beta |
367 Returns \c true if tooltip is visible. |
371 Returns \c true if tooltip is visible. |
368 |
372 |
369 The default value is \c false. |
373 The default value is \c false. |
370 |
374 |
371 \sa setToolTipVisible() |
375 \sa setToolTipVisible() |
375 Q_D(const HbSliderPopup); |
379 Q_D(const HbSliderPopup); |
376 return d->mSliderPopupContentWidget->slider->isToolTipVisible(); |
380 return d->mSliderPopupContentWidget->slider->isToolTipVisible(); |
377 } |
381 } |
378 |
382 |
379 /*! |
383 /*! |
|
384 @beta |
380 sets the toolTip Alignment with respect to the thumb. |
385 sets the toolTip Alignment with respect to the thumb. |
381 |
386 |
382 \sa toolTipAlignment() |
387 \sa toolTipAlignment() |
383 */ |
388 */ |
384 void HbSliderPopup::setToolTipAlignment(Qt::Alignment alignment) |
389 void HbSliderPopup::setToolTipAlignment(Qt::Alignment alignment) |
386 Q_D( HbSliderPopup); |
391 Q_D( HbSliderPopup); |
387 d->mSliderPopupContentWidget->slider->setToolTipAlignment(alignment); |
392 d->mSliderPopupContentWidget->slider->setToolTipAlignment(alignment); |
388 } |
393 } |
389 |
394 |
390 /*! |
395 /*! |
|
396 @beta |
391 returns the tooltip Alignment with respect to the thumb |
397 returns the tooltip Alignment with respect to the thumb |
392 |
398 |
393 \sa setToolTipAlignment() |
399 \sa setToolTipAlignment() |
394 */ |
400 */ |
395 Qt::Alignment HbSliderPopup::toolTipAlignment() const |
401 Qt::Alignment HbSliderPopup::toolTipAlignment() const |
398 return d->mSliderPopupContentWidget->slider->toolTipAlignment(); |
404 return d->mSliderPopupContentWidget->slider->toolTipAlignment(); |
399 } |
405 } |
400 |
406 |
401 |
407 |
402 /*! |
408 /*! |
|
409 @beta |
403 Returns the major ticklabels of the slider popup. |
410 Returns the major ticklabels of the slider popup. |
404 |
411 |
405 \sa setMajorTickLabels() |
412 \sa setMajorTickLabels() |
406 */ |
413 */ |
407 QStringList HbSliderPopup::majorTickLabels() const |
414 QStringList HbSliderPopup::majorTickLabels() const |
409 Q_D(const HbSliderPopup); |
416 Q_D(const HbSliderPopup); |
410 return d->mSliderPopupContentWidget->slider->majorTickLabels(); |
417 return d->mSliderPopupContentWidget->slider->majorTickLabels(); |
411 } |
418 } |
412 |
419 |
413 /*! |
420 /*! |
|
421 @beta |
414 Sets the major ticklabels of the slider popup. |
422 Sets the major ticklabels of the slider popup. |
415 |
423 |
416 Detailed description: |
424 Detailed description: |
417 |
425 |
418 Strings from the stringlist will be taken sequentially for drawing |
426 Strings from the stringlist will be taken sequentially for drawing |
439 Q_D(HbSliderPopup); |
447 Q_D(HbSliderPopup); |
440 return d->mSliderPopupContentWidget->slider->setMajorTickLabels(majorTickLabels); |
448 return d->mSliderPopupContentWidget->slider->setMajorTickLabels(majorTickLabels); |
441 } |
449 } |
442 |
450 |
443 /*! |
451 /*! |
|
452 @beta |
444 Returns the minor ticklabels of the slider popup. |
453 Returns the minor ticklabels of the slider popup. |
445 |
454 |
446 \sa setMajorTickLabels() |
455 \sa setMajorTickLabels() |
447 */ |
456 */ |
448 QStringList HbSliderPopup::minorTickLabels() const |
457 QStringList HbSliderPopup::minorTickLabels() const |
450 Q_D(const HbSliderPopup); |
459 Q_D(const HbSliderPopup); |
451 return d->mSliderPopupContentWidget->slider->minorTickLabels(); |
460 return d->mSliderPopupContentWidget->slider->minorTickLabels(); |
452 } |
461 } |
453 |
462 |
454 /*! |
463 /*! |
|
464 @beta |
455 Sets the minor ticklabels of the slider popup. |
465 Sets the minor ticklabels of the slider popup. |
456 see setMajorTickLabels for detailed description |
466 see setMajorTickLabels for detailed description |
457 |
467 |
458 \sa minorTickLabels(),setMajorTickLabels() |
468 \sa minorTickLabels(),setMajorTickLabels() |
459 */ |
469 */ |
497 } |
507 } |
498 |
508 |
499 |
509 |
500 |
510 |
501 /*! |
511 /*! |
502 @proto |
512 @beta |
503 Returns the map , which consist of element name as key and icon name as value |
513 Returns the map , which consist of element name as key and icon name as value |
504 |
514 |
505 returns NULL map if none of the element has icon |
515 returns NULL map if none of the element has icon |
506 |
516 |
507 \sa setElementIcons() |
517 \sa setElementIcons() |
512 return(d->mSliderPopupContentWidget->slider->elementIcons()); |
522 return(d->mSliderPopupContentWidget->slider->elementIcons()); |
513 } |
523 } |
514 |
524 |
515 |
525 |
516 /*! |
526 /*! |
517 @proto |
527 @beta |
518 Sets the icons for elements |
528 Sets the icons for elements |
519 |
529 |
520 key of \a elements is element name QString) and value is icon |
530 key of \a elements is element name QString) and value is icon |
521 name to set on given element |
531 name to set on given element |
522 Use following string for specifying elements |
532 Use following string for specifying elements |
542 d->mSliderPopupContentWidget->slider->setElementIcons(elements); |
552 d->mSliderPopupContentWidget->slider->setElementIcons(elements); |
543 } |
553 } |
544 |
554 |
545 |
555 |
546 /*! |
556 /*! |
|
557 @beta |
547 Returns \c true whether the slider track is inverted. |
558 Returns \c true whether the slider track is inverted. |
548 |
559 |
549 The default value is \c false. |
560 The default value is \c false. |
550 |
561 |
551 If this property is \c false, the minimum and maximum will |
562 If this property is \c false, the minimum and maximum will |
559 Q_D(const HbSliderPopup); |
570 Q_D(const HbSliderPopup); |
560 return d->mSliderPopupContentWidget->slider->invertedAppearance(); |
571 return d->mSliderPopupContentWidget->slider->invertedAppearance(); |
561 } |
572 } |
562 |
573 |
563 /*! |
574 /*! |
|
575 @beta |
564 Sets whether the slider track is \a inverted. |
576 Sets whether the slider track is \a inverted. |
565 |
577 |
566 \sa invertedAppearance() |
578 \sa invertedAppearance() |
567 */ |
579 */ |
568 void HbSliderPopup::setInvertedAppearance(bool inverted) |
580 void HbSliderPopup::setInvertedAppearance(bool inverted) |
570 Q_D(HbSliderPopup); |
582 Q_D(HbSliderPopup); |
571 d->mSliderPopupContentWidget->slider->setInvertedAppearance(inverted); |
583 d->mSliderPopupContentWidget->slider->setInvertedAppearance(inverted); |
572 } |
584 } |
573 |
585 |
574 /*! |
586 /*! |
|
587 @beta |
575 Returns the list of slider elements as QVariant ( can be type-casted to HbSlider::SliderElement ). |
588 Returns the list of slider elements as QVariant ( can be type-casted to HbSlider::SliderElement ). |
576 |
589 |
577 The slider contains only track element by default. |
590 The slider contains only track element by default. |
578 |
591 |
579 \sa setSliderElements() |
592 \sa setSliderElements() |
583 Q_D(const HbSliderPopup); |
596 Q_D(const HbSliderPopup); |
584 return (d->mSliderPopupContentWidget->slider->sliderElements()); |
597 return (d->mSliderPopupContentWidget->slider->sliderElements()); |
585 } |
598 } |
586 |
599 |
587 /*! |
600 /*! |
|
601 @beta |
588 Sets the elements of the slider. |
602 Sets the elements of the slider. |
589 |
603 |
590 \note Duplicate elements will be ignored. |
604 \note Duplicate elements will be ignored. |
591 |
605 |
592 \note element order cant be changed |
606 \note element order cant be changed |
612 |
626 |
613 } |
627 } |
614 |
628 |
615 |
629 |
616 /*! |
630 /*! |
|
631 @beta |
617 Returns the maximum value of the slider. |
632 Returns the maximum value of the slider. |
618 |
633 |
619 The default value is \c 100. |
634 The default value is \c 100. |
620 |
635 |
621 \sa setMaximum() |
636 \sa setMaximum() |
625 Q_D(const HbSliderPopup); |
640 Q_D(const HbSliderPopup); |
626 return d->mSliderPopupContentWidget->slider->maximum(); |
641 return d->mSliderPopupContentWidget->slider->maximum(); |
627 } |
642 } |
628 |
643 |
629 /*! |
644 /*! |
|
645 @beta |
630 Sets the maximum value of the slider. |
646 Sets the maximum value of the slider. |
631 |
647 |
632 \note When setting this property, the minimum is adjusted if |
648 \note When setting this property, the minimum is adjusted if |
633 |
649 |
634 necessary to ensure that the range remains valid. Also the |
650 necessary to ensure that the range remains valid. Also the |
642 Q_D(HbSliderPopup); |
658 Q_D(HbSliderPopup); |
643 d->mSliderPopupContentWidget->slider->setMaximum(max); |
659 d->mSliderPopupContentWidget->slider->setMaximum(max); |
644 } |
660 } |
645 |
661 |
646 /*! |
662 /*! |
|
663 @beta |
647 Returns the minimum value of the slider. |
664 Returns the minimum value of the slider. |
648 |
665 |
649 The default value is \c 0. |
666 The default value is \c 0. |
650 |
667 |
651 \sa setMinimum() |
668 \sa setMinimum() |
655 Q_D(const HbSliderPopup); |
672 Q_D(const HbSliderPopup); |
656 return d->mSliderPopupContentWidget->slider->minimum(); |
673 return d->mSliderPopupContentWidget->slider->minimum(); |
657 } |
674 } |
658 |
675 |
659 /*! |
676 /*! |
|
677 @beta |
660 Sets the minimum value of the slider. |
678 Sets the minimum value of the slider. |
661 |
679 |
662 \note When setting this property, the maximum is adjusted if |
680 \note When setting this property, the maximum is adjusted if |
663 necessary to ensure that the range remains valid. Also the |
681 necessary to ensure that the range remains valid. Also the |
664 slider's current value is adjusted to be within the new range. |
682 slider's current value is adjusted to be within the new range. |
670 Q_D(HbSliderPopup); |
688 Q_D(HbSliderPopup); |
671 d->mSliderPopupContentWidget->slider->setMinimum(min); |
689 d->mSliderPopupContentWidget->slider->setMinimum(min); |
672 } |
690 } |
673 |
691 |
674 /*! |
692 /*! |
|
693 @beta |
675 This function is provided for convenience. |
694 This function is provided for convenience. |
676 |
695 |
677 Sets the slider's minimum to \a min and its maximum to \a max. |
696 Sets the slider's minimum to \a min and its maximum to \a max. |
678 |
697 |
679 If maximum is smaller than minimum, minimum becomes the only legal value. |
698 If maximum is smaller than minimum, minimum becomes the only legal value. |
685 Q_D(HbSliderPopup); |
704 Q_D(HbSliderPopup); |
686 d->mSliderPopupContentWidget->slider->setRange(min, max); |
705 d->mSliderPopupContentWidget->slider->setRange(min, max); |
687 } |
706 } |
688 |
707 |
689 /*! |
708 /*! |
|
709 @beta |
690 Returns the page step of the slider. |
710 Returns the page step of the slider. |
691 |
711 |
692 The default value is \c 10. |
712 The default value is \c 10. |
693 |
713 |
694 The larger of two natural steps that a slider provides |
714 The larger of two natural steps that a slider provides |
701 Q_D(const HbSliderPopup); |
721 Q_D(const HbSliderPopup); |
702 return d->mSliderPopupContentWidget->slider->pageStep(); |
722 return d->mSliderPopupContentWidget->slider->pageStep(); |
703 } |
723 } |
704 |
724 |
705 /*! |
725 /*! |
|
726 @beta |
706 Sets the page \a step of the slider. |
727 Sets the page \a step of the slider. |
707 |
728 |
708 \sa pageStep() |
729 \sa pageStep() |
709 */ |
730 */ |
710 void HbSliderPopup::setPageStep(int step) |
731 void HbSliderPopup::setPageStep(int step) |
712 Q_D(HbSliderPopup); |
733 Q_D(HbSliderPopup); |
713 d->mSliderPopupContentWidget->slider->setPageStep(step); |
734 d->mSliderPopupContentWidget->slider->setPageStep(step); |
714 } |
735 } |
715 |
736 |
716 /*! |
737 /*! |
|
738 @beta |
717 Returns the single step of the slider. |
739 Returns the single step of the slider. |
718 |
740 |
719 The default value is \c 1. |
741 The default value is \c 1. |
720 |
742 |
721 The smaller of two natural steps that an |
743 The smaller of two natural steps that an |
729 Q_D(const HbSliderPopup); |
751 Q_D(const HbSliderPopup); |
730 return d->mSliderPopupContentWidget->slider->singleStep(); |
752 return d->mSliderPopupContentWidget->slider->singleStep(); |
731 } |
753 } |
732 |
754 |
733 /*! |
755 /*! |
|
756 @beta |
734 Sets the single \a step of the slider. |
757 Sets the single \a step of the slider. |
735 |
758 |
736 \sa singleStep() |
759 \sa singleStep() |
737 */ |
760 */ |
738 void HbSliderPopup::setSingleStep(int step) |
761 void HbSliderPopup::setSingleStep(int step) |
740 Q_D(HbSliderPopup); |
763 Q_D(HbSliderPopup); |
741 d->mSliderPopupContentWidget->slider->setSingleStep(step); |
764 d->mSliderPopupContentWidget->slider->setSingleStep(step); |
742 } |
765 } |
743 |
766 |
744 /*! |
767 /*! |
|
768 @beta |
745 Returns the current slider position. |
769 Returns the current slider position. |
746 |
770 |
747 If tracking is enabled (the default), this is identical to the value. |
771 If tracking is enabled (the default), this is identical to the value. |
748 |
772 |
749 \sa setSliderPosition() |
773 \sa setSliderPosition() |
753 Q_D(const HbSliderPopup); |
777 Q_D(const HbSliderPopup); |
754 return d->mSliderPopupContentWidget->slider->sliderPosition(); |
778 return d->mSliderPopupContentWidget->slider->sliderPosition(); |
755 } |
779 } |
756 |
780 |
757 /*! |
781 /*! |
|
782 @beta |
758 Sets the current slider position. |
783 Sets the current slider position. |
759 |
784 |
760 \sa sliderPosition() |
785 \sa sliderPosition() |
761 */ |
786 */ |
762 void HbSliderPopup::setSliderPosition(int pos) |
787 void HbSliderPopup::setSliderPosition(int pos) |
764 Q_D(HbSliderPopup); |
789 Q_D(HbSliderPopup); |
765 d->mSliderPopupContentWidget->slider->setSliderPosition(pos); |
790 d->mSliderPopupContentWidget->slider->setSliderPosition(pos); |
766 } |
791 } |
767 |
792 |
768 /*! |
793 /*! |
|
794 @beta |
769 Returns \c true whether slider tracking is enabled. |
795 Returns \c true whether slider tracking is enabled. |
770 |
796 |
771 The default value is \c true. |
797 The default value is \c true. |
772 |
798 |
773 If tracking is enabled, the slider emits the |
799 If tracking is enabled, the slider emits the |
782 Q_D(const HbSliderPopup); |
808 Q_D(const HbSliderPopup); |
783 return d->mSliderPopupContentWidget->slider->hasTracking(); |
809 return d->mSliderPopupContentWidget->slider->hasTracking(); |
784 } |
810 } |
785 |
811 |
786 /*! |
812 /*! |
|
813 @beta |
787 Sets whether the slider tracking is enabled. |
814 Sets whether the slider tracking is enabled. |
788 |
815 |
789 \sa hasTracking() |
816 \sa hasTracking() |
790 */ |
817 */ |
791 void HbSliderPopup::setTracking(bool enable) |
818 void HbSliderPopup::setTracking(bool enable) |
793 Q_D(HbSliderPopup); |
820 Q_D(HbSliderPopup); |
794 d->mSliderPopupContentWidget->slider->setTracking(enable); |
821 d->mSliderPopupContentWidget->slider->setTracking(enable); |
795 } |
822 } |
796 |
823 |
797 /*! |
824 /*! |
|
825 @beta |
798 Returns the current value of the slider. |
826 Returns the current value of the slider. |
799 |
827 |
800 The default value is \c 0. |
828 The default value is \c 0. |
801 */ |
829 */ |
802 int HbSliderPopup::value() const |
830 int HbSliderPopup::value() const |
804 Q_D(const HbSliderPopup); |
832 Q_D(const HbSliderPopup); |
805 return d->mSliderPopupContentWidget->slider->value(); |
833 return d->mSliderPopupContentWidget->slider->value(); |
806 } |
834 } |
807 |
835 |
808 /*! |
836 /*! |
|
837 @beta |
809 Sets the current value of the slider. |
838 Sets the current value of the slider. |
810 |
839 |
811 The slider forces the value to be within the legal range: \b |
840 The slider forces the value to be within the legal range: \b |
812 minimum <= \c value <= \b maximum. |
841 minimum <= \c value <= \b maximum. |
813 |
842 |
820 Q_D(HbSliderPopup); |
849 Q_D(HbSliderPopup); |
821 d->mSliderPopupContentWidget->slider->setValue(value); |
850 d->mSliderPopupContentWidget->slider->setValue(value); |
822 } |
851 } |
823 |
852 |
824 /*! |
853 /*! |
|
854 @beta |
825 Returns the tickmark position of the slider. |
855 Returns the tickmark position of the slider. |
826 |
856 |
827 The default value is \c HbSlider::NoTicks. |
857 The default value is \c HbSlider::NoTicks. |
828 |
858 |
829 \sa setTickPosition() |
859 \sa setTickPosition() |
833 Q_D(const HbSliderPopup); |
863 Q_D(const HbSliderPopup); |
834 return d->mSliderPopupContentWidget->slider->tickPosition(); |
864 return d->mSliderPopupContentWidget->slider->tickPosition(); |
835 } |
865 } |
836 |
866 |
837 /*! |
867 /*! |
|
868 @beta |
838 Sets the tickmark position of the slider. |
869 Sets the tickmark position of the slider. |
839 |
870 |
840 \sa tickPosition() |
871 \sa tickPosition() |
841 */ |
872 */ |
842 void HbSliderPopup::setTickPosition(Hb::SliderTickPositions position) |
873 void HbSliderPopup::setTickPosition(Hb::SliderTickPositions position) |
844 Q_D(HbSliderPopup); |
875 Q_D(HbSliderPopup); |
845 d->mSliderPopupContentWidget->slider->setTickPosition(position); |
876 d->mSliderPopupContentWidget->slider->setTickPosition(position); |
846 } |
877 } |
847 |
878 |
848 /*! |
879 /*! |
|
880 @beta |
849 Returns the SnappingMode of the slider. |
881 Returns the SnappingMode of the slider. |
850 |
882 |
851 The default value is \c HbSlider::MinorTickSnapping. |
883 The default value is \c HbSlider::MinorTickSnapping. |
852 |
884 |
853 \sa setSnappingMode() |
885 \sa setSnappingMode() |
858 HbSlider::SnappingMode mode = d->mSliderPopupContentWidget->slider->snappingMode(); |
890 HbSlider::SnappingMode mode = d->mSliderPopupContentWidget->slider->snappingMode(); |
859 return mode; |
891 return mode; |
860 } |
892 } |
861 |
893 |
862 /*! |
894 /*! |
|
895 @beta |
863 Sets the snappingMode of the slider. |
896 Sets the snappingMode of the slider. |
864 |
897 |
865 \sa snappingMode() |
898 \sa snappingMode() |
866 */ |
899 */ |
867 void HbSliderPopup::setSnappingMode(HbSlider::SnappingMode mode) |
900 void HbSliderPopup::setSnappingMode(HbSlider::SnappingMode mode) |
869 Q_D(HbSliderPopup); |
902 Q_D(HbSliderPopup); |
870 d->mSliderPopupContentWidget->slider->setSnappingMode(mode); |
903 d->mSliderPopupContentWidget->slider->setSnappingMode(mode); |
871 } |
904 } |
872 |
905 |
873 /*! |
906 /*! |
|
907 @beta |
874 Sets the \a orientation of the sliderpopup. |
908 Sets the \a orientation of the sliderpopup. |
875 |
909 |
876 \sa orientation() |
910 \sa orientation() |
877 */ |
911 */ |
878 void HbSliderPopup::setOrientation(Qt::Orientation orientation) |
912 void HbSliderPopup::setOrientation(Qt::Orientation orientation) |
880 Q_D(HbSliderPopup); |
914 Q_D(HbSliderPopup); |
881 d->mSliderPopupContentWidget->slider->setOrientation(orientation); |
915 d->mSliderPopupContentWidget->slider->setOrientation(orientation); |
882 } |
916 } |
883 |
917 |
884 /*! |
918 /*! |
|
919 @beta |
885 Returns the orientation of the sliderpopup. |
920 Returns the orientation of the sliderpopup. |
886 |
921 |
887 The default value is \c Qt::Vertical. |
922 The default value is \c Qt::Vertical. |
888 |
923 |
889 \sa setOrientation() |
924 \sa setOrientation() |
893 Q_D(const HbSliderPopup); |
928 Q_D(const HbSliderPopup); |
894 return d->mSliderPopupContentWidget->slider->orientation(); |
929 return d->mSliderPopupContentWidget->slider->orientation(); |
895 } |
930 } |
896 |
931 |
897 /*! |
932 /*! |
|
933 @beta |
898 Returns the interval between major tickmarks. |
934 Returns the interval between major tickmarks. |
899 |
935 |
900 The default value is \c 0. |
936 The default value is \c 0. |
901 |
937 |
902 \sa setMajorTickInterval() |
938 \sa setMajorTickInterval() |
906 Q_D(const HbSliderPopup); |
942 Q_D(const HbSliderPopup); |
907 return d->mSliderPopupContentWidget->slider->majorTickInterval(); |
943 return d->mSliderPopupContentWidget->slider->majorTickInterval(); |
908 } |
944 } |
909 |
945 |
910 /*! |
946 /*! |
|
947 @beta |
911 Sets the interval between major tickmarks. |
948 Sets the interval between major tickmarks. |
912 |
949 |
913 Special values: |
950 Special values: |
914 \li a negative value means no major ticks will be drawn |
951 \li a negative value means no major ticks will be drawn |
915 \li value \c 0 means that the interval is automatically calculated |
952 \li value \c 0 means that the interval is automatically calculated |
921 Q_D(HbSliderPopup); |
958 Q_D(HbSliderPopup); |
922 d->mSliderPopupContentWidget->slider->setMajorTickInterval(interval); |
959 d->mSliderPopupContentWidget->slider->setMajorTickInterval(interval); |
923 } |
960 } |
924 |
961 |
925 /*! |
962 /*! |
|
963 @beta |
926 Returns the interval between minor tickmarks. |
964 Returns the interval between minor tickmarks. |
927 |
965 |
928 The default value is \c 0. |
966 The default value is \c 0. |
929 |
967 |
930 \sa setMinorTickInterval() |
968 \sa setMinorTickInterval() |
934 Q_D(const HbSliderPopup); |
972 Q_D(const HbSliderPopup); |
935 return d->mSliderPopupContentWidget->slider->minorTickInterval(); |
973 return d->mSliderPopupContentWidget->slider->minorTickInterval(); |
936 } |
974 } |
937 |
975 |
938 /*! |
976 /*! |
|
977 @beta |
939 Sets the interval between minor tickmarks. |
978 Sets the interval between minor tickmarks. |
940 |
979 |
941 Special values: |
980 Special values: |
942 \li a negative value means no minor ticks will be drawn |
981 \li a negative value means no minor ticks will be drawn |
943 \li value \c 0 means that the interval is automatically calculated |
982 \li value \c 0 means that the interval is automatically calculated |
959 d->mSliderPopupContentWidget->slider->updatePrimitives(); |
998 d->mSliderPopupContentWidget->slider->updatePrimitives(); |
960 HbDialog::updatePrimitives(); |
999 HbDialog::updatePrimitives(); |
961 } |
1000 } |
962 |
1001 |
963 /*! |
1002 /*! |
964 @proto |
1003 @beta |
965 Sets whether to display progress track or not |
1004 Sets whether to display progress track or not |
966 |
1005 |
967 \default value is true |
1006 \default value is true |
968 |
1007 |
969 \sa isTrackFilled( ) |
1008 \sa isTrackFilled( ) |
975 return d->mSliderPopupContentWidget->slider->setTrackFilled( trackVisible ); |
1014 return d->mSliderPopupContentWidget->slider->setTrackFilled( trackVisible ); |
976 |
1015 |
977 } |
1016 } |
978 |
1017 |
979 /*! |
1018 /*! |
980 @proto |
1019 @beta |
981 returns whether progress track is visible or not |
1020 returns whether progress track is visible or not |
982 |
1021 |
983 \sa setTrackFilled( ) |
1022 \sa setTrackFilled( ) |
984 |
1023 |
985 */ |
1024 */ |