Skip to content
Permalink
Browse files

Add poor man's padding to last column in connect dialog.

Adds a space after the content of the last column to
prevent it being to close to the border of the treewidget.
Unfortunately we cannot use QSS which would make this
trivial as that would prevent users from customizing this
value with their own styles. Also programmatic access
to the size of an item to correct the hint is quite
involved. The single space seems to be the best solution.

Fixes #1331
  • Loading branch information...
hacst committed Sep 22, 2014
1 parent 6151814 commit 3c280a6629d1817844f94223c394bb04b6b883b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mumble/ConnectDialog.cpp
@@ -457,7 +457,7 @@ QVariant ServerItem::data(int column, int role) const {
case 1:
return (dPing > 0.0) ? QString::number(uiPing) : QVariant();
case 2:
return uiUsers ? QString::fromLatin1("%1/%2").arg(uiUsers).arg(uiMaxUsers) : QVariant();
return uiUsers ? QString::fromLatin1("%1/%2 ").arg(uiUsers).arg(uiMaxUsers) : QVariant();
}
} else if (role == Qt::ToolTipRole) {
QStringList qsl;

0 comments on commit 3c280a6

Please sign in to comment.
You can’t perform that action at this time.