compile
[kdegraphics.git] / okular / conf / dlggeneral.cpp
blob80478e63576841145a52ac9c39cb4f6714f0f3b1
1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #include "dlggeneral.h"
12 #include <kauthorized.h>
14 #include <config-okular.h>
16 #include "ui_dlggeneralbase.h"
18 DlgGeneral::DlgGeneral( QWidget * parent )
19 : QWidget( parent )
21 m_dlg = new Ui_DlgGeneralBase();
22 m_dlg->setupUi( this );
25 DlgGeneral::~DlgGeneral()
27 delete m_dlg;
30 void DlgGeneral::showEvent( QShowEvent * )
32 #if OKULAR_FORCE_DRM
33 m_dlg->kcfg_ObeyDRM->hide();
34 #else
35 if ( KAuthorized::authorize( "skip_drm" ) )
36 m_dlg->kcfg_ObeyDRM->show();
37 else
38 m_dlg->kcfg_ObeyDRM->hide();
39 #endif