Send correct mouse wheel events when scaling is enabled.
[kdenetwork.git] / knewsticker / settingsdialog.cpp
blob5dd09f7f6c623875a10ebb40e980b027767f3be2
1 /*
2 * settingsdialog.cpp
4 * Copyright (c) 2007 Frerich Raabe <raabe@kde.org>
6 * This program is distributed in the hope that it will be useful, but WITHOUT
7 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8 * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
9 * accompanying file 'COPYING'.
11 #include "settingsdialog.h"
12 #include "settings.h"
13 #include "ui_visualsettings.h"
14 #include "feedsettingswidget.h"
16 SettingsDialog::SettingsDialog( QWidget *parent )
17 : KConfigDialog( parent, "settings", Settings::self() )
19 setFaceType( KPageDialog::Tabbed );
21 QWidget *page = new QWidget( 0 );
23 Ui::VisualSettings ui;
24 ui.setupUi( page );
25 switch ( Settings::displayStyle() ) {
26 case Settings::EnumDisplayStyle::ScrollingText:
27 ui.stackedWidget->setCurrentIndex( 0 );
28 case Settings::EnumDisplayStyle::PagedText:
29 ui.stackedWidget->setCurrentIndex( 1 );
30 break;
31 // Added by KConfigXT for internal reasons.
32 case Settings::EnumDisplayStyle::COUNT:
33 break;
36 addPage( page, i18n( "Appearance" ), "preferences-desktop-theme" );
38 m_feedSettingsWidget = new FeedSettingsWidget( 0 );
39 addPage( m_feedSettingsWidget, i18n( "Feed Access" ), "rss" );
40 setHelp(QString(),"knewsticker");
43 QStringList SettingsDialog::feedUrls() const
45 return m_feedSettingsWidget->feedUrls();
48 #include "settingsdialog.moc"