From 61984a57488664c9c50481e3e710b17678da9831 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 2 Jul 2012 00:08:31 +0200 Subject: [PATCH] Keep widget frame when displaying history items. --- src/gui/entry/EditEntryWidget.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/gui/entry/EditEntryWidget.cpp b/src/gui/entry/EditEntryWidget.cpp index f8866566b..856e7e6ef 100644 --- a/src/gui/entry/EditEntryWidget.cpp +++ b/src/gui/entry/EditEntryWidget.cpp @@ -182,25 +182,13 @@ void EditEntryWidget::loadEntry(Entry* entry, bool create, bool history, const Q void EditEntryWidget::setForms(const Entry* entry, bool restore) { m_mainUi->titleEdit->setReadOnly(m_history); - m_mainUi->titleEdit->setFrame(!m_history); m_mainUi->usernameEdit->setReadOnly(m_history); - m_mainUi->usernameEdit->setFrame(!m_history); m_mainUi->urlEdit->setReadOnly(m_history); - m_mainUi->urlEdit->setFrame(!m_history); m_mainUi->passwordEdit->setReadOnly(m_history); - m_mainUi->passwordEdit->setFrame(!m_history); m_mainUi->passwordRepeatEdit->setReadOnly(m_history); - m_mainUi->passwordRepeatEdit->setFrame(!m_history); m_mainUi->expireCheck->setEnabled(!m_history); m_mainUi->expireDatePicker->setReadOnly(m_history); - m_mainUi->expireDatePicker->setFrame(!m_history); m_notesUi->notesEdit->setReadOnly(m_history); - if (m_history) { - m_notesUi->notesEdit->setFrameShape(QFrame::NoFrame); - } - else { - m_notesUi->notesEdit->setFrameShape(QFrame::StyledPanel); - } m_advancedUi->addAttachmentButton->setEnabled(!m_history); m_advancedUi->removeAttachmentButton->setEnabled(!m_history); m_advancedUi->addAttributeButton->setEnabled(!m_history);