diff -r 78539385a8df -r 2b1b9265156c Preferences/ConfigurationPages/EditorCalltipsPage.py --- a/Preferences/ConfigurationPages/EditorCalltipsPage.py Sun Nov 25 20:22:02 2012 +0100 +++ b/Preferences/ConfigurationPages/EditorCalltipsPage.py Mon Nov 26 19:07:40 2012 +0100 @@ -7,8 +7,6 @@ Module implementing the Editor Calltips configuration page. """ -from PyQt4.QtCore import pyqtSlot - from .ConfigurationPageBase import ConfigurationPageBase from .Ui_EditorCalltipsPage import Ui_EditorCalltipsPage @@ -33,9 +31,8 @@ self.ctVisibleSlider.setValue( Preferences.getEditor("CallTipsVisible")) - self.callTipsBackgroundColour = \ - self.initColour("CallTipsBackground", self.calltipsBackgroundButton, - Preferences.getEditorColour) + self.initColour("CallTipsBackground", self.calltipsBackgroundButton, + Preferences.getEditorColour) self.ctScintillaCheckBox.setChecked( Preferences.getEditor("CallTipsScintillaOnFail")) @@ -49,19 +46,10 @@ Preferences.setEditor("CallTipsVisible", self.ctVisibleSlider.value()) - Preferences.setEditorColour("CallTipsBackground", self.callTipsBackgroundColour) + self.saveColours(Preferences.setEditorColour) Preferences.setEditor("CallTipsScintillaOnFail", self.ctScintillaCheckBox.isChecked()) - - @pyqtSlot() - def on_calltipsBackgroundButton_clicked(self): - """ - Private slot to set the background colour for calltips. - """ - self.callTipsBackgroundColour = \ - self.selectColour(self.calltipsBackgroundButton, - self.callTipsBackgroundColour) def create(dlg):