constinticonHeight=KIconLoader::global()->currentSize(KIconLoader::Desktop)+(s_delegatePaddingSize*2);//icon height + padding either side
constinttextHeight=option.fontMetrics.height()+qMax(option.fontMetrics.height(),16)+(s_delegatePaddingSize*2);//height of text + icon/text + padding either side
returnQSize(1,qMax(iconHeight,textHeight));//any width,the view will give us the whole thing in list mode
return{1,qMax(iconHeight,textHeight)};//any width,the view will give us the whole thing in list mode