mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #115: Redesign of sidebar widget, new icons
This commit is contained in:
@ -290,9 +290,14 @@ void PDFSidebarWidget::selectPage(Page page)
|
||||
// Switch state of the buttons and select the page
|
||||
for (const auto& pageInfo : m_pageInfo)
|
||||
{
|
||||
if (pageInfo.second.button)
|
||||
QToolButton* pushButton = pageInfo.second.button;
|
||||
if (pushButton)
|
||||
{
|
||||
pageInfo.second.button->setChecked(pageInfo.first == page);
|
||||
pushButton->setChecked(pageInfo.first == page);
|
||||
|
||||
QFont font = pushButton->font();
|
||||
font.setBold(pageInfo.first == page);
|
||||
pushButton->setFont(font);
|
||||
}
|
||||
|
||||
if (pageInfo.first == page)
|
||||
|
Reference in New Issue
Block a user