Diffstat (limited to 'core/applets/vmemo/vmemo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 27f6015..7dd5b4b 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -184,24 +184,25 @@ static char * vmemo_xpm[] = { | |||
184 | " 4 5 6 7 8 9 0 a b c ", | 184 | " 4 5 6 7 8 9 0 a b c ", |
185 | " d e f g h i j 3 k l m n ", | 185 | " d e f g h i j 3 k l m n ", |
186 | " o p q r s t u v w n ", | 186 | " o p q r s t u v w n ", |
187 | " o x y z A B C D E n ", | 187 | " o x y z A B C D E n ", |
188 | " F G H I J K L M N O ", | 188 | " F G H I J K L M N O ", |
189 | " P Q R S T U V W X ", | 189 | " P Q R S T U V W X ", |
190 | " Y Z ` b ...+. ", | 190 | " Y Z ` b ...+. ", |
191 | " @.#.$.%.&. ", | 191 | " @.#.$.%.&. ", |
192 | " *.B =. ", | 192 | " *.B =. ", |
193 | " n n n n n n n n n "}; | 193 | " n n n n n n n n n "}; |
194 | 194 | ||
195 | 195 | ||
196 | using namespace Opie::Ui; | ||
196 | VMemo::VMemo( QWidget *parent, const char *_name ) | 197 | VMemo::VMemo( QWidget *parent, const char *_name ) |
197 | : QWidget( parent, _name ) { | 198 | : QWidget( parent, _name ) { |
198 | setFixedHeight( 18 ); | 199 | setFixedHeight( 18 ); |
199 | setFixedWidth( 14 ); | 200 | setFixedWidth( 14 ); |
200 | 201 | ||
201 | t_timer = new QTimer( this ); | 202 | t_timer = new QTimer( this ); |
202 | connect( t_timer, SIGNAL( timeout() ), SLOT( timerBreak() ) ); | 203 | connect( t_timer, SIGNAL( timeout() ), SLOT( timerBreak() ) ); |
203 | 204 | ||
204 | Config vmCfg("Vmemo"); | 205 | Config vmCfg("Vmemo"); |
205 | vmCfg.setGroup("Defaults"); | 206 | vmCfg.setGroup("Defaults"); |
206 | int toggleKey = setToggleButton(vmCfg.readNumEntry("toggleKey", -1)); | 207 | int toggleKey = setToggleButton(vmCfg.readNumEntry("toggleKey", -1)); |
207 | useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); | 208 | useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); |
@@ -629,17 +630,15 @@ int VMemo::setToggleButton(int tog) { | |||
629 | break; | 630 | break; |
630 | }; | 631 | }; |
631 | } | 632 | } |
632 | return -1; | 633 | return -1; |
633 | } | 634 | } |
634 | 635 | ||
635 | void VMemo::timerBreak() { | 636 | void VMemo::timerBreak() { |
636 | //stop | 637 | //stop |
637 | stopRecording(); | 638 | stopRecording(); |
638 | QMessageBox::message("Vmemo","Vmemo recording has ended"); | 639 | QMessageBox::message("Vmemo","Vmemo recording has ended"); |
639 | } | 640 | } |
640 | 641 | ||
641 | Q_EXPORT_INTERFACE() | 642 | |
642 | { | 643 | EXPORT_OPIE_APPLET_v1( VMemo ) |
643 | Q_CREATE_INSTANCE( OTaskbarAppletWrapper<VMemo> ); | ||
644 | } | ||
645 | 644 | ||