Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_zoom_button.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Jouni Pentikäinen <joupent@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#include "kis_zoom_button.h"
8
9#include <cmath>
10#include <QMouseEvent>
11
12
19
22
24{
25 const int unitRadius = 200;
26
27 Q_EMIT zoom(qreal(value) / unitRadius);
28}
float value(const T *src, size_t ch)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void valueChanged(int delta)
void zoom(qreal delta)
KisZoomButton(QWidget *parent)
void slotValueChanged(int value)
~KisZoomButton() override