~ubuntu-branches/ubuntu/precise/konsole/precise-proposed

« back to all changes in this revision

Viewing changes to src/WarningBox.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-16 13:14:43 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111216131443-rhdplbmmuxntat3k
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "WarningBox.h"
22
22
 
23
23
// Qt
24
 
#include <QLabel>
25
 
#include <QHBoxLayout>
 
24
#include <QtGui/QLabel>
 
25
#include <QtGui/QHBoxLayout>
26
26
 
27
27
// KDE
28
28
#include <KIcon>
36
36
{
37
37
    KColorScheme colorScheme(QPalette::Active);
38
38
    QColor warningColor = colorScheme.background(KColorScheme::NeutralBackground).color();
39
 
    QColor warningColorLight = KColorScheme::shade(warningColor,KColorScheme::LightShade,0.1); 
 
39
    QColor warningColorLight = KColorScheme::shade(warningColor,KColorScheme::LightShade,0.1);
40
40
    QColor borderColor = KColorScheme::shade(warningColor,KColorScheme::DarkShade,0.15);
41
41
    QString gradient =     "qlineargradient(x1:0, y1:0, x2:0, y2:1,"
42
42
                        "stop: 0 %1, stop: 0.6 %1 ,stop: 1.0 %2)";