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

« back to all changes in this revision

Viewing changes to dragonplayer/src/app/adjustSizeButton.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:
7
7
 * published by the Free Software Foundation; either version 2 of
8
8
 * the License or (at your option) version 3 or any later version
9
9
 * accepted by the membership of KDE e.V. (or its successor approved
10
 
 * by the membership of KDE e.V.), which shall act as a proxy 
 
10
 * by the membership of KDE e.V.), which shall act as a proxy
11
11
 * defined in Section 14 of version 3 of the license.
12
12
 *
13
13
 * This program is distributed in the hope that it will be useful,
53
53
        setPalette( QApplication::palette() ); //videoWindow has different palette
54
54
        setFrameStyle( QFrame::Plain | QFrame::Box );
55
55
 
56
 
        m_preferred = new KPushButton( KGuiItem( i18n("Preferred Scale"), "viewmag" ), this );
 
56
        m_preferred = new KPushButton( KGuiItem( i18n("Preferred Scale"), QLatin1String( "viewmag" ) ), this );
57
57
        connect( m_preferred, SIGNAL(clicked()), Dragon::mainWindow(), SLOT(adjustSize()) );
58
58
        connect( m_preferred, SIGNAL(clicked()), SLOT(deleteLater()) );
59
59
 
60
 
        m_oneToOne = new KPushButton( KGuiItem( i18n("Scale 100%"), "viewmag1" ), this );
 
60
        m_oneToOne = new KPushButton( KGuiItem( i18n("Scale 100%"), QLatin1String( "viewmag1" ) ), this );
61
61
        connect( m_oneToOne, SIGNAL(clicked()), (QObject*)videoWindow(), SLOT(resetZoom()) );
62
62
        connect( m_oneToOne, SIGNAL(clicked()), SLOT(deleteLater()) );
63
63
 
71
71
        vbox->addWidget( m_oneToOne );
72
72
        hbox->addWidget( m_thingy = new QFrame( this ) );
73
73
 
74
 
        m_thingy->setFixedWidth( fontMetrics().width( "X" ) );
 
74
        m_thingy->setFixedWidth( fontMetrics().width( QLatin1String( "X" ) ) );
75
75
        m_thingy->setFrameStyle( QFrame::Plain | QFrame::Box );
76
76
        {
77
77
            QPalette palette;