propertyvalue.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2008-2010  Lukas Sommer < SommerLuk at gmail dot com >
00003 
00004     This program is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU General Public License as
00006     published by the Free Software Foundation; either version 2 of
00007     the License or (at your option) version 3 or any later version
00008     accepted by the membership of KDE e.V. (or its successor approved
00009     by the membership of KDE e.V.), which shall act as a proxy
00010     defined in Section 14 of version 3 of the license.
00011 
00012     This program is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef PROPERTYVALUE_H
00022 #define PROPERTYVALUE_H
00023 
00024 #include <QVariant>
00025 
00047 class PropertyValue
00048 {
00049 
00050   public:
00051 
00052     PropertyValue ();
00053 
00054     virtual ~PropertyValue();
00055 
00056     // typedefs
00057 
00062     enum propertyValueType {
00063       value,
00064       error,
00065       unset
00066     };
00067 
00068     // members
00069 
00073     QVariant internalValue;
00074 
00078     propertyValueType type;
00079 
00084     QString formatedValue;
00085 
00092     Qt::Alignment formatedValueAlignment;
00093 
00097     QString toolTip;
00098 
00102     QString whatsThis;
00103 
00104 };
00105 
00106 Q_DECLARE_METATYPE(PropertyValue)
00107 Q_DECLARE_METATYPE(PropertyValue::propertyValueType)
00108 
00109 #endif

doxygen