Commit bd8b7a37 authored by Christian Mollekopf's avatar Christian Mollekopf Committed by Sandro Knauß

Disable unsupported views.

(cherry picked from commit 222c8ecf6074a339cf6b95e20e15b9571da9265d)
parent e0b9e2d5
......@@ -384,30 +384,30 @@ void ActionManager::initActions()
connect( action, SIGNAL(triggered(bool)),
mCalendarView->viewManager(), SLOT(showAgendaView()) );
action = new KAction( KIcon( QLatin1String("view-calendar-list") ), i18n( "&Event List" ), this );
mACollection->addAction( QLatin1String("view_list"), action );
connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
SLOT(showListView()) );
action = new KAction( KIcon( QLatin1String("view-calendar-tasks") ), i18n( "&To-do List" ), this );
mACollection->addAction( QLatin1String("view_todo"), action );
connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
SLOT(showTodoView()) );
action = new KAction( KIcon( QLatin1String("view-calendar-journal" )), i18n( "&Journal" ), this );
mACollection->addAction( QLatin1String("view_journal"), action );
connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
SLOT(showJournalView()) );
action = new KAction( KIcon( QLatin1String("view-calendar-timeline") ), i18n( "Time&line" ), this );
mACollection->addAction( QLatin1String("view_timeline"), action );
connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
SLOT(showTimeLineView()) );
action = new KAction( KIcon( QLatin1String("view-calendar-time-spent") ), i18n( "Time&spent" ), this );
mACollection->addAction( QLatin1String("view_timespent"), action );
connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
SLOT(showTimeSpentView()) );
// action = new KAction( KIcon( QLatin1String("view-calendar-list") ), i18n( "&Event List" ), this );
// mACollection->addAction( QLatin1String("view_list"), action );
// connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
// SLOT(showListView()) );
// action = new KAction( KIcon( QLatin1String("view-calendar-tasks") ), i18n( "&To-do List" ), this );
// mACollection->addAction( QLatin1String("view_todo"), action );
// connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
// SLOT(showTodoView()) );
// action = new KAction( KIcon( QLatin1String("view-calendar-journal" )), i18n( "&Journal" ), this );
// mACollection->addAction( QLatin1String("view_journal"), action );
// connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
// SLOT(showJournalView()) );
// action = new KAction( KIcon( QLatin1String("view-calendar-timeline") ), i18n( "Time&line" ), this );
// mACollection->addAction( QLatin1String("view_timeline"), action );
// connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
// SLOT(showTimeLineView()) );
// action = new KAction( KIcon( QLatin1String("view-calendar-time-spent") ), i18n( "Time&spent" ), this );
// mACollection->addAction( QLatin1String("view_timespent"), action );
// connect( action, SIGNAL(triggered(bool)), mCalendarView->viewManager(),
// SLOT(showTimeSpentView()) );
//~~~~~~~~~~~~~~~~~~~~~~~~~~~ REFRESH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
action = new KAction( i18n( "&Refresh" ), this );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment