mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Always allow vertical resize in case we change from word wrap to non word-wrap
This commit is contained in:
@@ -424,9 +424,9 @@ namespace BlackGui
|
|||||||
|
|
||||||
// when not set to auto, then lets set how we want to resize rows
|
// when not set to auto, then lets set how we want to resize rows
|
||||||
// for auto this is too slow
|
// for auto this is too slow
|
||||||
const bool ww = this->wordWrap();
|
// const bool ww = this->wordWrap();
|
||||||
QAction *resizeRowsAction = menuActions.addAction(CIcons::resizeVertical16(), "Resize rows to content", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::resizeRowsToContents });
|
QAction *resizeRowsAction = menuActions.addAction(CIcons::resizeVertical16(), "Resize rows to content", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::resizeRowsToContents });
|
||||||
resizeRowsAction->setEnabled(ww);
|
resizeRowsAction->setEnabled(true); // as changing from word wraap to none word wrap can leave to high columns, we always enable this
|
||||||
|
|
||||||
/**
|
/**
|
||||||
QAction *a1 = menuActions.addAction(CIcons::resizeVertical16(), "Resize rows to content (auto), can be slow", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::rowsResizeModeToContent });
|
QAction *a1 = menuActions.addAction(CIcons::resizeVertical16(), "Resize rows to content (auto), can be slow", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::rowsResizeModeToContent });
|
||||||
|
|||||||
Reference in New Issue
Block a user