mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
[AdBlockDialog] Options button is now QPushButton
Qt renders better down icon indicating the button has menu
This commit is contained in:
parent
31afc8aee6
commit
8eea60fe6a
@ -279,7 +279,7 @@ RSSManager QTabBar::tab
|
|||||||
/*AboutDialog*/
|
/*AboutDialog*/
|
||||||
AboutDialog #label
|
AboutDialog #label
|
||||||
{
|
{
|
||||||
background:white;
|
background: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
AboutDialog #textBrowser
|
AboutDialog #textBrowser
|
||||||
|
@ -42,7 +42,7 @@ AdBlockDialog::AdBlockDialog(QWidget* parent)
|
|||||||
#endif
|
#endif
|
||||||
adblockCheckBox->setChecked(m_manager->isEnabled());
|
adblockCheckBox->setChecked(m_manager->isEnabled());
|
||||||
|
|
||||||
QMenu* menu = new QMenu(buttonMenu);
|
QMenu* menu = new QMenu(buttonOptions);
|
||||||
m_actionAddRule = menu->addAction(tr("Add Rule"), this, SLOT(addRule()));
|
m_actionAddRule = menu->addAction(tr("Add Rule"), this, SLOT(addRule()));
|
||||||
m_actionRemoveRule = menu->addAction(tr("Remove Rule"), this, SLOT(removeRule()));
|
m_actionRemoveRule = menu->addAction(tr("Remove Rule"), this, SLOT(removeRule()));
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
@ -52,7 +52,7 @@ AdBlockDialog::AdBlockDialog(QWidget* parent)
|
|||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
menu->addAction(tr("Learn about writing rules..."), this, SLOT(learnAboutRules()));
|
menu->addAction(tr("Learn about writing rules..."), this, SLOT(learnAboutRules()));
|
||||||
|
|
||||||
buttonMenu->setMenu(menu);
|
buttonOptions->setMenu(menu);
|
||||||
connect(menu, SIGNAL(aboutToShow()), this, SLOT(aboutToShowMenu()));
|
connect(menu, SIGNAL(aboutToShow()), this, SLOT(aboutToShowMenu()));
|
||||||
|
|
||||||
connect(adblockCheckBox, SIGNAL(toggled(bool)), this, SLOT(enableAdBlock(bool)));
|
connect(adblockCheckBox, SIGNAL(toggled(bool)), this, SLOT(enableAdBlock(bool)));
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<item row="4" column="0" colspan="2">
|
<item row="4" column="0" colspan="2">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="buttonMenu">
|
<widget class="QPushButton" name="buttonOptions">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Options</string>
|
<string>Options</string>
|
||||||
</property>
|
</property>
|
||||||
@ -71,12 +71,6 @@
|
|||||||
<iconset resource="../data/icons.qrc">
|
<iconset resource="../data/icons.qrc">
|
||||||
<normaloff>:/icons/other/adblock.png</normaloff>:/icons/other/adblock.png</iconset>
|
<normaloff>:/icons/other/adblock.png</normaloff>:/icons/other/adblock.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="popupMode">
|
|
||||||
<enum>QToolButton::InstantPopup</enum>
|
|
||||||
</property>
|
|
||||||
<property name="toolButtonStyle">
|
|
||||||
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user