-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 7e91ef0..c27050d 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -209,11 +209,8 @@ VMemo::VMemo( QWidget *parent, const char *_name ) vmCfg.setGroup("Defaults"); + int toggleKey = vmCfg.readNumEntry("toggleKey", -1); - if(release.find("embedix",0,TRUE) !=-1) { - int toggleKey = vmCfg.readNumEntry("toggleKey", -1); + if(release.find("embedix",0,TRUE) !=-1) systemZaurus=TRUE; - } else { - int toggleKey = vmCfg.readNumEntry("toggleKey", 4096); -//default key for ipaq record button is Key_Escape = 4096 + else systemZaurus=FALSE; - } @@ -231,2 +228,4 @@ VMemo::VMemo( QWidget *parent, const char *_name ) } + if( vmCfg.readNumEntry("hideIcon",0) == 1) + hide(); } @@ -379,3 +378,2 @@ int VMemo::openDSP() perror("ioctl(\"SNDCTL_DSP_SETFMT\")"); - errorMsg="ioctl(\"SNDCTL_DSP_SETFMT\")\n%d\n"+(QString)strerror(errno),format; return -1; @@ -384,3 +382,2 @@ int VMemo::openDSP() perror("ioctl(\"SNDCTL_DSP_CHANNELS\")"); - errorMsg="ioctl(\"SNDCTL_DSP_CHANNELS\")\n%d\n"+(QString)strerror(errno),channels; return -1; @@ -389,3 +386,2 @@ int VMemo::openDSP() perror("ioctl(\"SNDCTL_DSP_SPEED\")"); - errorMsg="ioctl(\"SNDCTL_DSP_SPEED\")\n%d\n"+(QString)strerror(errno),speed; return -1; @@ -394,3 +390,2 @@ int VMemo::openDSP() perror("ioctl(\"SOUND_PCM_READ_RATE\")"); - errorMsg="ioctl(\"SOUND_PCM_READ_RATE\")\n%d\n"+(QString)strerror(errno),rate; return -1; |