diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-08-26 13:04:54 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2010-08-26 13:21:56 +0200 |
commit | 3029049140ffd2d61c96f91976fefcbea63b64e2 (patch) | |
tree | 4d6ed8fa011f4388f2481e21b541d164bcab694e /nephilim/plugins/Systray.py | |
parent | f22dab76b500a22109a734fa7dafca9d50a24725 (diff) |
switch to QVariant API 2
i.e., remove all explicite usage of QVariant
Diffstat (limited to 'nephilim/plugins/Systray.py')
-rw-r--r-- | nephilim/plugins/Systray.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nephilim/plugins/Systray.py b/nephilim/plugins/Systray.py index 6a8f1ab..2411309 100644 --- a/nephilim/plugins/Systray.py +++ b/nephilim/plugins/Systray.py @@ -17,7 +17,6 @@ # from PyQt4 import QtGui, QtCore -from PyQt4.QtCore import QVariant from ..plugin import Plugin from ..common import sec2min, APPNAME, appIcon, expand_tags @@ -36,7 +35,7 @@ class Systray(Plugin): DEFAULTS = {'format': '${track} - ${title} by ${artist} on ${album} (${length})'} def _load(self): - self.format = self.settings.value(self.name + '/format').toString() + self.format = self.settings.value(self.name + '/format') class SystrayWheelEventObject(QtCore.QObject): """This class listens for systray-wheel events""" def eventFilter(self, object, event): @@ -100,14 +99,14 @@ class Systray(Plugin): def __init__(self, plugin): Plugin.SettingsWidget.__init__(self, plugin) - self.format = QtGui.QLineEdit(self.settings.value(self.plugin.name + '/format').toString()) + self.format = QtGui.QLineEdit(self.settings.value(self.plugin.name + '/format')) self.setLayout(QtGui.QVBoxLayout()) self._add_widget(self.format, 'Tooltip format') def save_settings(self): self.settings.beginGroup(self.plugin.name) - self.settings.setValue('format', QVariant(self.format.text())) + self.settings.setValue('format', self.format.text()) self.settings.endGroup() def get_settings_widget(self): |