mirror of
https://github.com/zealdocs/zeal.git
synced 2024-09-11 14:25:52 +03:00
ui: Use system icons for back and forward buttons
This commit is contained in:
parent
7c3789dead
commit
486ce17296
@ -193,12 +193,15 @@ MainWindow::MainWindow(Core::Application *app, QWidget *parent) :
|
||||
m_globalShortcut->setEnabled(true);
|
||||
});
|
||||
|
||||
ui->actionBack->setIcon(qApp->style()->standardIcon(QStyle::SP_ArrowBack));
|
||||
ui->actionBack->setShortcut(QKeySequence::Back);
|
||||
addAction(ui->actionBack);
|
||||
ui->actionForward->setShortcut(QKeySequence::Forward);
|
||||
addAction(ui->actionForward);
|
||||
connect(ui->actionBack, &QAction::triggered, this, [this]() { currentTab()->back(); });
|
||||
addAction(ui->actionBack);
|
||||
|
||||
ui->actionForward->setIcon(qApp->style()->standardIcon(QStyle::SP_ArrowForward));
|
||||
ui->actionForward->setShortcut(QKeySequence::Forward);
|
||||
connect(ui->actionForward, &QAction::triggered, this, [this]() { currentTab()->forward(); });
|
||||
addAction(ui->actionForward);
|
||||
|
||||
// Tools Menu
|
||||
connect(ui->actionDocsets, &QAction::triggered, [this]() {
|
||||
|
@ -139,8 +139,8 @@
|
||||
<property name="text">
|
||||
<string>←</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-previous"/>
|
||||
<property name="autoRaise">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -155,8 +155,8 @@
|
||||
<property name="text">
|
||||
<string>→</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-next"/>
|
||||
<property name="autoRaise">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user