Changeset View
Changeset View
Standalone View
Standalone View
src/editors/spinbox.h
1 | /* This file is part of the KDE project | 1 | /* This file is part of the KDE project | ||
---|---|---|---|---|---|
2 | Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr> | 2 | Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr> | ||
3 | Copyright (C) 2004 Alexander Dymo <cloudtemple@mskat.net> | 3 | Copyright (C) 2004 Alexander Dymo <cloudtemple@mskat.net> | ||
4 | Copyright (C) 2008-2015 Jarosław Staniek <staniek@kde.org> | 4 | Copyright (C) 2008-2017 Jarosław Staniek <staniek@kde.org> | ||
5 | 5 | | |||
6 | This library is free software; you can redistribute it and/or | 6 | This library is free software; you can redistribute it and/or | ||
7 | modify it under the terms of the GNU Library General Public | 7 | modify it under the terms of the GNU Library General Public | ||
8 | License as published by the Free Software Foundation; either | 8 | License as published by the Free Software Foundation; either | ||
9 | version 2 of the License, or (at your option) any later version. | 9 | version 2 of the License, or (at your option) any later version. | ||
10 | 10 | | |||
11 | This library is distributed in the hope that it will be useful, | 11 | This library is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 68 | public: | |||
69 | KPropertyDoubleSpinBox(const KProperty* prop, QWidget *parent, int itemHeight); | 69 | KPropertyDoubleSpinBox(const KProperty* prop, QWidget *parent, int itemHeight); | ||
70 | virtual ~KPropertyDoubleSpinBox(); | 70 | virtual ~KPropertyDoubleSpinBox(); | ||
71 | 71 | | |||
72 | // virtual bool eventFilter(QObject *o, QEvent *e); | 72 | // virtual bool eventFilter(QObject *o, QEvent *e); | ||
73 | /* QLineEdit * lineEdit() const { | 73 | /* QLineEdit * lineEdit() const { | ||
74 | return QDoubleSpinBox::lineEdit(); | 74 | return QDoubleSpinBox::lineEdit(); | ||
75 | }*/ | 75 | }*/ | ||
76 | 76 | | |||
77 | double value() const; | | |||
78 | | ||||
79 | Q_SIGNALS: | 77 | Q_SIGNALS: | ||
80 | void commitData(QWidget* editor); | 78 | void commitData(QWidget* editor); | ||
81 | 79 | | |||
82 | public Q_SLOTS: | | |||
83 | void setValue(double value); | | |||
84 | | ||||
85 | protected Q_SLOTS: | 80 | protected Q_SLOTS: | ||
86 | void slotValueChanged(double value); | 81 | void slotValueChanged(double value); | ||
87 | 82 | | |||
88 | protected: | 83 | protected: | ||
89 | //! Used to fix height of the internal spin box | 84 | //! Used to fix height of the internal spin box | ||
90 | virtual void resizeEvent( QResizeEvent * event ); | 85 | virtual void resizeEvent( QResizeEvent * event ); | ||
91 | 86 | | |||
92 | class Private; | 87 | class Private; | ||
Show All 33 Lines |