Skip to content

Commit

Permalink
hide first toolbar separator for embedded pdf viewer (texstudio-org#3674
Browse files Browse the repository at this point in the history
)
  • Loading branch information
octaeder authored May 24, 2024
1 parent ec14648 commit 4773bf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pdfviewer/PDFDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2930,7 +2930,7 @@ void PDFDocument::setupToolBar(){
connect(toolBarTimer, SIGNAL(timeout()), this, SLOT(showToolbars()));

toolBar->addAction(actionTypeset);
toolBar->addSeparator();
separatorAfterTypeset = toolBar->addSeparator();
toolBar->addAction(actionExternalViewer);
toolBar->addSeparator();
toolBar->addAction(actionMagnify);
Expand Down Expand Up @@ -3171,6 +3171,7 @@ void PDFDocument::init(bool embedded)
actionExternalViewer->setIcon(getRealIcon("acroread"));
if (embedded) {
actionTypeset->setVisible(false);
separatorAfterTypeset->setVisible(false);
actionShrinkViewer->setVisible(false);
} else {
actionClose->setVisible(false);
Expand Down
1 change: 1 addition & 0 deletions src/pdfviewer/PDFDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ private slots:
QAction *actionPaste;
QAction *actionClear;
QAction *actionTypeset;
QAction *separatorAfterTypeset;
QAction *actionExternalViewer;
QAction *actionPreferences;
QAction *actionStack;
Expand Down

0 comments on commit 4773bf8

Please sign in to comment.