daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest May 30th, 2012 21 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MyClass::MyClass(QObject *parent) : QObject(parent)
  2. {
  3.     settings = new QSettings("zogApp", "zogApp", this);
  4.     // default values
  5.     if (! settings->contains("setting1")) { settings->setValue("setting1", "blue"); }
  6.     if (! settings->contains("setting2")) { settings->setValue("setting1", "yellow"); }
  7.  
  8.     setSetting1(settings->value("setting1").toString());
  9.     setSetting2(settings->value("setting2").toString());
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top