1 /************************************************************************** 2 * Otter Browser: Web browser controlled by the user, not vice-versa. 3 * Copyright (C) 2016 - 2017 Michal Dutkiewicz aka Emdek <michal@emdek.pl> 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 **************************************************************************/ 19 20 #include "MasterPasswordDialog.h" 21 22 #include "ui_MasterPasswordDialog.h" 23 24 namespace Otter 25 { 26 MasterPasswordDialog(QWidget * parent)27MasterPasswordDialog::MasterPasswordDialog(QWidget *parent) : Dialog(parent), 28 m_ui(new Ui::MasterPasswordDialog) 29 { 30 m_ui->setupUi(this); 31 } 32 ~MasterPasswordDialog()33MasterPasswordDialog::~MasterPasswordDialog() 34 { 35 delete m_ui; 36 } 37 changeEvent(QEvent * event)38void MasterPasswordDialog::changeEvent(QEvent *event) 39 { 40 QDialog::changeEvent(event); 41 42 if (event->type() == QEvent::LanguageChange) 43 { 44 m_ui->retranslateUi(this); 45 } 46 } 47 48 } 49