mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
SearchToolbar: Don't set shortcuts from UI file
Fixes build with Qt 5.10 Closes #2515
This commit is contained in:
parent
f19eb53d3c
commit
ca2b5f22be
@ -36,7 +36,9 @@ SearchToolBar::SearchToolBar(WebView* view, QWidget* parent)
|
|||||||
|
|
||||||
ui->closeButton->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_DialogCloseButton));
|
ui->closeButton->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_DialogCloseButton));
|
||||||
ui->next->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_ArrowDown));
|
ui->next->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_ArrowDown));
|
||||||
|
ui->next->setShortcut(QKeySequence("Ctrl+G"));
|
||||||
ui->previous->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_ArrowUp));
|
ui->previous->setIcon(IconProvider::instance()->standardIcon(QStyle::SP_ArrowUp));
|
||||||
|
ui->previous->setShortcut(QKeySequence("Ctrl+Shift+G"));
|
||||||
|
|
||||||
connect(ui->closeButton, SIGNAL(clicked()), this, SLOT(close()));
|
connect(ui->closeButton, SIGNAL(clicked()), this, SLOT(close()));
|
||||||
connect(ui->lineEdit, SIGNAL(textChanged(QString)), this, SLOT(findNext()));
|
connect(ui->lineEdit, SIGNAL(textChanged(QString)), this, SLOT(findNext()));
|
||||||
|
@ -64,9 +64,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
|
||||||
<string notr="true">Ctrl+Shift+G</string>
|
|
||||||
</property>
|
|
||||||
<property name="autoRaise">
|
<property name="autoRaise">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -80,9 +77,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
|
||||||
<string notr="true">Ctrl+G</string>
|
|
||||||
</property>
|
|
||||||
<property name="autoRaise">
|
<property name="autoRaise">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user