Browse Source

Fix default width of file name column in torrent content

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
db01276f1d
  1. 2
      src/propertieswidget.cpp

2
src/propertieswidget.cpp

@ -254,7 +254,7 @@ void PropertiesWidget::readSettings() {
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
QVariantList contentColsWidths = settings.value(QString::fromUtf8("TorrentProperties/filesColsWidth"), QVariantList()).toList(); QVariantList contentColsWidths = settings.value(QString::fromUtf8("TorrentProperties/filesColsWidth"), QVariantList()).toList();
if(contentColsWidths.empty()) { if(contentColsWidths.empty()) {
filesList->header()->resizeSection(0, filesList->width()/2.); filesList->header()->resizeSection(0, 300);
} else { } else {
for(int i=0; i<contentColsWidths.size(); ++i) { for(int i=0; i<contentColsWidths.size(); ++i) {
filesList->setColumnWidth(i, contentColsWidths.at(i).toInt()); filesList->setColumnWidth(i, contentColsWidths.at(i).toInt());

Loading…
Cancel
Save