~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to kscd/gui/playbutton.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "playbutton.h"
34
34
#include <KLocale>
35
35
 
36
 
PlayButton::PlayButton(QWidget * parent):KscdWidget(I18N_NOOP("play"),parent)
 
36
PlayButton::PlayButton(QWidget * parent):KscdWidget(I18N_NOOP(QLatin1String( "play" )),parent)
37
37
{
38
38
}
39
39
 
46
46
        if(m_bounds->contains(event->pos()+(m_bounds->boundingRect()).topLeft()))
47
47
        {
48
48
                event->accept();
49
 
                m_state = "pressed";
50
 
                m_id = m_name + '_' + m_state;
 
49
                m_state = QLatin1String( "pressed" );
 
50
                m_id = m_name + QLatin1Char( '_' ) + m_state;
51
51
                emit(needRepaint());
52
52
        }
53
53
        else
61
61
        if(m_bounds->contains(event->pos()+(m_bounds->boundingRect()).topLeft ()))
62
62
        {
63
63
                event->accept();
64
 
                m_state = "over";
 
64
                m_state = QLatin1String( "over" );
65
65
                emit(buttonClicked(m_name));
66
 
                m_id = m_name + '_' + m_state;
 
66
                m_id = m_name + QLatin1Char( '_' ) + m_state;
67
67
                emit(needRepaint());
68
68
        }
69
69
}