1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
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
)
21 m_dlg
= new Ui_DlgGeneralBase();
22 m_dlg
->setupUi( this );
25 DlgGeneral::~DlgGeneral()
30 void DlgGeneral::showEvent( QShowEvent
* )
33 m_dlg
->kcfg_ObeyDRM
->hide();
35 if ( KAuthorized::authorize( "skip_drm" ) )
36 m_dlg
->kcfg_ObeyDRM
->show();
38 m_dlg
->kcfg_ObeyDRM
->hide();