Changeset View
Changeset View
Standalone View
Standalone View
libbreezecommon/breezestyleoxygen.h
- This file was added.
| Property | Old Value | New Value |
|---|---|---|
| File Mode | null | 100755 |
| 1 | #ifndef BREEZE_STYLEOXYGEN_H | ||||
|---|---|---|---|---|---|
| 2 | #define BREEZE_STYLEOXYGEN_H | ||||
| 3 | | ||||
| 4 | /* | ||||
| 5 | * Copyright 2017 Paul McAuley <kde@paulmcauley.com> | ||||
| 6 | * | ||||
| 7 | * This program is free software; you can redistribute it and/or | ||||
| 8 | * modify it under the terms of the GNU General Public License as | ||||
| 9 | * published by the Free Software Foundation; either version 2 of | ||||
| 10 | * the License or (at your option) version 3 or any later version | ||||
| 11 | * accepted by the membership of KDE e.V. (or its successor approved | ||||
| 12 | * by the membership of KDE e.V.), which shall act as a proxy | ||||
| 13 | * defined in Section 14 of version 3 of the license. | ||||
| 14 | * | ||||
| 15 | * This program is distributed in the hope that it will be useful, | ||||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
| 18 | * GNU General Public License for more details. | ||||
| 19 | * | ||||
| 20 | * You should have received a copy of the GNU General Public License | ||||
| 21 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
| 22 | */ | ||||
| 23 | | ||||
| 24 | #include "breezerenderdecorationbuttonicon.h" | ||||
| 25 | | ||||
| 26 | #include <QPainter> | ||||
| 27 | | ||||
| 28 | namespace Breeze | ||||
| 29 | { | ||||
| 30 | | ||||
| 31 | class RenderStyleOxygen18By18 : public RenderDecorationButtonIcon18By18 | ||||
| 32 | { | ||||
| 33 | public: | ||||
| 34 | /** | ||||
| 35 | * @brief Constructor - calls constructor of base class | ||||
| 36 | * | ||||
| 37 | * @param painter A QPainter object already initialised with an 18x18 reference window. | ||||
| 38 | * @param pen QPen with width and color already initialised. | ||||
| 39 | * @param notInTitlebar Indicates that button is not to be drawn in the title bar, but somewhere else in the UI -- ususally means will be smaller | ||||
| 40 | */ | ||||
| 41 | RenderStyleOxygen18By18(QPainter* painter, const QPen& pen, const bool notInTitlebar) : RenderDecorationButtonIcon18By18(painter, pen, notInTitlebar){}; | ||||
| 42 | }; | ||||
| 43 | | ||||
| 44 | } | ||||
| 45 | | ||||
| 46 | #endif | ||||