WebButtonClose.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
#include "WebButtonClose.h"
00023
00024
namespace Web {
00025
00026
static unsigned char close_bits[] =
00027 {
00028 0x42, 0xe7, 0x7e, 0x3c, 0x3c, 0x7e, 0xe7, 0x42
00029 };
00030
00031 WebButtonClose::WebButtonClose(QWidget * parent, WebClient* deco)
00032 : WebButton(parent, i18n(
"Close"), deco)
00033 {
00034 QBitmap b(8, 8, close_bits,
true );
00035 b.setMask(b);
00036 setBitmap(b);
00037 }
00038
00039
void
00040 WebButtonClose::clickEvent(
int )
00041 {
00042 emit(
closeWindow());
00043 }
00044
00045 }
00046
00047
#include "WebButtonClose.moc"
00048
This file is part of the documentation for kwin Library Version 3.2.3.