Krita Source Code Documentation
Loading...
Searching...
No Matches
KoToolSelection.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006 Thomas Zander <zander@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef KOTOOLSELECTION_H
7#define KOTOOLSELECTION_H
8
9#include "kritaflake_export.h"
10#include <QObject>
11
18class KRITAFLAKE_EXPORT KoToolSelection : public QObject
19{
20 Q_OBJECT
21public:
26 explicit KoToolSelection(QObject *parent = 0);
27 ~KoToolSelection() override;
28
30 virtual bool hasSelection() {
31 return false;
32 }
33};
34
35#endif
virtual bool hasSelection()
return true if the tool currently has something selected that can be copied or deleted.