diff options
Diffstat (limited to 'kpdf/conf/dlggeneral.ui.h')
-rw-r--r-- | kpdf/conf/dlggeneral.ui.h | 26 |
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 +} + |