aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LDesktopBackground.h
blob: a9ce64fa47952e23231863179641778ace5c68bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//===========================================
//  Lumina-DE source code
//  Copyright (c) 2016, Henry Hu
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_DESKTOP_LDESKTOPBACKGROUND_H_
#define _LUMINA_DESKTOP_LDESKTOPBACKGROUND_H_

#include <QString>
#include <QWidget>
#include <QPixmap>

class LDesktopBackground: public QWidget {
    Q_OBJECT
public:
    LDesktopBackground();
    virtual ~LDesktopBackground();

    virtual void paintEvent(QPaintEvent*);
    void setBackground(const QString&, const QString&);

private:
    QPixmap *bgPixmap;
};

#endif // _LUMINA_DESKTOP_LDESKTOPBACKGROUND_H_
bgstack15