@@ -97,7 +97,7 @@ void ConfigItem::updateMenu(void)
97
97
98
98
list = listView ();
99
99
if (goParent) {
100
- setPixmap (promptColIdx, list->menuBackPix );
100
+ setIcon (promptColIdx, list->menuBackPix );
101
101
prompt = " .." ;
102
102
goto set_prompt;
103
103
}
@@ -114,15 +114,15 @@ void ConfigItem::updateMenu(void)
114
114
*/
115
115
if (sym && list->rootEntry == menu)
116
116
break ;
117
- setPixmap (promptColIdx, list->menuPix );
117
+ setIcon (promptColIdx, list->menuPix );
118
118
} else {
119
119
if (sym)
120
120
break ;
121
- setPixmap (promptColIdx, QIcon ());
121
+ setIcon (promptColIdx, QIcon ());
122
122
}
123
123
goto set_prompt;
124
124
case P_COMMENT:
125
- setPixmap (promptColIdx, QIcon ());
125
+ setIcon (promptColIdx, QIcon ());
126
126
goto set_prompt;
127
127
default :
128
128
;
@@ -139,7 +139,7 @@ void ConfigItem::updateMenu(void)
139
139
char ch;
140
140
141
141
if (!sym_is_changeable (sym) && list->optMode == normalOpt) {
142
- setPixmap (promptColIdx, QIcon ());
142
+ setIcon (promptColIdx, QIcon ());
143
143
setText (noColIdx, QString ());
144
144
setText (modColIdx, QString ());
145
145
setText (yesColIdx, QString ());
@@ -149,22 +149,22 @@ void ConfigItem::updateMenu(void)
149
149
switch (expr) {
150
150
case yes:
151
151
if (sym_is_choice_value (sym) && type == S_BOOLEAN)
152
- setPixmap (promptColIdx, list->choiceYesPix );
152
+ setIcon (promptColIdx, list->choiceYesPix );
153
153
else
154
- setPixmap (promptColIdx, list->symbolYesPix );
154
+ setIcon (promptColIdx, list->symbolYesPix );
155
155
setText (yesColIdx, " Y" );
156
156
ch = ' Y' ;
157
157
break ;
158
158
case mod:
159
- setPixmap (promptColIdx, list->symbolModPix );
159
+ setIcon (promptColIdx, list->symbolModPix );
160
160
setText (modColIdx, " M" );
161
161
ch = ' M' ;
162
162
break ;
163
163
default :
164
164
if (sym_is_choice_value (sym) && type == S_BOOLEAN)
165
- setPixmap (promptColIdx, list->choiceNoPix );
165
+ setIcon (promptColIdx, list->choiceNoPix );
166
166
else
167
- setPixmap (promptColIdx, list->symbolNoPix );
167
+ setIcon (promptColIdx, list->symbolNoPix );
168
168
setText (noColIdx, " N" );
169
169
ch = ' N' ;
170
170
break ;
@@ -769,7 +769,7 @@ void ConfigList::mouseReleaseEvent(QMouseEvent* e)
769
769
idx = header ()->logicalIndexAt (x);
770
770
switch (idx) {
771
771
case promptColIdx:
772
- icon = item->pixmap (promptColIdx);
772
+ icon = item->icon (promptColIdx);
773
773
if (!icon.isNull ()) {
774
774
int off = header ()->sectionPosition (0 ) + visualRect (indexAt (p)).x () + 4 ; // 4 is Hardcoded image offset. There might be a way to do it properly.
775
775
if (x >= off && x < off + icon.availableSizes ().first ().width ()) {
0 commit comments