mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
Disabled Fontmetrics on RemoteDirModel Columns, it causes unusable very small column height.
This commit is contained in:
parent
701f1ceb4a
commit
e3d12b8194
1 changed files with 4 additions and 4 deletions
|
@ -590,7 +590,7 @@ QVariant RetroshareDirModel::data(const QModelIndex &index, int role) const
|
||||||
|
|
||||||
QVariant TreeStyle_RDM::headerData(int section, Qt::Orientation orientation, int role) const
|
QVariant TreeStyle_RDM::headerData(int section, Qt::Orientation orientation, int role) const
|
||||||
{
|
{
|
||||||
if (role == Qt::SizeHintRole)
|
/*if (role == Qt::SizeHintRole)
|
||||||
{
|
{
|
||||||
int defw = QFontMetricsF(QWidget().font()).width(headerData(section,Qt::Horizontal,Qt::DisplayRole).toString()) ;
|
int defw = QFontMetricsF(QWidget().font()).width(headerData(section,Qt::Horizontal,Qt::DisplayRole).toString()) ;
|
||||||
int defh = QFontMetricsF(QWidget().font()).height();
|
int defh = QFontMetricsF(QWidget().font()).height();
|
||||||
|
@ -600,7 +600,7 @@ QVariant TreeStyle_RDM::headerData(int section, Qt::Orientation orientation, int
|
||||||
defw = 200/16.0*defh;
|
defw = 200/16.0*defh;
|
||||||
}
|
}
|
||||||
return QSize(defw, defh);
|
return QSize(defw, defh);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (role != Qt::DisplayRole)
|
if (role != Qt::DisplayRole)
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
@ -636,7 +636,7 @@ QVariant TreeStyle_RDM::headerData(int section, Qt::Orientation orientation, int
|
||||||
}
|
}
|
||||||
QVariant FlatStyle_RDM::headerData(int section, Qt::Orientation orientation, int role) const
|
QVariant FlatStyle_RDM::headerData(int section, Qt::Orientation orientation, int role) const
|
||||||
{
|
{
|
||||||
if (role == Qt::SizeHintRole)
|
/*if (role == Qt::SizeHintRole)
|
||||||
{
|
{
|
||||||
int defw = QFontMetricsF(QWidget().font()).width(headerData(section,Qt::Horizontal,Qt::DisplayRole).toString()) ;
|
int defw = QFontMetricsF(QWidget().font()).width(headerData(section,Qt::Horizontal,Qt::DisplayRole).toString()) ;
|
||||||
int defh = QFontMetricsF(QWidget().font()).height();
|
int defh = QFontMetricsF(QWidget().font()).height();
|
||||||
|
@ -646,7 +646,7 @@ QVariant FlatStyle_RDM::headerData(int section, Qt::Orientation orientation, int
|
||||||
defw = defh*200/16.0;
|
defw = defh*200/16.0;
|
||||||
}
|
}
|
||||||
return QSize(defw, defh);
|
return QSize(defw, defh);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (role != Qt::DisplayRole)
|
if (role != Qt::DisplayRole)
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue