oopapidocs  2.0
preferencecombo.cpp
00001 #include "preferencecombo.h"
00002 #include <preference.h>
00003 
00004 PreferenceCombo::PreferenceCombo(QWidget* parent)
00005 : QComboBox(parent) {
00006     setObjectName("preferenceCombo");
00007     static Preference prefs;
00008     foreach (const QString &str , prefs.names()) {
00009         Preference pref(str);
00010 //        QVariant v;
00011 //        v.setValue(pref.intValue());
00012         addItem(str, QVariant(pref.intValue()));
00013     }
00014 }
00015 
 All Classes Namespaces Functions Enumerations