Replace MessageBox Dialog with inline MessageWidget in
EditWidget and in UnlockDatabaseWidget. Add missing method to show Information Message.
This commit is contained in:
committed by
Janek Bevendorff
parent
8fa070f01c
commit
c2826bb1af
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user