|
|
@ -716,10 +716,9 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&) |
|
|
|
Q_ASSERT(visibleCols > 0); |
|
|
|
Q_ASSERT(visibleCols > 0); |
|
|
|
if (!isColumnHidden(col) && visibleCols == 1) |
|
|
|
if (!isColumnHidden(col) && visibleCols == 1) |
|
|
|
return; |
|
|
|
return; |
|
|
|
qDebug("Toggling column %d visibility", col); |
|
|
|
|
|
|
|
setColumnHidden(col, !isColumnHidden(col)); |
|
|
|
setColumnHidden(col, !isColumnHidden(col)); |
|
|
|
if (!isColumnHidden(col) && columnWidth(col) <= 5) |
|
|
|
if (!isColumnHidden(col) && columnWidth(col) <= 5) |
|
|
|
setColumnWidth(col, 100); |
|
|
|
resizeColumnToContents(col); |
|
|
|
saveSettings(); |
|
|
|
saveSettings(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1193,10 +1192,7 @@ void TransferListWidget::saveSettings() |
|
|
|
|
|
|
|
|
|
|
|
bool TransferListWidget::loadSettings() |
|
|
|
bool TransferListWidget::loadSettings() |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool ok = header()->restoreState(Preferences::instance()->getTransHeaderState()); |
|
|
|
return header()->restoreState(Preferences::instance()->getTransHeaderState()); |
|
|
|
if (!ok) |
|
|
|
|
|
|
|
header()->resizeSection(0, 200); // Default
|
|
|
|
|
|
|
|
return ok; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TransferListWidget::wheelEvent(QWheelEvent *event) |
|
|
|
void TransferListWidget::wheelEvent(QWheelEvent *event) |
|
|
|