Krita Source Code Documentation
Loading...
Searching...
No Matches
KoAspectButton.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Thomas Zander <zander@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef KOASPECTBUTTON_H
7#define KOASPECTBUTTON_H
8
9#include <QToolButton>
10
11#include "kritawidgets_export.h"
12
17class KRITAWIDGETS_EXPORT KoAspectButton : public QToolButton {
18 Q_OBJECT
19public:
21 explicit KoAspectButton(QWidget *parent);
22 ~KoAspectButton() override;
23
25 bool keepAspectRatio() const;
26
27public Q_SLOTS:
33 void setKeepAspectRatio(bool keep);
34
35 // connect the button release
36 void buttonReleased();
37
38Q_SIGNALS:
43 void keepAspectRatioChanged(bool keep);
44
45private:
46 class Private;
47 Private * const d;
48};
49
50#endif
void keepAspectRatioChanged(bool keep)
Private *const d