-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index fea673c..b3edbc1 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -88,98 +88,98 @@ static char * vmemo_xpm[] = { "' c #343434", ") c #060606", "! c #444444", "~ c #646464", "{ c #505050", "] c #717171", "^ c #1B1B1B", "/ c #585858", "( c #4C4C4C", "_ c #353535", ": c #0E0E0E", "< c #080808", "[ c #262626", "} c #121212", "| c #7F7F7F", "1 c #464646", "2 c #0C0C0C", "3 c #727272", "4 c #292929", "5 c #656565", "6 c #565656", "7 c #434343", "8 c #272727", "9 c #0F0F0F", "0 c #3A3A3A", "a c #090909", "b c #535353", "c c #545454", "d c #494949", "e c #7A7A7A", "f c #202020", "g c #3D3D3D", "h c #1F1F1F", " .+@ ", " #$%&* ", " =-;>,')", " .$;!~,)", " ;#{]!)", " ^~/(_)", " ./:@<[)", " }. .|]1;;2 ", " #-$;^/3&;;4@ ", ".$;;#5:67;89 ", ":%;0%&ab;8. ", "@cd%e!fg49 ", " h0,!_;2@ ", " ))))) "}; -VMemo::VMemo( QWidget *parent, const char *name ) - : QWidget( parent, name ) +VMemo::VMemo( QWidget *parent, const char *_name ) + : QWidget( parent, _name ) { setFixedHeight( 18 ); setFixedWidth( 14 ); recording = FALSE; struct utsname name; /* check for embedix kernel running on the zaurus*/ if (uname(&name) != -1) { QString release=name.release; if(release.find("embedix",0,TRUE) !=-1) systemZaurus=TRUE; else { systemZaurus=FALSE; myChannel = new QCopChannel( "QPE/VMemo", this ); connect( myChannel, SIGNAL(received(const QCString&, const QByteArray&)), this, SLOT(receive(const QCString&, const QByteArray&)) ); // // Register the REC key press, for ipaq only QCopEnvelope e("QPE/Desktop", "keyRegister(int key, QString channel, QString message)"); e << 4096; e << QString("QPE/VMemo"); e << QString("toggleRecord()"); } } } VMemo::~VMemo() { } void VMemo::receive( const QCString &msg, const QByteArray &data ) { QDataStream stream( data, IO_ReadOnly ); if (msg == "toggleRecord()") { if (recording) mouseReleaseEvent(NULL); else mousePressEvent(NULL); } } void VMemo::paintEvent( QPaintEvent* ) { QPainter p(this); p.drawPixmap( 0, 1,( const char** ) vmemo_xpm ); } |