5 Carsten Clever <clushkou@gmx.net>
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
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 GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
23 #include "AboveButton.h"
26 #include <QMouseEvent>
32 static const char * const above_xpm
[] = {
50 AboveButton::AboveButton(QWidget
*parent
)
51 : Button(parent
, i18n("Keep above others"))
53 setPixmap(QPixmap((const char **)above_xpm
));
56 void AboveButton::mouseReleaseEvent(QMouseEvent
*e
)
58 Button::mouseReleaseEvent(e
);
60 if (!rect().contains(e
->pos()))
68 #include "AboveButton.moc"