110 self.__layout.addItem(spacer) |
110 self.__layout.addItem(spacer) |
111 |
111 |
112 def previewChanged(self, pixmap): |
112 def previewChanged(self, pixmap): |
113 """ |
113 """ |
114 Public slot to update the preview. |
114 Public slot to update the preview. |
|
115 |
|
116 @param pixmap new preview pixmap (QPixmap) |
115 """ |
117 """ |
116 self.__preview.setPixmap(pixmap) |
118 self.__preview.setPixmap(pixmap) |
117 |
119 |
118 def colorChanged(self, color): |
120 def colorChanged(self, color): |
119 """ |
121 """ |
120 Public slot to update the color preview. |
122 Public slot to update the color preview. |
|
123 |
|
124 @param color new color (QColor) |
121 """ |
125 """ |
122 self.__currentColor = color |
126 self.__currentColor = color |
123 self.__currentAlpha = color.alpha() |
127 self.__currentAlpha = color.alpha() |
124 |
128 |
125 pm = QPixmap(90, 18) |
129 pm = QPixmap(90, 18) |