Skip to content

Commit

Permalink
Use custom icon for unlinking views
Browse files Browse the repository at this point in the history
  • Loading branch information
fagu committed Jan 24, 2021
1 parent b7f65c2 commit 6f5eff6
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,6 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
install(FILES desktop/sauklaue.xml DESTINATION share/mime/packages)
install(FILES desktop/sauklaue.desktop DESTINATION share/applications)
install(FILES icons/sauklaue.svg DESTINATION share/icons/hicolor/scalable/apps)
install(FILES icons/sau-unlink-views.svg DESTINATION share/icons/hicolor/scalable/actions)
install(FILES icons/sauklaue.svg DESTINATION share/icons/hicolor/scalable/mimetypes RENAME application-x-sauklaue.svg)
endif()
91 changes: 91 additions & 0 deletions icons/sau-unlink-views.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void MainWindow::createActions() {
for (QToolBar* tb : toolbars)
tb->addSeparator();
{
QAction* action = new QAction(QIcon::fromTheme("handle-move"), tr("Unlink views"), this);
QAction* action = new QAction(QIcon::fromTheme("sau-unlink-views"), tr("Unlink views"), this);
action->setCheckable(true);
action->setStatusTip(tr("Allow independently changing pages on different views"));
connect(action, &QAction::triggered, this, &MainWindow::setLinkedPages);
Expand Down

0 comments on commit 6f5eff6

Please sign in to comment.