1 //=============================================================================
2 //  MuseScore
3 //  Music Composition & Notation
4 //
5 //  Copyright (C) 2002-2016 Werner Schweer and others
6 //
7 //  This program is free software; you can redistribute it and/or modify
8 //  it under the terms of the GNU General Public License version 2.
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, write to the Free Software
17 //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #include "abstractdialog.h"
21 
22 namespace Ms {
23 
AbstractDialog(QWidget * parent,Qt::WindowFlags f)24 AbstractDialog::AbstractDialog(QWidget* parent, Qt::WindowFlags f)
25     : QDialog(parent, f)
26       {
27       }
28 
changeEvent(QEvent * event)29 void AbstractDialog::changeEvent(QEvent* event)
30       {
31       QDialog::changeEvent(event);
32       if (event->type() == QEvent::LanguageChange)
33             retranslate();
34       }
35 
36 }
37