summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/screenshotapplet/opie-screenshotapplet.control9
-rw-r--r--core/applets/screenshotapplet/screenshot.cpp1
2 files changed, 10 insertions, 0 deletions
diff --git a/core/applets/screenshotapplet/opie-screenshotapplet.control b/core/applets/screenshotapplet/opie-screenshotapplet.control
new file mode 100644
index 0000000..4a06a5a
--- a/dev/null
+++ b/core/applets/screenshotapplet/opie-screenshotapplet.control
@@ -0,0 +1,9 @@
1Files: plugins/applets/libscreenshotapplet.so*
2Priority: optional
3Section: opie/system
4Maintainer: L. J. Potter <ljp@llornkcor.com>
5Architecture: arm
6Version: $QPE_VERSION-$SUB_VERSION.1
7Depends: opie-base ($QPE_VERSION)
8Description: Screenshot Applet
9 A screenshot taskbar applet for the Opie environment
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp
index 20e8554..16d5588 100644
--- a/core/applets/screenshotapplet/screenshot.cpp
+++ b/core/applets/screenshotapplet/screenshot.cpp
@@ -88,32 +88,33 @@ ScreenshotControl::ScreenshotControl( QWidget *parent, const char *name )
88 vbox->setSpacing( 3 ); 88 vbox->setSpacing( 3 );
89 vbox->addWidget( delaySpin); 89 vbox->addWidget( delaySpin);
90 vbox->setMargin( 6 ); 90 vbox->setMargin( 6 );
91 vbox->setSpacing( 3 ); 91 vbox->setSpacing( 3 );
92 vbox->addWidget( grabItButton); 92 vbox->addWidget( grabItButton);
93 93
94 setFixedHeight( 100 ); 94 setFixedHeight( 100 );
95 setFixedWidth( sizeHint().width() ); 95 setFixedWidth( sizeHint().width() );
96 setFocusPolicy(QWidget::NoFocus); 96 setFocusPolicy(QWidget::NoFocus);
97 97
98 grabTimer= new QTimer(this,"grab timer"); 98 grabTimer= new QTimer(this,"grab timer");
99// qDebug("newTimer"); 99// qDebug("newTimer");
100 connect( grabTimer, SIGNAL( timeout() ), this, SLOT( grabTimerDone() ) ); 100 connect( grabTimer, SIGNAL( timeout() ), this, SLOT( grabTimerDone() ) );
101 101
102// Config cfg("Snapshot"); 102// Config cfg("Snapshot");
103// cfg.setGroup("General"); 103// cfg.setGroup("General");
104 delaySpin->setValue(1);
104// delaySpin->setValue(cfg.readNumEntry("delay",0)); 105// delaySpin->setValue(cfg.readNumEntry("delay",0));
105 connect( grabItButton, SIGNAL(released()), SLOT(slotGrab()) ); 106 connect( grabItButton, SIGNAL(released()), SLOT(slotGrab()) );
106 107
107} 108}
108 109
109void ScreenshotControl::slotGrab() 110void ScreenshotControl::slotGrab()
110{ 111{
111// qDebug("SlotGrab"); 112// qDebug("SlotGrab");
112 hide(); 113 hide();
113 if ( delaySpin->value() ) { 114 if ( delaySpin->value() ) {
114 grabTimer->start( delaySpin->value() * 1000, true ); 115 grabTimer->start( delaySpin->value() * 1000, true );
115 } else { 116 } else {
116 show(); 117 show();
117 } 118 }
118} 119}
119 120