Follow up of Ref T154, messages can be exported (and hence added to a bug tracking issue for instance)

This commit is contained in:
Klaus Basan
2017-09-17 00:55:36 +02:00
committed by Mathew Sutcliffe
parent 1aa842ad5a
commit ab65039ca4
2 changed files with 4 additions and 3 deletions

View File

@@ -61,6 +61,7 @@ namespace BlackGui
ui->tvp_StatusMessages->setResizeMode(CStatusMessageView::ResizingAlways);
ui->tvp_StatusMessages->setForceColumnsToMaxSize(false); // problems with multinline entries, with T138 we need multiline messages
ui->tvp_StatusMessages->setWordWrap(true);
ui->tvp_StatusMessages->menuAddItems(CStatusMessageView::MenuSave);
ui->fr_Confirmation->setVisible(false);
this->setDefaultConfirmationButton(QMessageBox::Cancel);
}

View File

@@ -409,9 +409,9 @@ namespace BlackGui
// resize to content might decrease performance,
// so I only allow changing to "content resizing" if size matches
const bool enabled = !this->reachedResizeThreshold();
const bool autoResize = m_resizeMode == ResizingAuto;
const bool autoResize = (m_resizeMode == ResizingAuto);
// when not auto let set how we want to resize rows
// when not set to auto, then lets set how we want to resize rows
if (m_rowResizeMode == Interactive)
{
QAction *a = menuActions.addAction(BlackMisc::CIcons::resizeVertical16(), " Resize rows to content (auto)", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::rowsResizeModeToContent });
@@ -419,7 +419,7 @@ namespace BlackGui
}
else
{
QAction *a = menuActions.addAction(BlackMisc::CIcons::resizeVertical16(), "Resize rows interactive", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::rowsResizeModeToInteractive });
QAction *a = menuActions.addAction(BlackMisc::CIcons::resizeVertical16(), "Resize rows interactively", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::rowsResizeModeToInteractive });
a->setEnabled(!autoResize);
}