Commit 87fc6d8d authored by Allen Winter's avatar Allen Winter
Browse files

remove unused adaptNavigationUnits() and associated signals

parent 365b0a4a
......@@ -452,14 +452,6 @@ void ActionManager::initActions()
mACollection->addAction(QStringLiteral("go_previous"), action);
connect(action, &QAction::triggered, mCalendarView, &CalendarView::goPrevious);
// Changing the action text by setText makes the toolbar button disappear.
// This has to be fixed first, before the connects below can be reenabled.
/*
connect( mCalendarView, SIGNAL(changeNavStringPrev(QString)),
action, SLOT(setText(QString)) );
connect( mCalendarView, SIGNAL(changeNavStringPrev(QString)),
this, SLOT(dumpText(QString)) );*/
action
= new QAction(QIcon::fromTheme(isRTL ? QStringLiteral("go-previous") : QStringLiteral(
"go-next")),
......@@ -468,10 +460,6 @@ void ActionManager::initActions()
setHelpText(action, i18n("Scroll Forward"));
mACollection->addAction(QStringLiteral("go_next"), action);
connect(action, &QAction::triggered, mCalendarView, &CalendarView::goNext);
/*
connect( mCalendarView,SIGNAL(changeNavStringNext(QString)),
action,SLOT(setText(QString)) );
*/
action = new QAction(QIcon::fromTheme(QStringLiteral("view-calendar-day")), i18n("&Day"), this);
mACollection->addAction(QStringLiteral("select_day"), action);
......
......@@ -1863,20 +1863,6 @@ void CalendarView::eventUpdated(const Akonadi::Item &)
// updateView();
}
void CalendarView::adaptNavigationUnits()
{
if (mViewManager->currentView()->isEventView()) {
int days = mViewManager->currentView()->currentDateCount();
if (days == 1) {
Q_EMIT changeNavStringPrev(i18n("&Previous Day"));
Q_EMIT changeNavStringNext(i18n("&Next Day"));
} else {
Q_EMIT changeNavStringPrev(i18n("&Previous Week"));
Q_EMIT changeNavStringNext(i18n("&Next Week"));
}
}
}
void CalendarView::processMainViewSelection(const Akonadi::Item &item, const QDate &date)
{
if (CalendarSupport::hasIncidence(item)) {
......
......@@ -232,10 +232,6 @@ Q_SIGNALS:
/** Emitted when state of read-only flag changes */
void readOnlyChanged(bool);
/** Emitted when the unit of navigation changes */
void changeNavStringPrev(const QString &);
void changeNavStringNext(const QString &);
/** Emitted when state of events selection has changed and user is organizer*/
void organizerEventsSelected(bool);
/** Emitted when state of events selection has changed and user is attendee*/
......@@ -614,11 +610,6 @@ protected Q_SLOTS:
public:
int msgCalModified();
/**
* Adapts navigation units according to the current view's navigation step size.
*/
void adaptNavigationUnits();
/**
* Returns the date of the selected incidence.
*
......
......@@ -184,7 +184,6 @@ void KOViewManager::showView(KOrg::BaseView *view)
raiseCurrentView();
mMainView->processIncidenceSelection(Akonadi::Item(), QDate());
mMainView->updateView();
mMainView->adaptNavigationUnits();
KOrg::MainWindow *w = ActionManager::findInstance(QUrl());
if (w) {
......
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