1 //=========================================================
2 // MusE
3 // Linux Music Editor
4 // $Id: swidget.cpp,v 1.1.1.1 2003/10/27 18:54:27 wschweer Exp $
5 // (C) Copyright 1999 Werner Schweer (ws@seh.de)
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; version 2 of
10 // the License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 //
21 //=========================================================
22
23 #include "swidget.h"
24
25 #include <QResizeEvent>
26
27 namespace MusEGui {
28
29 //---------------------------------------------------------
30 // resizeEvent
31 //---------------------------------------------------------
32
resizeEvent(QResizeEvent * ev)33 void SWidget::resizeEvent(QResizeEvent* ev)
34 {
35 QWidget::resizeEvent(ev);
36 emit heightChanged(ev->size().height());
37 }
38
39 } // namespace MusEGui
40