• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • krita API Reference
  • KDE Home
  • Contact Us
 

KritaWidgets

  • sources
  • kfour-appscomplete
  • krita
  • libs
  • widgets
KoUnitDoubleSpinBox.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  SPDX-FileCopyrightText: 2002 Rob Buis ([email protected])
3  SPDX-FileCopyrightText: 2004 Nicolas GOUTTE <[email protected]>
4  SPDX-FileCopyrightText: 2007 Thomas Zander <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KOUNITDOUBLESPINBOX_H
10 #define KOUNITDOUBLESPINBOX_H
11 
12 #include "kritawidgets_export.h"
13 
14 #include <QDoubleSpinBox>
15 
16 class KoUnit;
17 
32 class KRITAWIDGETS_EXPORT KoUnitDoubleSpinBox : public QDoubleSpinBox
33 {
34  Q_OBJECT
35 public:
43  explicit KoUnitDoubleSpinBox( QWidget *parent = 0);
44  ~KoUnitDoubleSpinBox() override;
45 
51  virtual void changeValue( double newValue );
55  virtual void setUnit( const KoUnit &);
56 
58  double value( ) const;
59 
61  void setMinimum(double min);
62 
64  void setMaximum(double max);
65 
67  void setLineStep(double step);
68 
70  void setLineStepPt(double step);
71 
73  void setMinMaxStep( double min, double max, double step );
74 
76  QValidator::State validate(QString &input, int &pos) const override;
77 
83  QString textFromValue( double value ) const override;
89  double valueFromText( const QString& str ) const override;
90 
91 
92 Q_SIGNALS:
94  void valueChangedPt( qreal );
95 
96 private:
97  class Private;
98  Private * const d;
99 
100 private Q_SLOTS:
101  // exists to do emits for valueChangedPt
102  void privateValueChanged();
103 };
104 
105 #endif
106 
QWidget
QDoubleSpinBox
QDoubleSpinBox::value
double value() const
QDoubleSpinBox::validate
virtual QValidator::State validate(QString &text, int &pos) const
QDoubleSpinBox::valueFromText
virtual double valueFromText(const QString &text) const
QString
QDoubleSpinBox::setMinimum
void setMinimum(double min)
Private
QDoubleSpinBox::textFromValue
virtual QString textFromValue(double value) const
QDoubleSpinBox::setMaximum
void setMaximum(double max)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:44:00 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KritaWidgets

Skip menu "KritaWidgets"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

krita API Reference

Skip menu "krita API Reference"
  • libs
  •   KritaBasicFlakes
  •   brush
  •   KritaUndo2
  •   KritaFlake
  •   image
  •   KritaPlugin
  •   Krita
  •   KritaPigment
  •   KritaResources
  •   KritaStore
  •   ui
  •   KritaWidgets
  •   KritaWidgetUtils
  • plugins
  •   Assitants
  •   Extensions
  •   Filters
  •   Generators
  •   Formats
  •           src
  •   PaintOps
  •     libpaintop

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal