~ubuntu-branches/ubuntu/maverick/kdegraphics/maverick-proposed

« back to all changes in this revision

Viewing changes to libs/libksane/libksane/widgets/labeled_slider.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-02 14:03:43 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20091202140343-2732gbkj69g89arq
Tags: 4:4.3.80-0ubuntu1
* New upstream beta release:
  - Add build-depend on shared-desktop-ontologies for nepomuk integration
  - Bump .so versions for libkexiv, libkdcraw and libkipi
  - Update various .install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <QSlider>
35
35
#include <QGridLayout>
36
36
 
 
37
/** Remove #if tags when KDE 4.2 becomes unpopular**/
 
38
#include <kdeversion.h>
 
39
 
37
40
/**
38
41
  *@author Kåre Särs
39
42
  */
40
43
 
41
 
class QSpinBox;
 
44
class KIntSpinBox;
 
45
class KLocalizedString;
42
46
class QLabel;
43
47
 
44
48
namespace KSaneIface
84
88
    void setRange(int min, int max);
85
89
    void setStep(int);
86
90
    /** Set the unit */
87
 
    void setSuffix(const QString &text);
 
91
    void setSuffix(const KLocalizedString &text);
 
92
    void setSuffix1(const QString &text); /** Remove this compatibility hack when KDE 4.2 becomes unpopular **/
88
93
 
89
94
private Q_SLOTS:
90
95
 
104
109
 
105
110
    QLabel      *m_label;
106
111
    QSlider     *m_slider;
107
 
    QSpinBox    *m_spinb;
 
112
    KIntSpinBox *m_spinb;
108
113
    int          m_step;
109
114
    QGridLayout *m_layout;
110
115
};