lib/widgets/propeditor/pcombobox.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#ifndef PCOMBOBOX_H
00020
#define PCOMBOBOX_H
00021
00022
#include <qmap.h>
00023
00024
#include <qcombobox.h>
00025
00026
#include "propertywidget.h"
00027
00028
class PropertyEditor;
00029
00030 class PComboBox:
public QComboBox,
PropertyWidget{
00031 Q_OBJECT
00032
public:
00034
PComboBox (
const PropertyEditor *editor,
const QString name,
const QVariant value,
QMap<QString, QString> *v_corresp,
QWidget * parent = 0,
const char * name = 0 );
00036
PComboBox (
const PropertyEditor *editor,
const QString name,
const QVariant value,
QMap<QString, QString> *v_corresp,
bool rw,
QWidget * parent = 0,
const char * name = 0 );
00037
00038
virtual QVariant value()
const;
00039
virtual void setValue(
const QVariant value,
bool emitChange=
true);
00040
00041
private:
00043 QMap<QString, QString> *
corresp;
00045 QMap<QString, QString> r_corresp;
00046
00047
void init(
const PropertyEditor *editor,
const QString &pname,
const QVariant &value);
00048
00049
protected:
00050
virtual void fillBox();
00051 signals:
00052
void propertyChanged(
QString name,
QVariant newValue);
00053
private slots:
00054
void updateProperty(
int val);
00055 };
00056
00057
#endif
This file is part of the documentation for KDevelop Version 3.0.4.