~ubuntu-branches/ubuntu/jaunty/quassel/jaunty-backports

« back to all changes in this revision

Viewing changes to src/uisupport/uistyle.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2009-01-25 23:37:07 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090125233707-bwa28h4y9aew4e5x
Tags: 0.4.0~git090124-0ubuntu1
* New upstream git snapshot
  - Possible undocumented client/core protocol incompatibility that may
    require client and core to be updated together - see Quassel's bug
    tracker for details http://bugs.quassel-irc.org/issues/show/502
  - Fixes minimize to tray bug
  - Other bug fixes
  - XDG compliant data paths (with auto migration from old locations)
  - Adjust quassel.install, quassel-date, and quassel-client.install for new
    file locations
  - Replace -DQUASSEL_ICONS=External with -DEMBED_DATA=OFF to use external
    files where possible with the new build system
  - Don't ship oxygen or non-application specific hicolor icons, depend on
    kde-icons-oxygen | hicolor-icon-theme instead
  - Add translations files to quassel-data.install
* Adjust kubuntu_01_default_network_channel.patch to use irc.ubuntu.com
  instead of the Freenode url for the default channel (irc.ubuntu.com points
  to Freenode)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "uisettings.h"
25
25
#include "util.h"
26
26
 
27
 
// FIXME remove with migration code
28
 
#include <QSettings>
29
 
 
30
27
UiStyle::UiStyle(const QString &settingsKey) : _settingsKey(settingsKey) {
31
28
  // register FormatList if that hasn't happened yet
32
29
  // FIXME I don't think this actually avoids double registration... then again... does it hurt?
36
33
    Q_ASSERT(QVariant::nameToType("UiStyle::FormatList") != QVariant::Invalid);
37
34
  }
38
35
 
39
 
  // FIXME remove migration at some point
40
 
  // We remove old settings if we find them, since they conflict
41
 
#ifdef Q_WS_MAC
42
 
  QSettings mys(QCoreApplication::organizationDomain(), Quassel::buildInfo().clientApplicationName);
43
 
#else
44
 
  QSettings mys(QCoreApplication::organizationName(), Quassel::buildInfo().clientApplicationName);
45
 
#endif
46
 
  mys.beginGroup("QtUi");
47
 
  if(mys.childGroups().contains("Colors")) {
48
 
    qDebug() << "Removing obsolete UiStyle settings!";
49
 
    mys.endGroup();
50
 
    mys.remove("Ui");
51
 
    mys.remove("QtUiStyle");
52
 
    mys.remove("QtUiStyleNew");
53
 
    mys.remove("QtUi/Colors");
54
 
    mys.sync();
55
 
  }
56
 
 
57
36
  _defaultFont = QFont("Monospace", QApplication::font().pointSize());
58
37
 
59
38
  // Default format