• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • sources
  • kde-4.14
  • kdepim
  • akregator
  • configuration
akregator_config_browser.cpp
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3  Copyright (c) 2008 Frank Osterfeld <osterfeld@kde.org>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 
19  As a special exception, permission is given to link this program
20  with any edition of Qt, and distribute the resulting executable,
21  without including the source code for Qt in the source distribution.
22 */
23 
24 #include "akregator_config_browser.h"
25 #include "akregatorconfig.h"
26 
27 #include "ui_settings_browser.h"
28 
29 #include <KAboutData>
30 #include <KConfigDialogManager>
31 #include <KGenericFactory>
32 #include <KLocalizedString>
33 #include <kdemacros.h>
34 
35 #include <QVBoxLayout>
36 
37 using namespace Akregator;
38 
39 K_PLUGIN_FACTORY(KCMAkregatorBrowserConfigFactory, registerPlugin<KCMAkregatorBrowserConfig>();)
40 K_EXPORT_PLUGIN(KCMAkregatorBrowserConfigFactory( "kcmakrbrowserconfig" ))
41 
42 KCMAkregatorBrowserConfig::KCMAkregatorBrowserConfig( QWidget* parent, const QVariantList& args )
43  : KCModule( KCMAkregatorBrowserConfigFactory::componentData(), parent, args ), m_widget( new QWidget )
44 {
45  Ui::SettingsBrowser ui;
46  ui.setupUi( m_widget );
47 
48  QVBoxLayout* layout = new QVBoxLayout( this );
49  layout->addWidget( m_widget );
50 
51  connect( ui.kcfg_ExternalBrowserUseCustomCommand, SIGNAL(toggled(bool)),
52  ui.kcfg_ExternalBrowserCustomCommand, SLOT(setEnabled(bool)) );
53 
54  KAboutData *about = new KAboutData( I18N_NOOP( "kcmakrbrowserconfig" ), 0,
55  ki18n( "Configure Feed Reader Browser" ),
56  0, KLocalizedString(), KAboutData::License_GPL,
57  ki18n( "(c), 2004 - 2008 Frank Osterfeld" ) );
58 
59  about->addAuthor( ki18n( "Frank Osterfeld" ), KLocalizedString(), "osterfeld@kde.org" );
60  setAboutData( about );
61 
62  addConfig( Settings::self(), m_widget );
63 }
64 
QWidget
akregator_config_browser.h
QBoxLayout::addWidget
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QVBoxLayout
KAboutData
KCMAkregatorBrowserConfig
Definition: akregator_config_browser.h:33
Akregator::K_EXPORT_PLUGIN
K_EXPORT_PLUGIN(AkregatorFactory(createAboutData())) BrowserExtension
Definition: akregator_part.cpp:186
KCModule
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal