Changeset View
Changeset View
Standalone View
Standalone View
src/hiderectitem.cpp
- This file was added.
1 | /* ============================================================ | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * This file is part of the KDE project | ||||
4 | * | ||||
5 | * Date : 2008-11-15 | ||||
6 | * Description :Selection QGraphicsItem for the image viewer. | ||||
7 | * | ||||
8 | * Copyright (C) 2008 by Kare Sars <kare dot sars at iki dot fi> | ||||
9 | * | ||||
10 | * This library is free software; you can redistribute it and/or | ||||
11 | * modify it under the terms of the GNU Lesser General Public | ||||
12 | * License as published by the Free Software Foundation; either | ||||
13 | * version 2.1 of the License, or (at your option) version 3, or any | ||||
14 | * later version accepted by the membership of KDE e.V. (or its | ||||
15 | * successor approved by the membership of KDE e.V.), which shall | ||||
16 | * act as a proxy defined in Section 6 of version 3 of the license. | ||||
17 | * | ||||
18 | * This library is distributed in the hope that it will be useful, | ||||
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
21 | * Lesser General Public License for more details. | ||||
22 | * | ||||
23 | * You should have received a copy of the GNU Lesser General Public | ||||
24 | * License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
25 | * | ||||
26 | * ============================================================ */ | ||||
27 | | ||||
28 | #include "hiderectitem.h" | ||||
29 | | ||||
30 | #include <QPen> | ||||
31 | | ||||
32 | namespace KSaneIface | ||||
33 | { | ||||
34 | | ||||
35 | HideRectItem::HideRectItem() | ||||
36 | { | ||||
37 | setOpacity(0.4); | ||||
38 | setPen(Qt::NoPen); | ||||
39 | setBrush(Qt::black); | ||||
40 | } | ||||
41 | | ||||
42 | } // NameSpace KSaneIface |