mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-20 06:50:40 -04:00
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:
parent
18df09e032
commit
ebc8bb072c
38 changed files with 266 additions and 227 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue