kde-extraapps/okular/conf/dlgannotations.cpp
Ivailo Monev 25d6e7a914 okular: make KConfigDialogManager aware of the WidgetAnnotTools property
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-30 03:40:40 +03:00

29 lines
1.3 KiB
C++

/***************************************************************************
* Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#include "dlgannotations.h"
#include <kconfigdialogmanager.h>
#include "widgetannottools.h"
#include "ui_dlgannotationsbase.h"
DlgAnnotations::DlgAnnotations( QWidget * parent )
: QWidget( parent )
{
Ui_DlgAnnotationsBase dlg;
dlg.setupUi( this );
WidgetAnnotTools * kcfg_AnnotationTools = new WidgetAnnotTools( dlg.annotToolsGroup );
dlg.annotToolsPlaceholder->addWidget( kcfg_AnnotationTools );
kcfg_AnnotationTools->setObjectName( "kcfg_AnnotationTools" );
KConfigDialogManager::propertyMap()->insert( "WidgetAnnotTools" , "tools" );
KConfigDialogManager::changedMap()->insert( "WidgetAnnotTools" , SIGNAL(changed()) );
}