1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

(qt) copyediting: modify more files to the new indentation/whitespace formatting

This commit is contained in:
Jordan Lee 2013-01-25 18:54:06 +00:00
parent 4356ade034
commit 5af4abfc82

View file

@ -235,7 +235,9 @@ FileTreeItem :: priority () const
{
int i(0);
if(myChildren.isEmpty()) switch(myPriority)
if (myChildren.isEmpty())
{
switch (myPriority)
{
case TR_PRI_LOW:
i |= LOW;
@ -249,6 +251,7 @@ FileTreeItem :: priority () const
i |= NORMAL;
break;
}
}
foreach (const FileTreeItem * child, myChildren)
i |= child->priority();
@ -818,8 +821,10 @@ FileTreeView :: eventFilter (QObject * o, QEvent * event)
{
if (column == COL_NAME)
continue;
if (isColumnHidden (column))
continue;
const QString header = myModel.headerData (column, Qt::Horizontal).toString() + " ";
const int width = fontMetrics.size (0, header).width();
setColumnWidth (column, width);