-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index e327098..7021fae 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -215,33 +215,33 @@ VMemo::VMemo( QWidget *parent, const char *_name ) | |||
215 | systemZaurus=TRUE; | 215 | systemZaurus=TRUE; |
216 | else | 216 | else |
217 | systemZaurus=FALSE; | 217 | systemZaurus=FALSE; |
218 | 218 | ||
219 | myChannel = new QCopChannel( "QPE/VMemo", this ); | 219 | myChannel = new QCopChannel( "QPE/VMemo", this ); |
220 | connect( myChannel, SIGNAL(received(const QCString&, const QByteArray&)), | 220 | connect( myChannel, SIGNAL(received(const QCString&, const QByteArray&)), |
221 | this, SLOT(receive(const QCString&, const QByteArray&)) ); | 221 | this, SLOT(receive(const QCString&, const QByteArray&)) ); |
222 | 222 | ||
223 | if( toggleKey != -1 ) { | 223 | if( toggleKey != -1 ) { |
224 | QCopEnvelope e("QPE/Desktop", "keyRegister(int key, QString channel, QString message)"); | 224 | QCopEnvelope e("QPE/Desktop", "keyRegister(int key, QString channel, QString message)"); |
225 | // e << 4096; // Key_Escape | 225 | // e << 4096; // Key_Escape |
226 | // e << Key_F5; //4148 | 226 | // e << Key_F5; //4148 |
227 | e << toggleKey; | 227 | e << toggleKey; |
228 | e << QString("QPE/VMemo"); | 228 | e << QString("QPE/VMemo"); |
229 | e << QString("toggleRecord()"); | 229 | e << QString("toggleRecord()"); |
230 | } | 230 | } |
231 | if( vmCfg.readNumEntry("hideIcon",0) == 1) | 231 | if( vmCfg.readNumEntry("hideIcon",0) == 1 || toggleKey > 0) |
232 | hide(); | 232 | hide(); |
233 | } | 233 | } |
234 | } | 234 | } |
235 | 235 | ||
236 | VMemo::~VMemo() | 236 | VMemo::~VMemo() |
237 | { | 237 | { |
238 | } | 238 | } |
239 | 239 | ||
240 | void VMemo::receive( const QCString &msg, const QByteArray &data ) | 240 | void VMemo::receive( const QCString &msg, const QByteArray &data ) |
241 | { | 241 | { |
242 | QDataStream stream( data, IO_ReadOnly ); | 242 | QDataStream stream( data, IO_ReadOnly ); |
243 | if (msg == "toggleRecord()") { | 243 | if (msg == "toggleRecord()") { |
244 | if (recording) { | 244 | if (recording) { |
245 | fromToggle = TRUE; | 245 | fromToggle = TRUE; |
246 | stopRecording(); | 246 | stopRecording(); |
247 | } else { | 247 | } else { |