summaryrefslogtreecommitdiffstats
path: root/tdeio/tests/kscantest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio/tests/kscantest.cpp')
-rw-r--r--tdeio/tests/kscantest.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tdeio/tests/kscantest.cpp b/tdeio/tests/kscantest.cpp
new file mode 100644
index 000000000..14abd1b33
--- /dev/null
+++ b/tdeio/tests/kscantest.cpp
@@ -0,0 +1,16 @@
+#include <kapplication.h>
+#include <kscan.h>
+
+int main( int argc, char **argv )
+{
+ TDEApplication app( argc, argv, "kscantest" );
+ KScanDialog *dlg = KScanDialog::getScanDialog();
+ if ( !dlg ) {
+ tqDebug("*** EEK, no Scan-service available, aborting!");
+ return 0;
+ }
+
+ dlg->show();
+
+ return app.exec();
+}