Fixed an issue causing wrong display of manually invoked calltips when auto-caltips were disabled. 6_0_x

Tue, 07 Apr 2015 13:54:51 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 07 Apr 2015 13:54:51 +0200
branch
6_0_x
changeset 4203
d18603cecdaa
parent 4199
81833aff8ce7
child 4204
83a97d3c37e6

Fixed an issue causing wrong display of manually invoked calltips when auto-caltips were disabled.
(grafted from 2a9316cb3fad27933358d4c3bb2976a4948312b4)

Preferences/ConfigurationPages/EditorCalltipsPage.ui file | annotate | diff | comparison | revisions
QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/Preferences/ConfigurationPages/EditorCalltipsPage.ui	Sat Apr 04 16:08:09 2015 +0200
+++ b/Preferences/ConfigurationPages/EditorCalltipsPage.ui	Tue Apr 07 13:54:51 2015 +0200
@@ -55,9 +55,6 @@
    </item>
    <item>
     <widget class="QGroupBox" name="groupBox_4">
-     <property name="enabled">
-      <bool>false</bool>
-     </property>
      <property name="title">
       <string>Visible Calltips</string>
      </property>
@@ -96,9 +93,6 @@
    </item>
    <item>
     <widget class="QGroupBox" name="calltipsPositionBox">
-     <property name="enabled">
-      <bool>false</bool>
-     </property>
      <property name="title">
       <string>Calltips Position</string>
      </property>
@@ -115,9 +109,6 @@
    </item>
    <item>
     <widget class="QGroupBox" name="groupBox_2">
-     <property name="enabled">
-      <bool>false</bool>
-     </property>
      <property name="title">
       <string>Colours</string>
      </property>
@@ -163,9 +154,6 @@
    </item>
    <item>
     <widget class="QGroupBox" name="groupBox">
-     <property name="enabled">
-      <bool>false</bool>
-     </property>
      <property name="title">
       <string>Plug-In Behavior</string>
      </property>
@@ -219,72 +207,8 @@
      <y>109</y>
     </hint>
     <hint type="destinationlabel">
-     <x>386</x>
-     <y>111</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>ctEnabledCheckBox</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>groupBox_4</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>45</x>
-     <y>44</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>50</x>
-     <y>71</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>ctEnabledCheckBox</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>calltipsPositionBox</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>124</x>
-     <y>44</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>134</x>
-     <y>131</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>ctEnabledCheckBox</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>groupBox_2</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>173</x>
-     <y>46</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>182</x>
-     <y>192</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>ctEnabledCheckBox</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>groupBox</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>232</x>
-     <y>46</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>245</x>
-     <y>257</y>
+     <x>384</x>
+     <y>126</y>
     </hint>
    </hints>
   </connection>
--- a/QScintilla/Editor.py	Sat Apr 04 16:08:09 2015 +0200
+++ b/QScintilla/Editor.py	Tue Apr 07 13:54:51 2015 +0200
@@ -4268,11 +4268,17 @@
         """
         Private method to configure the calltips function.
         """
+        self.setCallTipsBackgroundColor(
+            Preferences.getEditorColour("CallTipsBackground"))
+        self.setCallTipsVisible(Preferences.getEditor("CallTipsVisible"))
+        calltipsStyle = Preferences.getEditor("CallTipsStyle")
+        try:
+            self.setCallTipsPosition(
+                Preferences.getEditor("CallTipsPosition"))
+        except AttributeError:
+            pass
+        
         if Preferences.getEditor("CallTipsEnabled"):
-            self.setCallTipsBackgroundColor(
-                Preferences.getEditorColour("CallTipsBackground"))
-            self.setCallTipsVisible(Preferences.getEditor("CallTipsVisible"))
-            calltipsStyle = Preferences.getEditor("CallTipsStyle")
             if calltipsStyle == QsciScintilla.CallTipsNoContext:
                 self.setCallTipsStyle(QsciScintilla.CallTipsNoContext)
             elif calltipsStyle == \
@@ -4281,11 +4287,6 @@
                     QsciScintilla.CallTipsNoAutoCompletionContext)
             else:
                 self.setCallTipsStyle(QsciScintilla.CallTipsContext)
-            try:
-                self.setCallTipsPosition(
-                    Preferences.getEditor("CallTipsPosition"))
-            except AttributeError:
-                pass
         else:
             self.setCallTipsStyle(QsciScintilla.CallTipsNone)
 

eric ide

mercurial