src/hbwidgets/widgets/hbpushbutton.cpp
changeset 3 11d3954df52a
parent 2 06ff229162e9
child 5 627c4a0fd0e7
equal deleted inserted replaced
2:06ff229162e9 3:11d3954df52a
   215         //only in case of keyboard focus events it will be Visible.
   215         //only in case of keyboard focus events it will be Visible.
   216         focusItem->setVisible( false );
   216         focusItem->setVisible( false );
   217     }
   217     }
   218 }
   218 }
   219 
   219 
   220 
       
   221 
       
   222 void HbPushButtonPrivate::_q_handleLongPress(QPointF point)
       
   223 {
       
   224     Q_Q(HbPushButton);
       
   225     if(!longPress){
       
   226         longPress = true;
       
   227         emit q->longPress( point );
       
   228     }
       
   229 }
       
   230 
       
   231 void HbPushButtonPrivate::_q_handleLongKeyPress( )
   220 void HbPushButtonPrivate::_q_handleLongKeyPress( )
   232 {
   221 {
   233     Q_Q( HbPushButton );
   222     Q_Q( HbPushButton );
   234     if(!longPress) {
   223     if(!longPress) {
   235         longPress = true;
   224         longPress = true;
   692     HbAbstractButton(dd, parent)
   681     HbAbstractButton(dd, parent)
   693 {
   682 {
   694 }
   683 }
   695 
   684 
   696 /*!
   685 /*!
       
   686     \reimp
   697     Initializes \a option with the values from this HbPushButton. 
   687     Initializes \a option with the values from this HbPushButton. 
   698     This method is useful for subclasses when they need a HbStyleOptionPushButton,
   688     This method is useful for subclasses when they need a HbStyleOptionPushButton,
   699     but don't want to fill in all the information themselves.
   689     but don't want to fill in all the information themselves.
   700  */
   690  */
   701 void HbPushButton::initStyleOption( HbStyleOptionPushButton *option ) const
   691 void HbPushButton::initStyleOption( HbStyleOptionPushButton *option ) const