~neon/juk/master

« back to all changes in this revision

Viewing changes to splashscreen.cpp

  • Committer: Laurent Montel
  • Date: 2006-10-05 08:04:57 UTC
  • Revision ID: git-v1:6d286b4be0b244323cd0953569d56deccc4afb05
Port to uic4

svn path=/trunk/KDE/kdemultimedia/juk/; revision=592631

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 *                                                                         *
14
14
 ***************************************************************************/
15
15
 
16
 
#include "splashscreen.h"
17
 
 
18
16
#include <kapplication.h>
19
17
#include <kiconloader.h>
20
18
#include <klocale.h>
21
19
#include <kstandarddirs.h>
22
20
#include <kdebug.h>
23
21
 
 
22
#include <qpainter.h>
 
23
//Added by qt3to4:
24
24
#include <QPixmap>
25
25
#include <QLabel>
26
 
#include <QPalette>
 
26
 
 
27
#include "splashscreen.h"
27
28
 
28
29
SplashScreen *SplashScreen::splash = 0;
29
30
bool SplashScreen::done = false;
72
73
// protected members
73
74
////////////////////////////////////////////////////////////////////////////////
74
75
 
75
 
SplashScreen::SplashScreen() : QLabel(0, Qt::WStyle_Splash)
 
76
SplashScreen::SplashScreen() : QLabel(0 , "splashScreen", Qt::WStyle_Splash)
76
77
{
77
 
    setObjectName( QLatin1String("splashScreen" ));
78
 
 
79
78
    QPixmap background = UserIcon("splash");
80
79
    resize(background.size());
81
 
    QPalette palette;
82
 
    palette.setBrush(backgroundRole(), QBrush(background));
 
80
    setPaletteBackgroundPixmap(background);
83
81
 
84
82
    setMargin(7);
85
83
    setAlignment(Qt::AlignLeft | Qt::AlignBottom);
86
84
 
87
 
    palette.setColor(foregroundRole(), QColor(107, 158, 194));
88
 
    setPalette(palette);
 
85
    setPaletteForegroundColor(QColor(107, 158, 194));
89
86
 
90
87
    QFont f = font();
91
88
    f.setPixelSize(10);