summaryrefslogtreecommitdiffstats
path: root/kpdf/conf/dlggeneral.ui.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit47d455dd55be855e4cc691c32f687f723d9247ee (patch)
tree52e236aaa2576bdb3840ebede26619692fed6d7d /kpdf/conf/dlggeneral.ui.h
downloadtdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz
tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpdf/conf/dlggeneral.ui.h')
-rw-r--r--kpdf/conf/dlggeneral.ui.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/kpdf/conf/dlggeneral.ui.h b/kpdf/conf/dlggeneral.ui.h
new file mode 100644
index 00000000..8eafde39
--- /dev/null
+++ b/kpdf/conf/dlggeneral.ui.h
@@ -0,0 +1,26 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+**
+** If you want to add, delete, or rename functions or slots, use
+** Qt Designer to update this file, preserving your code.
+**
+** You should not define a constructor or destructor in this file.
+** Instead, write your code in functions called init() and destroy().
+** These will automatically be called by the form's constructor and
+** destructor.
+*****************************************************************************/
+
+#include <kapplication.h>
+
+#include <config.h>
+
+void DlgGeneral::showEvent( QShowEvent * )
+{
+#if KPDF_FORCE_DRM
+ kcfg_ObeyDRM->hide();
+#else
+ if (kapp->authorize("skip_drm")) kcfg_ObeyDRM->show();
+ else kcfg_ObeyDRM->hide();
+#endif
+}
+