fixed a few icons and sizeHint functions. Removed unused SFListDelegate files from compilation

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8571 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-06-29 16:08:17 +00:00
parent 18df09e032
commit ebc8bb072c
38 changed files with 266 additions and 227 deletions

View file

@ -592,11 +592,12 @@ QVariant TreeStyle_RDM::headerData(int section, Qt::Orientation orientation, int
{
if (role == Qt::SizeHintRole)
{
int defw = 50;
int defh = 21;
int defw = QFontMetricsF(QWidget().font()).width(headerData(section,Qt::Horizontal,Qt::DisplayRole).toString()) ;
int defh = QFontMetricsF(QWidget().font()).height();
if (section < 2)
{
defw = 200;
defw = 200/16.0*defh;
}
return QSize(defw, defh);
}
@ -637,11 +638,12 @@ QVariant FlatStyle_RDM::headerData(int section, Qt::Orientation orientation, int
{
if (role == Qt::SizeHintRole)
{
int defw = 50;
int defh = 21;
int defw = QFontMetricsF(QWidget().font()).width(headerData(section,Qt::Horizontal,Qt::DisplayRole).toString()) ;
int defh = QFontMetricsF(QWidget().font()).height();
if (section < 2)
{
defw = 200;
defw = defh*200/16.0;
}
return QSize(defw, defh);
}