1 //=========================================================
2 //  MusE
3 //  Linux Music Editor
4 //    $Id: swidget.h,v 1.1.1.1 2003/10/27 18:54:49 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 #ifndef __SWIDGET_H__
24 #define __SWIDGET_H__
25 
26 #include <QWidget>
27 
28 namespace MusEGui {
29 
30 //---------------------------------------------------------
31 //   SWidget
32 //    a simple widget which emits a heighChanged signal
33 //    on received ResizeEvent�s
34 //---------------------------------------------------------
35 
36 class SWidget : public QWidget {
37       Q_OBJECT
38       virtual void resizeEvent(QResizeEvent*);
39 
40 
41    signals:
42       void heightChanged(int);
43 
44    public:
SWidget(QWidget * parent)45       SWidget(QWidget* parent) : QWidget(parent) {}
46       };
47 
48 } // namespace MusEGui
49 
50 #endif
51 
52