mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 14:45:42 +08:00
Follow up of Ref T154, messages can be exported (and hence added to a bug tracking issue for instance)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1aa842ad5a
commit
ab65039ca4
@@ -61,6 +61,7 @@ namespace BlackGui
|
|||||||
ui->tvp_StatusMessages->setResizeMode(CStatusMessageView::ResizingAlways);
|
ui->tvp_StatusMessages->setResizeMode(CStatusMessageView::ResizingAlways);
|
||||||
ui->tvp_StatusMessages->setForceColumnsToMaxSize(false); // problems with multinline entries, with T138 we need multiline messages
|
ui->tvp_StatusMessages->setForceColumnsToMaxSize(false); // problems with multinline entries, with T138 we need multiline messages
|
||||||
ui->tvp_StatusMessages->setWordWrap(true);
|
ui->tvp_StatusMessages->setWordWrap(true);
|
||||||
|
ui->tvp_StatusMessages->menuAddItems(CStatusMessageView::MenuSave);
|
||||||
ui->fr_Confirmation->setVisible(false);
|
ui->fr_Confirmation->setVisible(false);
|
||||||
this->setDefaultConfirmationButton(QMessageBox::Cancel);
|
this->setDefaultConfirmationButton(QMessageBox::Cancel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -409,9 +409,9 @@ namespace BlackGui
|
|||||||
// resize to content might decrease performance,
|
// resize to content might decrease performance,
|
||||||
// so I only allow changing to "content resizing" if size matches
|
// so I only allow changing to "content resizing" if size matches
|
||||||
const bool enabled = !this->reachedResizeThreshold();
|
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)
|
if (m_rowResizeMode == Interactive)
|
||||||
{
|
{
|
||||||
QAction *a = menuActions.addAction(BlackMisc::CIcons::resizeVertical16(), " Resize rows to content (auto)", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::rowsResizeModeToContent });
|
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
|
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);
|
a->setEnabled(!autoResize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user