Changeset View
Changeset View
Standalone View
Standalone View
src/mainwindow.cpp
Show First 20 Lines • Show All 423 Lines • ▼ Show 20 Line(s) | 55 | { | |||
---|---|---|---|---|---|
424 | actionCollection()->setDefaultShortcut(action, QKeySequence(QStringLiteral("Ctrl+0"))); | 424 | actionCollection()->setDefaultShortcut(action, QKeySequence(QStringLiteral("Ctrl+0"))); | ||
425 | action->setEnabled(false); | 425 | action->setEnabled(false); | ||
426 | action->setIcon(QIcon::fromTheme(QStringLiteral("zoom-original"))); | 426 | action->setIcon(QIcon::fromTheme(QStringLiteral("zoom-original"))); | ||
427 | action->setStatusTip(i18n("Reset the current font size to settings values")); | 427 | action->setStatusTip(i18n("Reset the current font size to settings values")); | ||
428 | connect(action, &QAction::triggered, m_viewContainer, &ViewContainer::resetFont); | 428 | connect(action, &QAction::triggered, m_viewContainer, &ViewContainer::resetFont); | ||
429 | actionCollection()->addAction(QStringLiteral("reset_font"), action); | 429 | actionCollection()->addAction(QStringLiteral("reset_font"), action); | ||
430 | 430 | | |||
431 | action=new QAction(this); | 431 | action=new QAction(this); | ||
432 | action->setText(i18n("Decrease Font Size")); | 432 | action->setText(i18n("Shrink Font Size")); | ||
433 | actionCollection()->setDefaultShortcuts(action, KStandardShortcut::zoomOut()); | 433 | actionCollection()->setDefaultShortcuts(action, KStandardShortcut::zoomOut()); | ||
434 | action->setEnabled(false); | 434 | action->setEnabled(false); | ||
435 | action->setIcon(QIcon::fromTheme(QStringLiteral("zoom-out"))); | 435 | action->setIcon(QIcon::fromTheme(QStringLiteral("zoom-out"))); | ||
436 | action->setStatusTip(i18n("Decrease the current font size")); | 436 | action->setStatusTip(i18n("Decrease the current font size")); | ||
437 | connect(action, &QAction::triggered, m_viewContainer, &ViewContainer::zoomOut); | 437 | connect(action, &QAction::triggered, m_viewContainer, &ViewContainer::zoomOut); | ||
438 | actionCollection()->addAction(QStringLiteral("shrink_font"), action); | 438 | actionCollection()->addAction(QStringLiteral("shrink_font"), action); | ||
439 | 439 | | |||
440 | action=new QAction(this); | 440 | action=new QAction(this); | ||
▲ Show 20 Lines • Show All 490 Lines • Show Last 20 Lines |