mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-20 03:58:10 -04:00
Replace MessageBox Dialog with inline MessageWidget in
EditWidget and in UnlockDatabaseWidget. Add missing method to show Information Message.
This commit is contained in:
parent
8fa070f01c
commit
c2826bb1af
5 changed files with 54 additions and 13 deletions
|
@ -25,6 +25,8 @@ EditWidget::EditWidget(QWidget* parent)
|
|||
m_ui->setupUi(this);
|
||||
setReadOnly(false);
|
||||
|
||||
m_ui->messageWidget->setHidden(true);
|
||||
|
||||
QFont headerLabelFont = m_ui->headerLabel->font();
|
||||
headerLabelFont.setBold(true);
|
||||
headerLabelFont.setPointSize(headerLabelFont.pointSize() + 2);
|
||||
|
@ -86,3 +88,25 @@ bool EditWidget::readOnly() const
|
|||
{
|
||||
return m_readOnly;
|
||||
}
|
||||
|
||||
void EditWidget::showMessageError(const QString& text)
|
||||
{
|
||||
m_ui->messageWidget->showMessageError(text);
|
||||
}
|
||||
|
||||
void EditWidget::showMessageWarning(const QString& text)
|
||||
{
|
||||
m_ui->messageWidget->showMessageWarning(text);
|
||||
}
|
||||
|
||||
void EditWidget::showMessageInformation(const QString& text)
|
||||
{
|
||||
m_ui->messageWidget->showMessageInformation(text);
|
||||
}
|
||||
|
||||
void EditWidget::hideMessage()
|
||||
{
|
||||
if (m_ui->messageWidget->isVisible()) {
|
||||
m_ui->messageWidget->animatedHide();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue