| 1855 | } |
| 1856 | |
| 1857 | void MainWindowViewer::updatePrevNextActions(bool thereIsPrevious, bool thereIsNext) |
| 1858 | { |
| 1859 | if (thereIsPrevious) { |
| 1860 | if (viewer->getIsMangaMode()) { |
| 1861 | openComicOnTheRightAction->setDisabled(false); |
| 1862 | } else { |
| 1863 | openComicOnTheLeftAction->setDisabled(false); |
| 1864 | } |
| 1865 | } else { |
| 1866 | if (viewer->getIsMangaMode()) { |
| 1867 | openComicOnTheRightAction->setDisabled(true); |
| 1868 | } else { |
| 1869 | openComicOnTheLeftAction->setDisabled(true); |
| 1870 | } |
| 1871 | } |
| 1872 | |
| 1873 | if (thereIsNext) { |
| 1874 | if (viewer->getIsMangaMode()) { |
| 1875 | openComicOnTheLeftAction->setDisabled(false); |
| 1876 | } else { |
| 1877 | openComicOnTheRightAction->setDisabled(false); |
| 1878 | } |
| 1879 | } else { |
| 1880 | if (viewer->getIsMangaMode()) { |
| 1881 | openComicOnTheLeftAction->setDisabled(true); |
| 1882 | } else { |
| 1883 | openComicOnTheRightAction->setDisabled(true); |
| 1884 | } |
| 1885 | } |
| 1886 | |
| 1887 | if (viewer->getIsMangaMode()) { |
| 1888 | openComicOnTheLeftAction->setToolTip(tr("Open next comic")); |
| 1889 | openComicOnTheRightAction->setToolTip(tr("Open previous comic")); |
| 1890 | goToPageOnTheLeftAction->setToolTip(tr("Go to next page")); |
| 1891 | goToPageOnTheRightAction->setToolTip(tr("Go to previous page")); |
| 1892 | } else { |
| 1893 | openComicOnTheLeftAction->setToolTip(tr("Open previous comic")); |
| 1894 | openComicOnTheRightAction->setToolTip(tr("Open next comic")); |
| 1895 | goToPageOnTheLeftAction->setToolTip(tr("Go to previous page")); |
| 1896 | goToPageOnTheRightAction->setToolTip(tr("Go to next page")); |
| 1897 | } |
| 1898 | } |
nothing calls this directly
no test coverage detected