~ubuntu-branches/ubuntu/warty/kdebase/warty

« back to all changes in this revision

Viewing changes to kwin/clients/web/WebButtonIconify.cpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-09-16 04:51:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040916045145-9vr63kith3k1cpza
Tags: upstream-3.2.2
ImportĀ upstreamĀ versionĀ 3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  'Web' kwin client
 
3
 
 
4
  Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>
 
5
 
 
6
  This program is free software; you can redistribute it and/or
 
7
  modify it under the terms of the GNU General Public
 
8
  License as published by the Free Software Foundation; either
 
9
  version 2 of the License, or (at your option) any later version.
 
10
 
 
11
  This program is distributed in the hope that it will be useful,
 
12
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
  General Public License for more details.
 
15
 
 
16
  You should have received a copy of the GNU General Public License
 
17
  along with this program; see the file COPYING.  If not, write to
 
18
  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
19
  Boston, MA 02111-1307, USA.
 
20
*/
 
21
 
 
22
#include "WebButtonIconify.h"
 
23
 
 
24
namespace Web {
 
25
 
 
26
static unsigned char iconify_bits[] =
 
27
{
 
28
   0x00, 0x00, 0x00, 0x7e, 0x7e, 0x3c, 0x18, 0x00
 
29
};
 
30
 
 
31
WebButtonIconify::WebButtonIconify(QWidget * parent, WebClient* deco)
 
32
  : WebButton(parent, i18n("Minimize"), deco)
 
33
{
 
34
  QBitmap b(8, 8, iconify_bits, true /* isXBitmap */);
 
35
  b.setMask(b);
 
36
  setBitmap(b);
 
37
}
 
38
 
 
39
  void
 
40
WebButtonIconify::clickEvent(int /* button */)
 
41
{
 
42
  emit(minimize());
 
43
}
 
44
 
 
45
}
 
46
 
 
47
#include "WebButtonIconify.moc"
 
48
// vim:ts=2:sw=2:tw=78:set et: